/* repay-ch.css final 2026-10-24-2 */ .repay-calculator-layout {
  display:grid;
  grid-template-columns:minmax(200px,250px) minmax(0,1fr);
  gap:22px;
  align-items:start
}
.repay-input-summary {
  position:sticky;
  top:90px
}
.repay-summary-card,.repay-result-summary {
  margin:0!important;
  padding:0!important;
  overflow:hidden;
  background:#fff!important;
  border:1px solid #dbeafe!important;
  border-radius:14px!important;
  box-shadow:0 7px 22px rgba(38,132,255,.08)!important
}
.repay-result-summary {
  margin-top:14px!important
}
.repay-summary-title {
  padding:15px 16px;
  font-weight:800;
  background:#f7fbff;
  border-bottom:1px solid #dbeafe
}
.result-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  padding:12px 16px;
  border-bottom:1px solid #eef2f7
}
.result-row strong {
  color:#2684ff;
  text-align:right;
  white-space:nowrap
}
.summary-hint {
  margin:0;
  padding:13px 16px;
  background:#f8fafc
}
.input-section {
  overflow:hidden;
  background:#fff;
  border:1px solid #e4e7ec;
  border-radius:14px
}
.input-hint-global {
  margin:0!important;
  padding:14px 16px!important;
  background:#f1f7ff;
  border-bottom:1px solid #dbeafe
}
.ios-field {
  display:grid;
  grid-template-columns:42px minmax(120px,.8fr) minmax(170px,1.35fr);
  gap:8px 12px;
  align-items:center;
  padding:16px;
  border-bottom:1px solid #eef0f3
}
.field-icon {
  grid-column:1;
  grid-row:1;
  display:flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  color:#2684ff;
  font-weight:800;
  background:#eef6ff;
  border-radius:10px
}
.field-icon-debt {
  color:#f59e0b;
  background:#fff8e6
}
.field-icon-income {
  color:#10b981;
  background:#eafbf5
}
.field-icon-asset {
  color:#7c3aed;
  background:#f3efff
}
.ios-label {
  grid-column:2;
  grid-row:1;
  font-size:14px;
  font-weight:800
}
.field-control {
  grid-column:3;
  grid-row:1;
  position:relative;
  display:flex;
  min-width:0
}
.field-control>input,.field-control>.ios-select {
  width:100%;
  min-width:0;
  min-height:46px;
  padding:0 52px 0 10px;
  box-sizing:border-box;
  font-size:14px;
  font-weight:600;
  text-align:right;
  background:#f8fafc;
  border:1px solid #d8dee8;
  border-radius:9px
}
.field-control>.ios-select {
  padding-right:10px;
  text-align:left
}
.field-unit {
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  min-width:14px;
  color:#657083;
  font-size:11px;
  text-align:right;
  background:#f8fafc;
  pointer-events:none
}
.field-description {
  grid-column:2/4;
  grid-row:2;
  margin:0;
  color:#667085;
  font-size:11px
}
.amount-buttons {
  grid-column:2/4;
  grid-row:3;
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:7px;
  width:100%
}
.amount-buttons button {
  min-width:0;
  min-height:36px;
  padding:0 5px;
  color:#1d4ed8;
  font-size:10px;
  font-weight:700;
  white-space:nowrap;
  background:#eef6ff;
  border:1px solid #bfdbfe;
  border-radius:8px
}
.amount-buttons .amount-reset {
  justify-self:start;
  width:34px;
  min-width:34px;
  height:34px;
  min-height:34px;
  padding:0;
  color:#475467;
  font-size:13px;
  background:#fff;
  border:1px solid #cbd5e1;
  border-radius:50%
}
.calc-btn,.calc-btn-highlight {
  width:100%;
  min-height:52px;
  margin-top:20px;
  color:#fff;
  font-weight:800;
  background:#2684ff;
  border:0;
  border-radius:10px
}
.calc-btn:hover {
  background:#1d4ed8
}
.calc-btn-highlight {
  background:#f97316
}
.consult-status-box {
  margin-top:18px;
  padding:18px;
  background:#fff;
  border:1px solid #dbe5f3;
  border-radius:12px
}
.consult-status-title {
  font-weight:800
}
.status-warning {
  background:#fffaf0;
  border-color:#fed7aa
}
.status-warning .consult-status-title {
  color:#c2410c
}
.consult-status-guide {
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid #edf1f6
}
.calc-portal-card {
  border:0!important;
  box-shadow:none!important;
  background:transparent!important
}
.calc-portal-card-header {
  display:flex;
  gap:12px;
  margin-bottom:22px
}
.repay-bottom-nav {
  margin:26px auto;
  padding-top:13px;
  text-align:right;
  border-top:1px solid #dfe5ec
}
#calcResultCard {
  display:none!important
}
.modal {
  display:none;
  padding:16px;
  background:rgba(15,23,42,.48)
}
.modal-box {
  position:relative;
  width:min(100%,430px);
  max-height:calc(100vh - 32px);
  overflow:auto;
  padding:24px;
  background:#fff;
  border-radius:16px
}
.modal-close {
  position:absolute;
  top:16px;
  right:18px;
  width:32px;
  height:32px;
  border:0;
  border-radius:50%
}
.app-input {
  width:100%;
  height:46px;
  margin-bottom:16px;
  box-sizing:border-box
}
.privacy-row {
  display:grid;
  grid-template-columns:18px 1fr auto;
  gap:8px;
  align-items:center
}
.app-modal-btn {
  width:100%;
  min-height:50px;
  color:#fff;
  background:#2684ff;
  border:0;
  border-radius:10px
}
@media(max-width:768px) {
  .repay-calculator-layout {
    display:flex;
    flex-direction:column
  }
  .repay-calculator-inputs {
    order:1
  }
  .repay-input-summary {
    order:2;
    position:static;
    width:100%
  }
  .ios-field {
    grid-template-columns:36px minmax(86px,.75fr) minmax(0,1.25fr);
    padding:14px 10px
  }
  .field-description,.amount-buttons {
    grid-column:1/4
  }
  .field-description {
    padding-left:44px
  }
  .field-control>input {
    padding-right:50px!important;
    font-size:12px
  }
  .field-unit {
    right:10px;
    font-size:10px
  }
  .amount-buttons {
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:5px
  }
  .amount-buttons button {
    min-height:36px;
    padding:0 2px;
    font-size:9px
  }
  .calc-portal-card-header {
    display:block
  }
  .calc-portal-card-header strong,.calc-portal-card-header span {
    display:block
  }
}
@media(max-width:390px) {
  .field-control>input {
    padding-right:46px!important;
    font-size:11px
  }
  .field-unit {
    right:8px;
    font-size:9px
  }
  .amount-buttons {
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:4px
  }
  .amount-buttons button {
    font-size:8.5px
  }
  .field-description {
    padding-left:38px;
    font-size:10px
  }
}


