/* =========================================================================
   tools/car-loan/style.css — Car loan calculator
   Theme: Palette F — turquoise (#4ECDC4)
   Mood: vibrant, lifestyle, energetic — สด เหมือน fintech app สมัยใหม่
   Layout: Hero + Big Number Card (BoA mortgage style) + slider-heavy inputs
   ========================================================================= */

/* === Theme override (Palette F — --f-turquoise) === */
body {
  --blue:         #4ECDC4;   /* primary — turquoise สดใส */
  --blue-dark:    #38B3AB;   /* hover / pressed */
  --primary-bg:   #E8FAF8;   /* callout bg อ่อนมาก */
  --primary-mid:  #C8F1ED;   /* card lift bg */
  --primary-tint: rgba(78, 205, 196, 0.14);
  --primary-text: #1A535C;   /* darkest in palette F — text contrast */
  --accent-light: #8DDDD6;   /* border highlight */
  --accent-warm:  #FF6B6B;   /* contrast accent (palette F coral-red) */

  /* === Hero background image (Pexels — black car) === */
  --hero-bg: url('https://images.pexels.com/photos/244206/pexels-photo-244206.jpeg?auto=compress&cs=tinysrgb&w=1600');
}

/* === Container — edge-to-edge 1400 === */
body .container {
  max-width: 1400px;
  padding: 0;
}
body .site-header-inner {
  max-width: 1400px;
  padding: 0.85rem 1.5rem;
}

/* === Back link === */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin: 1.25rem 0 0 1.5rem;
  padding: 0.5rem 1rem;
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow-pill);
  transition: color 0.15s;
}
.back-link:hover { color: var(--blue); }

/* ============================================================
   Hero / Leaderboard banner — DISTINCTIVE จาก tool อื่น
   ============================================================ */
.hero-banner {
  max-width: 1400px;
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 2.5rem 2.75rem;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 220px;

  /* Layer 1: BG image */
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center right 25%;
  background-repeat: no-repeat;
}
/* Layer 2: gradient overlay — turquoise tint สดใส ทับ image */
.hero-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(232, 250, 248, 0.96) 0%,
    rgba(200, 241, 237, 0.88) 35%,
    rgba(200, 241, 237, 0.50) 62%,
    rgba(78, 205, 196, 0.18) 100%
  );
  z-index: 0;
}
/* Layer 3.5: dotted geometric decoration — modern signal */
.hero-inner > .hero-icon::after,
.hero-decoration {
  content: "";
  position: absolute;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--accent-light) 1px, transparent 1.5px);
  background-size: 14px 14px;
  opacity: 0.55;
  z-index: 1;
}
.hero-decoration {
  bottom: -10px;
  left: 24%;
  width: 180px;
  height: 80px;
  mask-image: linear-gradient(to right, black, transparent);
  -webkit-mask-image: linear-gradient(to right, black, transparent);
}
/* Layer 3: subtle highlight */
.hero-inner::after {
  content: "";
  position: absolute;
  bottom: -40%;
  right: -5%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255,255,255,0.35) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}
.hero-inner > * { position: relative; z-index: 2; }

.hero-icon {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  background: #fff;
  color: var(--blue);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(78, 205, 196, 0.35);
}
.hero-body {
  flex: 1;
  min-width: 0;
}
.hero-title {
  font-size: clamp(1.85rem, 4.5vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--primary-text);
  margin: 0 0 0.5rem;
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}
.hero-tagline {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0 0 1.25rem;
}
.hero-tagline strong { color: var(--primary-text); font-weight: 700; }

.hero-stats {
  display: flex;
  gap: 0.55rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.hero-stats li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--accent-light);
  border-radius: 999px;
  line-height: 1.2;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.15s, border-color 0.15s;
}
.hero-stats li:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
}
.hero-stat-num {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-text);
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}
.hero-stat-lbl {
  font-size: 0.78rem;
  color: var(--text-soft);
  font-weight: 500;
}

@media (max-width: 768px) {
  .hero-banner { padding: 0 1rem; }
  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.75rem 1.5rem;
    gap: 1.25rem;
    min-height: 0;
    background-position: center top;
  }
  /* Mobile: ทับด้วย overlay เกือบเต็ม เพื่อให้ text อ่านง่ายเมื่อ stack */
  .hero-inner::before {
    background: linear-gradient(
      170deg,
      rgba(232, 250, 248, 0.93) 0%,
      rgba(200, 241, 237, 0.85) 60%,
      rgba(78, 205, 196, 0.20) 100%
    );
  }
  .hero-icon { width: 64px; height: 64px; border-radius: 16px; }
  .hero-icon svg { width: 36px; height: 36px; }
  .hero-stats { gap: 1rem; }
  .hero-stats li { padding-left: 0.75rem; border-left-width: 2px; }
  .hero-stat-num { font-size: 1.1rem; }
}

