/* =========================================================
   2026 자동차세 연납 할인 계산기 – car-tax.html 전용
   공통 styles.css + calculator.css 위에 필요한 조각만 얹는다.
   ========================================================= */

/* ---------- 카드 헤더 보조 ---------- */
.label-note {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted-2);
  white-space: nowrap;
}

/* ---------- 세그먼트 버튼 (연료·신청 시기) ---------- */
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  background: #f1f5f9;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.seg-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.seg-btn {
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-height: 44px;
  padding: 8px 6px;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.25;
  color: #475569;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
  word-break: keep-all;
}
.seg-btn small {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted-2);
  letter-spacing: 0;
}
.seg-btn:hover { background: rgba(255, 255, 255, .7); color: var(--ink-2); }
.seg-btn.is-active {
  background: #fff;
  color: var(--blue-dark);
  border-color: #c7d9fd;
  box-shadow: 0 2px 8px -4px rgba(15, 23, 42, .25);
}
.seg-btn.is-active small { color: var(--blue); }
.seg-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.seg-btn:disabled { opacity: .5; cursor: not-allowed; }

@media (max-width: 380px) {
  .seg-btn { font-size: 12.5px; min-height: 42px; }
  .seg-btn small { font-size: 10px; }
}

/* ---------- 필드 라벨 (label 없이 span으로 쓰는 곳) ---------- */
.field-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 7px;
}

/* ---------- 전기차 안내 ---------- */
.ev-note {
  margin: 0;
  padding: 13px 15px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #92400e;
  background: var(--amber-50);
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
}
.ev-note strong { color: #78350f; }

/* ---------- 폼 하단 안내 ---------- */
.f-inline-note {
  margin: 16px 0 0;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted-2);
}

/* ---------- 결과: 분할납부 비교 ---------- */
.split-compare {
  margin-top: 18px;
  padding: 14px 15px;
  background: #f8fafc;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
}
.split-compare h4 {
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: -.01em;
}
.split-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  font-size: 13px;
  color: #475569;
  border-top: 1px dashed #e2e8f0;
}
.split-row:first-of-type { border-top: 0; padding-top: 0; }
.split-row b {
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.split-row.is-save { border-top: 1px solid #d1fae5; margin-top: 4px; padding-top: 9px; }
.split-row.is-save b { color: var(--emerald); font-size: 15px; }
.split-row small {
  display: block;
  font-size: 11px;
  color: var(--muted-2);
  font-weight: 400;
  margin-top: 1px;
}