/* ===== 금액 버튼 3+3 / C 버튼 2행 배치 ===== */
.amount-buttons {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 46px;
  grid-template-rows: repeat(2, 38px);
  gap: 7px;
  width: 100%;
}

.amount-buttons button {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 0 5px;
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  background: #eef6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .08s ease;
}

.amount-buttons button:hover {
  color: #fff;
  background: #2684ff;
  border-color: #2684ff;
  box-shadow: 0 4px 10px rgba(38, 132, 255, .18);
}

.amount-buttons button:active {
  transform: translateY(1px) scale(.98);
}

.amount-buttons button.is-active {
  color: #fff;
  background: #1d4ed8;
  border-color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(38, 132, 255, .16);
}

.amount-buttons .amount-reset {
  grid-column: 4;
  grid-row: 1 / 3;
  align-self: stretch;
  justify-self: stretch;
  width: 46px;
  min-width: 46px;
  height: auto;
  min-height: 83px;
  padding: 0;
  color: #9a3412;
  font-size: 14px;
  font-weight: 800;
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 10px;
}

.amount-buttons .amount-reset:hover {
  color: #fff;
  background: #f97316;
  border-color: #f97316;
  box-shadow: 0 4px 10px rgba(249, 115, 22, .2);
}

.amount-buttons .amount-reset.is-active {
  color: #fff;
  background: #c2410c;
  border-color: #c2410c;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, .18);
}