/* ============ Layout — 2 columns ============ */
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  margin-top: 1.5rem;
}
.calc-form,
.calc-result {
  padding: 2rem 2rem 3rem;
  min-width: 0;
}

.form-card,
.result-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 1.75rem 1.85rem;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04), 0 6px 18px rgba(15,23,42,0.04);
}

@media (max-width: 768px) {
  .calc-layout { grid-template-columns: 1fr; }
  .calc-form,
  .calc-result { padding: 1.25rem 1rem 1.5rem; }
  .calc-form { padding-bottom: 0.5rem; }
}
@media (max-width: 480px) {
  .form-card,
  .result-card { padding: 1.25rem 1.1rem; border-radius: 12px; }
}

/* ============ Form ============ */
.page-title {
  font-size: clamp(1.4rem, 3.2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.page-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

/* Field — underline */
.field { margin-bottom: 1.75rem; }
.field-label {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.65rem;
  letter-spacing: -0.01em;
}
.lbl-hint {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  margin-left: 0.4rem;
  letter-spacing: 0;
}
.field-input {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  border-bottom: 1.5px solid var(--border);
  padding-bottom: 0.45rem;
  transition: border-color 0.15s;
}
.field-input:focus-within { border-color: var(--blue); }
.field-prefix {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1;
}
.field-input input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1.6rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--text);
  padding: 0;
  width: 100%;
  letter-spacing: -0.01em;
  -moz-appearance: textfield;
}
.field-input input::-webkit-outer-spin-button,
.field-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field-input input::placeholder { color: #CBD5E1; font-weight: 400; }

.error-msg {
  color: #DC2626;
  font-size: 0.85rem;
  margin-top: 0.55rem;
  font-weight: 500;
  display: none;
}
.error-msg.show { display: block; }

/* Hint text */
.hint-text {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 0.55rem;
}
.hint-text strong { color: var(--text-soft); font-weight: 600; }

/* Quick presets (chip buttons) */
.quick-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.7rem;
}
.quick-presets button {
  padding: 0.4rem 0.85rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.15s;
}
.quick-presets button:hover {
  border-color: var(--accent-light);
  color: var(--blue);
}
.quick-presets button.is-active {
  background: var(--primary-bg);
  border-color: var(--blue);
  color: var(--blue);
  font-weight: 600;
}

/* Primary button */
.btn {
  display: block;
  width: 100%;
  padding: 1rem;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(78, 205, 196, 0.36);
}
.btn:hover {
  background: var(--blue-dark);
  box-shadow: 0 6px 22px rgba(78, 205, 196, 0.48);
  transform: translateY(-1px);
}

/* ============ Result ============ */
.result-empty {
  text-align: center;
  padding: 3.5rem 1.5rem;
  color: var(--muted);
}
.result-empty .empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.55;
}
.result-empty p { font-size: 0.95rem; }

.result-content { animation: fadeIn 0.3s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === Field label + inline mini toggle (เช่น %/฿ ของเงินดาวน์) === */
.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}
.field-label-row .field-label {
  margin-bottom: 0;
}
.seg-control-mini {
  display: inline-flex;
  background: #F1F5F9;
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
  flex: 0 0 auto;
}
.seg-control-mini input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.seg-control-mini label {
  flex: 0 0 auto;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  user-select: none;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.seg-control-mini label:hover { color: var(--text-soft); }
.seg-control-mini input:checked + label {
  background: #fff;
  color: var(--blue);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(15,23,42,0.10);
}

/* === Range slider — modern signal === */
.field-slider {
  margin-top: 0.85rem;
}
.field-slider input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: var(--primary-bg);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}
.field-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--blue) var(--slider-fill, 50%), #E2E8F0 var(--slider-fill, 50%));
}
.field-slider input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: #E2E8F0;
}
.field-slider input[type="range"]::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--blue);
}
.field-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: #fff;
  border: 3px solid var(--blue);
  border-radius: 50%;
  cursor: grab;
  margin-top: -8px;
  box-shadow: 0 2px 8px rgba(78, 205, 196, 0.35);
  transition: transform 0.12s, box-shadow 0.12s;
}
.field-slider input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: #fff;
  border: 3px solid var(--blue);
  border-radius: 50%;
  cursor: grab;
  box-shadow: 0 2px 8px rgba(78, 205, 196, 0.35);
  transition: transform 0.12s, box-shadow 0.12s;
}
.field-slider input[type="range"]:hover::-webkit-slider-thumb,
.field-slider input[type="range"]:focus::-webkit-slider-thumb {
  transform: scale(1.1);
  box-shadow: 0 0 0 6px var(--primary-tint), 0 2px 8px rgba(78, 205, 196, 0.45);
}
.field-slider input[type="range"]:hover::-moz-range-thumb,
.field-slider input[type="range"]:focus::-moz-range-thumb {
  transform: scale(1.1);
  box-shadow: 0 0 0 6px var(--primary-tint), 0 2px 8px rgba(78, 205, 196, 0.45);
}
.field-slider-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 0.45rem;
  font-size: 0.72rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Summary cards */
