@charset "UTF-8";

/* ==========================================================================
   全域與容器樣式 (配合 1920x1080 視窗比例適配)
   ========================================================================== */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Noto Sans TC', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #111;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#container-all {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

#page-content {
  width: 1920px;
  height: 1080px;
  flex-shrink: 0;
  position: relative;
  background-color: #e0e0e0;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.inner-content.alt {
  width: 1920px;
  height: 1080px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ==========================================================================
   貸款試算主外框
   ========================================================================== */
.form-frame {
  width: 1820px;
  height: 850px;
  display: block;
}

/* 左側文字與標題 */
.form-text h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 120px;
  font-weight: 700;
  color: #00adde;
  opacity: .25;
  line-height: 1;
  margin: 0 0 5px 0;
  letter-spacing: 2px;
}

.form-text h2 {
  font-size: 35px;
  font-weight: 600;
  color: #0082c1;
  margin: 0 0 50px 0;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
}

.form-text h2 i {
  margin-right: 15px;
}

/* 表單表格 */
.form-table {
  width: 100%;
}

.form-table td {
  line-height: 1;
  font-size: 20px;
  padding: 15px 0;
  vertical-align: middle;
  color: #333;
  font-weight: 500;
}

.form-table tr td:first-child {
  width: 140px;
  white-space: nowrap;
}

.form-table tr td:last-child {
  display: flex;
  align-items: center;
}

/* 輸入框樣式 */
.form-control {
  font-family: 'Barlow Condensed', sans-serif;
  padding: .8rem 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #0082c1 !important;
  letter-spacing: 1px;
  background-color: #fff;
  border: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 1.6rem;
  width: 350px;
  margin: 0 12px 0 0;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.form-control:focus {
  outline-style: none !important;
  box-shadow: 0 0 0 3px rgba(0, 130, 193, 0.25) !important;
}

/* 自訂單選按鈕 (Radio box) */
.radio-box {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding-left: 35px;
  margin: 0 25px 0 0;
  cursor: pointer;
  font-size: 20px;
  font-weight: 500;
  color: #333;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.radio-box input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #fff;
  border-radius: 50%;
  transition: all 0.25s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
}

.radio-box:hover input ~ .checkmark {
  background-color: #d8d8d8;
}

.radio-box input:checked ~ .checkmark {
  background-color: #0082c1;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
}

.radio-box input:checked ~ .checkmark:after {
  display: block;
}

/* 操作按鈕群 */
.btn-list .btn {
  font-size: 22px;
  font-weight: 600;
  padding: 10px 0;
  border-radius: 16px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-list .btn:focus,
.btn-list .btn:active {
  box-shadow: none;
}

.btn-list .btn-dark {
  background-color: #495057;
  border-color: #495057;
  color: #fff;
}

.btn-list .btn-dark:hover {
  background-color: #343a40;
  border-color: #343a40;
}

.btn-list .btn-info {
  background-color: #0082c1;
  border-color: #0082c1;
  color: #fff;
}

.btn-list .btn-info:hover {
  background-color: #006da2;
  border-color: #006da2;
}

/* ==========================================================================
   右側試算結果展示
   ========================================================================== */
.form-output {
  width: 100%;
  height: 850px;
  padding: 0 0 30px 0;
  background-color: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.output-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 3px;
  line-height: 1;
  color: #fff;
  background-color: #0082c1;
  text-align: center;
  padding: 22px 0;
  margin: 0;
}

.form-output-inner {
  width: 100%;
  height: 760px;
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 50px;
  box-sizing: border-box;
}

/* 自訂捲軸 */
.form-output-inner::-webkit-scrollbar {
  width: 8px;
}

.form-output-inner::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.form-output-inner::-webkit-scrollbar-thumb {
  background: #0082c1;
  border-radius: 4px;
}

.form-output-inner::-webkit-scrollbar-thumb:hover {
  background: #006da2;
}

/* 本金平均攤還法表格 */
table.list {
  margin: 30px 0;
  width: 100%;
  text-align: center;
  border-collapse: collapse;
}

table.list thead tr:first-child td {
  background-color: #eafaff;
  color: #0082c1;
  padding: 10px 0;
  font-size: 22px;
  font-weight: 700;
}

table.list thead tr:last-child td {
  background-color: #999;
  color: #fff;
  font-size: 18px;
  padding: 8px 0;
  border-right: dotted 1px #fff;
}

table.list thead tr:last-child td:last-child {
  border-right: none;
}

table.list tbody tr:nth-child(even) {
  background-color: #f0f0f0;
}

table.list tbody tr td:first-child {
  font-weight: 400;
}

table.list tbody tr td {
  font-family: 'Barlow Condensed', sans-serif;
  padding: 10px 0;
  font-size: 19px;
  color: #333;
  font-weight: 550;
  letter-spacing: 1px;
  border-right: dotted 1px #ccc;
}

table.list tbody tr td:last-child {
  border-right: none;
}

/* 本息平均攤還法展示 */
.tp1 {
  padding: 40px 30px;
  text-align: left;
  font-size: 22px;
  line-height: 2;
  font-weight: 500;
  color: #333;
}

.tp1 h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 20px 0;
  color: #0082c1;
}

.tp1 .at {
  font-size: 22px;
  font-weight: 600;
  display: block;
  margin: 20px 0 10px 0;
  color: #444;
}

.tp1 .red {
  font-size: 38px;
  display: inline-block;
  padding: 0 8px;
  color: #0082c1;
  font-weight: 700;
  letter-spacing: 1px;
  font-family: 'Barlow Condensed', sans-serif;
}

.calc-hint {
  text-align: center;
  color: #888;
  font-size: 22px;
  padding: 120px 0;
  letter-spacing: 1px;
}