.amount-buttons .amount-reset {
  font-size: 14px;
}

@media (max-width: 768px) {
  .amount-buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr)) 44px;
    grid-template-rows: repeat(2, 38px);
    gap: 5px;
  }

  .amount-buttons button {
    min-height: 38px;
    font-size: 9px;
  }

  .amount-buttons .amount-reset {
    width: 44px;
    min-width: 44px;
    min-height: 81px;
  }
}

@media (max-width: 390px) {
  .amount-buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr)) 42px;
    gap: 4px;
  }

  .amount-buttons button {
    padding: 0 2px;
    font-size: 8.5px;
  }

  .amount-buttons .amount-reset {
    width: 42px;
    min-width: 42px;
  }

}

/* ===== Small mobile amount visibility fix ===== */
@media (max-width: 390px) {
  .ios-field {
    grid-template-columns: 32px minmax(70px, .58fr) minmax(132px, 1.42fr);
    column-gap: 6px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .ios-label {
    font-size: 12px;
    line-height: 1.35;
    word-break: keep-all;
  }

  .field-control {
    min-width: 132px;
  }

  .field-control > input[type="number"],
  .field-control > .ios-input {
    width: 100%;
    min-width: 0;
    padding-left: 7px !important;
    padding-right: 30px !important;
    font-size: 11px !important;
    letter-spacing: -.35px;
  }

  .field-control .field-unit {
    right: 7px !important;
    min-width: 12px;
    font-size: 8px !important;
  }

  .field-description,
  .amount-buttons {
    grid-column: 1 / 4;
  }

  .field-description {
    padding-left: 38px;
  }
}

@media (max-width: 350px) {
  .ios-field {
    grid-template-columns: 30px minmax(64px, .52fr) minmax(128px, 1.48fr);
    column-gap: 5px;
    padding-left: 6px;
    padding-right: 6px;
  }

  .field-control {
    min-width: 128px;
  }

  .field-control > input[type="number"],
  .field-control > .ios-input {
    padding-left: 5px !important;
    padding-right: 28px !important;
    font-size: 10px !important;
    letter-spacing: -.45px;
  }

  .field-control .field-unit {
    right: 6px !important;
    font-size: 8px !important;
  }
}

/* ===== Small mobile: left/right breathing room for calculator fields ===== */
@media (max-width: 390px) {
  .repay-calculator-inputs .ios-field {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .repay-calculator-inputs .field-description,
  .repay-calculator-inputs .amount-buttons {
    box-sizing: border-box;
  }
}

@media (max-width: 350px) {
  .repay-calculator-inputs .ios-field {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* ===== Consultation / privacy modal final style ===== */
#calcConsultModal,
#calcPrivacyModal {
  padding: 14px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, .52);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

#calcConsultModal .modal-box,
#calcPrivacyModal .modal-box {
  position: relative;
  width: min(100%, 430px);
  max-height: calc(100vh - 28px);
  overflow-y: auto;
  padding: 24px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .22);
}

#calcConsultModal .modal-close,
#calcPrivacyModal .modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: #475569;
  font-size: 25px;
  line-height: 1;
  background: #f1f5f9;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

#calcConsultModal .app-modal-title,
#calcPrivacyModal .app-modal-title {
  margin: 0 44px 6px 0;
  color: #172033;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
}

#calcConsultModal .modal-desc,
#calcPrivacyModal .privacy-sub-title {
  margin: 0 0 20px;
  color: #667085;
  font-size: 13px;
  line-height: 1.6;
}

#calcConsultForm > label {
  display: block;
  margin: 0 0 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

#calcConsultForm .app-input {
  width: 100%;
  height: 46px;
  margin: 0 0 16px;
  padding: 0 13px;
  box-sizing: border-box;
  color: #172033;
  font-size: 14px;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 9px;
  outline: none;
}

#calcConsultForm .app-input:focus {
  border-color: #2684ff;
  box-shadow: 0 0 0 3px rgba(38, 132, 255, .12);
}