.summary-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
@media (max-width: 540px) { .summary-cards { grid-template-columns: 1fr; } }
.summary-card {
  padding: 1.5rem 1.6rem;
  border-radius: 16px;
  border: 1px solid;
  position: relative;
  overflow: hidden;
}
/* Big-number primary card — BoA mortgage style */
.summary-card-pay {
  background:
    radial-gradient(circle at 100% 0%, rgba(255,255,255,0.5) 0%, transparent 60%),
    linear-gradient(140deg, var(--primary-bg) 0%, var(--primary-mid) 100%);
  border-color: var(--accent-light);
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem 1.5rem;
}
.summary-card-pay::before {
  content: "";
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 140px;
  height: 80px;
  background-image: radial-gradient(circle, var(--accent-light) 1px, transparent 1.5px);
  background-size: 12px 12px;
  opacity: 0.55;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at right bottom, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at right bottom, black 30%, transparent 75%);
}
/* secondary card — neutral compact */
.summary-card-vat {
  display: none;   /* รวมไปอยู่ใน big number card แทน */
}
.summary-card-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-text);
  margin-bottom: 0.35rem;
  letter-spacing: 0;
  opacity: 0.8;
}
.summary-card-value {
  font-size: clamp(2.5rem, 7vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 0.55rem;
  font-variant-numeric: tabular-nums;
  color: var(--primary-text);
}
.summary-card-note {
  font-size: 0.85rem;
  color: var(--primary-text);
  opacity: 0.7;
  font-weight: 500;
}

/* === Mini-stats row ใต้ Big Number — BoA "Rate / APR / Points" style === */
.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-top: 1rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--accent-light);
}
.mini-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  text-align: center;
}
.mini-stat-label {
  font-size: 0.72rem;
  color: var(--text-soft);
  font-weight: 500;
  letter-spacing: 0;
}
.mini-stat-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-text);
  font-variant-numeric: tabular-nums;
}
.mini-stat-value.warm { color: var(--accent-warm); }
@media (max-width: 480px) {
  .mini-stats { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .mini-stat:last-child { grid-column: 1 / -1; padding-top: 0.5rem; border-top: 1px dashed var(--accent-light); }
}

/* Breakdown */
.break-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 0.25rem;
  font-size: 0.95rem;
  line-height: 1.5;
}
.break-row + .break-row { border-top: 1px dashed #E2E8F0; }
.break-label {
  color: var(--text-soft);
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.break-value {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.break-add { color: var(--text-soft); font-weight: 500; }
.break-sub { color: #DC2626; font-weight: 600; }

.break-row-final {
  margin-top: 0.5rem;
  padding-top: 1.1rem !important;
  border-top: 2px solid var(--text) !important;
}
.break-row-final .break-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.break-final {
  font-size: 1.2rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.rate-badge {
  background: var(--primary-tint);
  color: var(--blue);
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

/* Visualization bar */
.bar {
  height: 10px;
  border-radius: 999px;
  background: #F1F5F9;
  display: flex;
  overflow: hidden;
  margin-top: 1.25rem;
}
.bar-fill {
  height: 100%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.bar-principal { background: var(--blue); }
.bar-interest  { background: var(--accent-warm); }   /* coral-red — warm contrast กับ turquoise */

.bar-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.4rem;
  vertical-align: middle;
}
.bar-legend > span:last-child .dot { margin-right: 0; margin-left: 0.4rem; }
.dot-principal { background: var(--blue); }
.dot-interest  { background: var(--accent-warm); }

/* Summary callout */
.summary-callout {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem;
  background: linear-gradient(180deg, var(--primary-bg) 0%, var(--primary-mid) 100%);
  border: 1px solid var(--accent-light);
  border-radius: 14px;
}
.summary-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  line-height: 1.4;
}
.summary-text {
  color: var(--primary-text);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.summary-text strong {
  font-weight: 700;
  color: var(--primary-text);
  white-space: nowrap;
}

/* Rate compare (Flat vs Effective) — เฉพาะ car-loan */
.rate-compare {
  margin-top: 1.5rem;
  padding: 0.5rem 0;
  border-top: 1px dashed var(--border);
}
.rate-compare-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.7rem 0.25rem;
  font-size: 0.92rem;
  color: var(--text-soft);
}
.rate-compare-row + .rate-compare-row { border-top: 1px dashed #E2E8F0; }
.rate-compare-label { font-weight: 500; }
.rate-compare-value {
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.rate-compare-emph {
  background: var(--primary-bg);
  border-radius: 8px;
  padding: 0.85rem 0.75rem;
  margin-top: 0.4rem;
}
.rate-compare-emph + .rate-compare-row { border-top: none; }
.rate-compare-emph .rate-compare-label {
  color: var(--primary-text);
  font-weight: 700;
}
.rate-compare-emph .rate-compare-value {
  color: var(--blue);
  font-size: 1.05rem;
  font-weight: 700;
}

/* Capture credit */
.capture-credit {
  margin-top: 1.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-soft);
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.capture-credit strong { color: var(--blue); font-weight: 700; }

/* Result actions */
.result-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1rem;
  background: #fff;
  color: var(--text-soft);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}
.action-btn:hover {
  background: var(--primary-bg);
  color: var(--blue);
  border-color: var(--accent-light);
}
.action-btn.is-success {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.action-btn svg { stroke: currentColor; }

@media (max-width: 480px) {
  .result-actions { flex-direction: column; }
  .action-btn { width: 100%; justify-content: center; }
}

/* ============ Info + FAQ — 2 columns ============ */
.info-grid {
  max-width: 1400px;
  margin: 4rem auto 5rem;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 0 1rem;
    margin: 3rem auto 4rem;
  }
}
.info-accordion { margin: 0; padding: 0; max-width: none; }
.info-accordion-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 0.5rem;
}
.info-accordion-faq .faq-grid { display: block; }

/* Accordion — Google FAQ flat */
.info-acc {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-soft);
  border-radius: 0;
  margin: 0;
  padding: 0;
}
.info-acc:first-of-type { border-top: 1px solid var(--border-soft); }

.info-acc summary {
  padding: 1.25rem 0.25rem;
  cursor: pointer;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  user-select: none;
  transition: color 0.15s;
}
.info-acc summary::-webkit-details-marker { display: none; }
.info-acc summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  margin-bottom: 4px;
  transition: transform 0.25s, border-color 0.15s;
  flex-shrink: 0;
  opacity: 0.7;
}
.info-acc[open] summary::after {
  transform: rotate(225deg);
  margin-bottom: -4px;
  border-color: var(--blue);
  opacity: 1;
}
.info-acc summary:hover { color: var(--text); }
.info-acc[open] summary { font-weight: 500; color: var(--text); }
.info-acc-body {
  padding: 0 0.25rem 1.4rem;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.85;
}
.info-acc-body p { margin-bottom: 0.8rem; }
.info-acc-body p:last-child { margin-bottom: 0; }
.info-acc-body strong { color: var(--text); font-weight: 600; }

.rate-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 0.5rem;
}
.rate-list li {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.65rem 0.85rem;
  background: #F8FAFC;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-soft);
}
.rate-pct {
  flex-shrink: 0;
  min-width: 5rem;
  text-align: center;
  background: var(--primary-tint);
  color: var(--blue);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.formula {
  background: #F8FAFC;
  border-radius: 10px;
  padding: 0.95rem 1.15rem;
}
.formula-row {
  padding: 0.45rem 0;
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.7;
}
.formula-row + .formula-row { border-top: 1px dashed var(--border); }

/* (.glossary + .related-tools — ย้ายไป core.css เป็น shared utility) */

@media (max-width: 480px) {
  .field             { margin-bottom: 1.5rem; }
  .info-grid         { padding: 0 1rem; }
  .info-acc summary  { padding: 1.1rem 0.25rem; font-size: 0.95rem; }
}
