.exam-cost-page { max-width: 1180px; min-width: 0; }
.exam-cost-page .cost-lead { max-width: 820px; font-size: clamp(1.05rem, 1.8vw, 1.25rem); }
.cost-boundary { display: grid; gap: .3rem; margin: 1.25rem 0; padding: 1rem 1.1rem; border: 1px solid color-mix(in srgb, var(--coral, #e8938f) 52%, transparent); border-radius: 18px; background: color-mix(in srgb, var(--coral, #e8938f) 9%, transparent); }
.cost-layout { display: grid; min-width: 0; gap: 1rem; margin: 1.4rem 0 2rem; }
.cost-panel { min-width: 0; padding: clamp(1rem, 2.5vw, 1.5rem); border: 1px solid rgba(255,255,255,.12); border-radius: 22px; background: #343944; color: #f5f1e9; box-shadow: 0 14px 35px rgba(0,0,0,.12); }
.cost-panel h2 { margin-top: 0; }
.cost-grid { display: grid; gap: .85rem; }
.cost-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cost-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cost-grid label, .cost-travel { display: grid; min-width: 0; gap: .4rem; font-weight: 650; }
.cost-grid input, .cost-grid select, .cost-travel input, .cost-category input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; border: 1px solid rgba(255,255,255,.2); border-radius: 11px; padding: .65rem .72rem; background: #131821; color: #f5f7fb; font: inherit; }
.cost-categories { display: grid; gap: .55rem; margin-top: 1.2rem; }
.cost-category { display: grid; min-width: 0; grid-template-columns: minmax(220px, 1fr) 120px 120px; gap: .7rem; align-items: end; padding: .75rem .8rem; border-radius: 14px; background: #3d4d55; color: #f5f7fb; }
.cost-category > div { display: grid; gap: .15rem; }
.cost-category span, .cost-panel .cost-small, .cost-results .cost-small { color: #cbd2dd; font-size: .88rem; }
.cost-category label { display: grid; gap: .25rem; font-size: .82rem; font-weight: 650; }
.cost-checks { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; margin: 1rem 0; }
.cost-checks label { display: flex; align-items: flex-start; gap: .55rem; max-width: 430px; }
.cost-checks input { width: 20px; height: 20px; margin-top: .1rem; accent-color: var(--teal, #58c7bd); }
.cost-travel { max-width: 420px; }
.cost-calculate { justify-self: start; min-height: 48px; border: 0; border-radius: 999px; padding: .75rem 1.25rem; background: var(--coral, #e8938f); color: #171116; font: inherit; font-weight: 800; cursor: pointer; }
.cost-calculate:hover { filter: brightness(1.07); transform: translateY(-1px); }
.cost-calculate:focus-visible { outline: 3px solid var(--teal, #58c7bd); outline-offset: 3px; }
.cost-results { margin: 2rem 0; padding: clamp(1rem, 3vw, 1.7rem); border-radius: 24px; background: linear-gradient(145deg, #21343a, #1d2530); color: #f5f7fb; }
.cost-results h2 { margin-top: 0; }
.cost-panel h2, .cost-results h2, .cost-results h3 { color: #f5f1e9; }
.cost-result-intro { max-width: 800px; }
.cost-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin: 1rem 0; }
.cost-stat-grid article { display: grid; gap: .35rem; min-height: 145px; padding: 1rem; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: #131b25; color: #f5f7fb; }
.cost-stat-grid span { font-size: .9rem; color: #cbd2dd; }
.cost-stat-grid strong { align-self: center; font-family: Fraunces, Georgia, serif; font-size: clamp(1.6rem, 4vw, 2.5rem); color: var(--teal, #58c7bd); }
.cost-stat-grid small { align-self: end; color: #cbd2dd; }
.cost-details { display: grid; gap: .65rem; }
.cost-details details { border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: .75rem .9rem; background: #141b25; color: #f5f7fb; }
.cost-details summary { display: flex; justify-content: space-between; gap: 1rem; cursor: pointer; font-weight: 700; }
.cost-breakdown { display: grid; gap: .35rem; padding: 0; list-style: none; }
.cost-breakdown li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed rgba(255,255,255,.14); padding-bottom: .35rem; }
.cost-alert { padding: 1rem; border-left: 4px solid var(--coral, #e8938f); border-radius: 10px; background: color-mix(in srgb, var(--coral, #e8938f) 10%, transparent); }
.cost-table-wrap { overflow-x: auto; }
.cost-source-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.cost-source-table th, .cost-source-table td { padding: .75rem; border-bottom: 1px solid color-mix(in srgb, var(--ink, #edeef2) 14%, transparent); text-align: left; vertical-align: top; }
.cost-source-table thead th { color: var(--muted, #aeb4c0); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 820px) {
  .cost-grid--three, .cost-grid--two, .cost-stat-grid { grid-template-columns: 1fr; }
  .cost-category { grid-template-columns: 1fr 1fr; }
  .cost-category > div { grid-column: 1 / -1; }
  .cost-stat-grid article { min-height: 120px; }
}
@media (max-width: 480px) {
  .cost-category { grid-template-columns: 1fr; }
  .cost-category > div { grid-column: auto; }
  .cost-details summary, .cost-breakdown li { align-items: flex-start; flex-direction: column; gap: .3rem; }
}
@media print {
  .cost-layout, .cost-calculate { display: none !important; }
  .cost-results, .cost-stat-grid article, .cost-details details { background: #fff !important; color: #000 !important; box-shadow: none; }
}