#calcConsultForm .privacy-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin: 2px 0 18px;
}

#calcConsultForm .privacy-row label {
  margin: 0;
  color: #475467;
  font-size: 12px;
  line-height: 1.45;
}

#calcOpenPrivacy {
  min-height: 34px;
  padding: 0 10px;
  color: #2684ff;
  font-size: 12px;
  font-weight: 700;
  background: #eef6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  cursor: pointer;
}

#calcOpenPrivacy:hover {
  color: #1d4ed8;
  background: #e3f0ff;
}

#calcConsultForm .app-modal-btn {
  width: 100%;
  min-height: 50px;
  padding: 13px 18px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  background: #2684ff;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 5px 14px rgba(38, 132, 255, .20);
  cursor: pointer;
}

#calcConsultForm .app-modal-btn:hover {
  background: #1d4ed8;
}

#calcPrivacyModal .privacy-table {
  overflow: hidden;
  margin-top: 4px;
  background: #fff;
  border: 1px solid #dbe5f3;
  border-radius: 12px;
}

#calcPrivacyModal .privacy-info-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  border-bottom: 1px solid #edf1f5;
}

#calcPrivacyModal .privacy-info-row:last-child {
  border-bottom: 0;
}

#calcPrivacyModal .privacy-label {
  padding: 13px 12px;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
  background: #f8fafc;
  border-right: 1px solid #edf1f5;
}

#calcPrivacyModal .privacy-value {
  padding: 13px 14px;
  color: #475467;
  font-size: 12px;
  line-height: 1.55;
}

#calcPrivacyModal .privacy-safe-box {
  margin-top: 14px;
  padding: 13px 14px;
  color: #1d4ed8;
  font-size: 12px;
  line-height: 1.55;
  background: #f1f7ff;
  border: 1px solid #dbeafe;
  border-radius: 10px;
}

#calcPrivacyModal .privacy-guide {
  margin: 12px 0 0;
  color: #667085;
  font-size: 11px;
  line-height: 1.6;
}

/* ===== Bottom Home link final style ===== */
.repay-bottom-nav {
  width: calc(100% - 20px);
  max-width: 900px;
  margin: 28px auto 30px;
  padding-top: 14px;
  box-sizing: border-box;
  text-align: right;
  border-top: 1px solid #dfe5ec;
}

.repay-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  color: #475467;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease;
}

.repay-home-link:hover {
  color: #1d4ed8;
  background: #eef6ff;
  border-color: #bfdbfe;
}

@media (max-width: 480px) {
  #calcConsultModal,
  #calcPrivacyModal {
    padding: 8px;
  }

  #calcConsultModal .modal-box,
  #calcPrivacyModal .modal-box {
    width: 100%;
    max-height: calc(100vh - 16px);
    padding: 20px 16px;
    border-radius: 14px;
  }

  #calcConsultModal .app-modal-title,
  #calcPrivacyModal .app-modal-title {
    margin-right: 40px;
    font-size: 18px;
  }

  #calcConsultForm .privacy-row {
    grid-template-columns: 18px minmax(0, 1fr) auto;
  }

  #calcPrivacyModal .privacy-info-row {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  #calcPrivacyModal .privacy-label,
  #calcPrivacyModal .privacy-value {
    padding: 11px 9px;
    font-size: 11px;
  }

  .repay-bottom-nav {
    margin-top: 24px;
    margin-bottom: 24px;
    padding-top: 12px;
  }
}


/* ===== Required mark + plain Home link final override ===== */
#calcConsultModal .required-mark {
  color: #ef4444;
  font-weight: 800;
}

.repay-bottom-nav {
  width: calc(100% - 20px);
  max-width: 900px;
  margin: 28px auto 30px;
  padding-top: 13px;
  text-align: right;
  border-top: 1px solid #dfe5ec;
}

.repay-home-link {
  display: inline !important;
  min-height: 0 !important;
  padding: 0 !important;
  color: #526579 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.4;
  text-decoration: none !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
}

.repay-home-link:hover {
  color: #2684ff !important;
  background: transparent !important;
  border: 0 !important;
  text-decoration: underline !important;
}

@media (max-width: 768px) {
  .repay-bottom-nav {
    margin-top: 24px;
    margin-bottom: 24px;
    padding-top: 11px;
  }

  .repay-home-link {
    font-size: 10px !important;
  }
}


/* ===== Amount helper text ===== */
.field-man-value {
  grid-column: 3;
  grid-row: 2;
  margin: -1px 3px 0 0;
  color: #2684ff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  text-align: right;
  white-space: nowrap;
}
.ios-field .field-man-value + .amount-buttons { grid-row: 3; }
@media (max-width: 768px) {
  .field-man-value { grid-column:3;grid-row:2;margin-right:2px;font-size:10px; }
  .ios-field .field-man-value + .amount-buttons { grid-column:1/4;grid-row:3; }
}
@media (max-width:390px) { .field-man-value { font-size:9px; } }

/* 금액 입력창 바로 아래 우측 만원 단위 보조표시 */
.amount-unit-text {
  margin: 5px 2px 6px 0;
  color: #2684ff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  text-align: right;
}

.repay-reference-section {
    margin: 18px 0 22px;
  }

  .repay-reference-details {
    overflow: hidden;
    border: 1px solid #dbe7f7;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  }

  .repay-reference-details > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    cursor: pointer;
    list-style: none;
    color: #0f172a;
    background: #f8fbff;
    font-weight: 800;
    line-height: 1.45;
  }

  .repay-reference-details > summary::-webkit-details-marker {
    display: none;
  }

  .repay-reference-details > summary::after {
    content: '펼쳐보기 +';
    flex: 0 0 auto;
    color: #2684ff;
    font-size: 13px;
    font-weight: 800;
  }

  .repay-reference-details[open] > summary::after {
    content: '접기 −';
  }

  .repay-reference-details[open] > summary {
    border-bottom: 1px solid #e5edf7;
  }

  .repay-reference-body {
    padding: 18px;
  }

  .repay-reference-intro,
  .repay-reference-source,
  .repay-reference-note {
    margin: 0 0 14px;
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
  }

  .repay-reference-table-wrap {
    overflow-x: auto;
    margin: 14px 0;
    border: 1px solid #e5edf7;
    border-radius: 12px;
  }

  .repay-reference-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    background: #ffffff;
  }

  .repay-reference-table th,
  .repay-reference-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #edf2f7;
    text-align: center;
    white-space: nowrap;
    font-size: 14px;
  }

  .repay-reference-table th {
    color: #1e3a5f;
    background: #f2f7ff;
    font-weight: 800;
  }

  .repay-reference-table tbody tr:last-child td {
    border-bottom: 0;
  }

  .repay-reference-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid #b9d7ff;
    border-radius: 9px;
    color: #1d4ed8;
    background: #eef6ff;
    font-weight: 800;
    text-decoration: none;
  }

  .repay-reference-link:hover {
    color: #ffffff;
    background: #1d4ed8;
    border-color: #1d4ed8;
  }

  @media (max-width: 767px) {
    .repay-reference-details > summary {
      align-items: flex-start;
      padding: 15px;
      font-size: 15px;
    }

    .repay-reference-body {
      padding: 15px;
    }
  }

  .repay-bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
  }

  .repay-bottom-nav .repay-home-link,
  .repay-bottom-nav .repay-status-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    font-weight: 700;
    text-decoration: none;
  }

  .repay-bottom-nav .repay-home-link {
    justify-content: flex-start;
  }

  .repay-bottom-nav .repay-status-link {
    justify-content: flex-end;
    margin-left: auto;
    color: #2684ff;
  }

  .repay-bottom-nav .repay-status-link:hover {
    color: #1d4ed8;
  }

  @media (max-width: 480px) {
    .repay-bottom-nav {
      gap: 10px;
    }

    .repay-bottom-nav .repay-home-link,
    .repay-bottom-nav .repay-status-link {
      font-size: 14px;
    }
  }

  .repay-bottom-nav .repay-home-link,
  .repay-bottom-nav .repay-status-link {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
  }

  .repay-bottom-nav {
    justify-content: flex-start;
  }

  .repay-bottom-nav .repay-home-link {
    margin-right: 0;
    text-align: left;
  }

  .repay-bottom-nav .repay-status-link {
    margin-left: auto;
    text-align: right;
  }

  /* =========================
   계산결과 상담 CTA
========================= */
.calc-consult-cta {
  margin-top: 16px;
  padding: 20px;
  background: #f8fbff;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  text-align: center;
}

.calc-consult-title {
  margin: 0 0 6px;
  color: #1f2937;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.calc-consult-guide {
  margin: 0 0 16px;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.calc-btn-highlight {
  width: 100%;
  min-height: 52px;
  padding: 14px 20px;
  border: 0;
  border-radius: 10px;
  background: #2684ff;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.15s ease;
}

.calc-btn-highlight:hover {
  background: #1d4ed8;
}

.calc-btn-highlight:active {
  transform: translateY(1px);
}

.calc-btn-highlight:focus-visible {
  outline: 3px solid rgba(38, 132, 255, 0.25);
  outline-offset: 2px;
}

.calc-consult-privacy {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.calc-consult-privacy::before {
  content: "✓";
  margin-right: 5px;
  color: #2684ff;
  font-weight: 700;
}

/* 모바일 */
@media (max-width: 768px) {
  .calc-consult-cta {
    margin-top: 14px;
    padding: 16px;
    border-radius: 12px;
  }

  .calc-consult-title {
    font-size: 16px;
  }

  .calc-consult-guide {
    margin-bottom: 14px;
    font-size: 13px;
  }

  .calc-btn-highlight {
    min-height: 50px;
    font-size: 15px;
  }

  .calc-consult-privacy {
    font-size: 11px;
  }
}

/* =========================================================
   입력정보 요약 / 계산결과 요약
   repay-balance와 동일한 크기
========================================================= */

.repay-input-summary .repay-summary-card .result-row,
.repay-input-summary .repay-result-summary .result-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  padding: 11px 12px;
  align-items: center;
}

.repay-input-summary .repay-summary-card .result-row span,
.repay-input-summary .repay-summary-card .result-row strong,
.repay-input-summary .repay-result-summary .result-row span,
.repay-input-summary .repay-result-summary .result-row strong {
  min-width: 0;
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
  letter-spacing: -.35px;
}

/* 결과값 파란색 유지 */
.repay-input-summary .repay-summary-card .result-row strong,
.repay-input-summary .repay-result-summary .result-row strong {
  color: #2684ff;
  font-weight: 700;
  text-align: right;
}

/* 작은 모바일 */
@media (max-width: 390px) {
  .repay-input-summary .repay-summary-card .result-row,
  .repay-input-summary .repay-result-summary .result-row {
    padding: 10px;
    gap: 4px;
  }

  .repay-input-summary .repay-summary-card .result-row span,
  .repay-input-summary .repay-summary-card .result-row strong,
  .repay-input-summary .repay-result-summary .result-row span,
  .repay-input-summary .repay-result-summary .result-row strong {
    font-size: 11px;
    letter-spacing: -.45px;
  }
}

/* 입력항목 텍스트 배지 */
.field-icon.field-text-badge {
  width:auto;
  min-width:42px;
  height:30px;
  padding:0 8px;
  box-sizing:border-box;
  font-size:10px;
  font-weight:800;
  line-height:1;
  white-space:nowrap;
  border-radius:999px;
}
.field-icon-household.field-text-badge { color:#2563eb; background:#eff6ff; }
.field-icon-living.field-text-badge { color:#0284c7; background:#f0f9ff; }
.field-icon-extra.field-text-badge { color:#0f766e; background:#f0fdfa; }
.field-icon-months.field-text-badge { color:#4f46e5; background:#eef2ff; }
.field-icon-debt.field-text-badge { color:#b45309; background:#fff7ed; }
.field-icon-income.field-text-badge { color:#047857; background:#ecfdf5; }
.field-icon-asset.field-text-badge { color:#7c3aed; background:#f5f3ff; }
@media(max-width:390px) {
  .field-icon.field-text-badge {
    min-width:34px;
    padding:0 6px;
    font-size:9px;
  }
}
