/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Arial, sans-serif; background: #f0f2f5; color: #1a2035; min-height: 100vh; }

/* ── Wrapper ──────────────────────────────────────────────────── */
.app-wrapper { margin: 0 auto; padding: 0 0 60px; }

/* ── Header ───────────────────────────────────────────────────── */
.app-header {
  background: linear-gradient(135deg, #0a2050 0%, #0d2b6b 45%, #1a4db8 100%);
  color: #fff; padding: 18px 40px; border-radius: 0;
  margin-bottom: 0; display: flex; align-items: center; gap: 20px;
  box-shadow: 0 2px 16px rgba(10,32,80,0.25);
}
.header-brand { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.brand-mark {
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.22);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  gap: 2px;
}
.brand-abbr { font-size: 17px; font-weight: 900; letter-spacing: 1.5px; color: #fff; line-height: 1; }
.brand-sub   { font-size: 7.5px; font-weight: 600; color: rgba(255,255,255,0.65); letter-spacing: 0.5px; line-height: 1; }
.header-divider { width: 1px; height: 38px; background: rgba(255,255,255,0.2); flex-shrink: 0; }
.header-text { flex: 1; }
.app-header h1 { font-size: 18px; font-weight: 800; letter-spacing: -0.3px; line-height: 1.2; }
.app-header p  { font-size: 12px; opacity: 0.65; margin-top: 3px; letter-spacing: 0.2px; }
.header-meta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-env-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px; padding: 5px 13px;
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.9);
  display: flex; align-items: center; gap: 6px; letter-spacing: 0.3px;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 2px rgba(74,222,128,0.3); flex-shrink: 0; }
.btn-header-new-quote {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px; padding: 7px 18px;
  font-size: 12px; font-weight: 700; color: #fff;
  cursor: pointer; transition: all 0.15s; letter-spacing: 0.3px;
}
.btn-header-new-quote:hover { background: rgba(255,255,255,0.25); }

/* ══════════════════════════════════════════════════════════════
   LANDING / OGI LOOKUP PAGE
══════════════════════════════════════════════════════════════ */
.lookup-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 62vh;
  padding: 32px 16px 60px;
}
.lookup-page-card {
  background: #fff;
  border-radius: 16px;
  padding: 52px 44px 44px;
  box-shadow: 0 6px 32px rgba(13,43,107,0.13);
  width: 100%;
  max-width: 520px;
  text-align: center;
}
.lookup-page-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, #0d2b6b, #1a4db8);
  border-radius: 16px;
  display: none;
}
.lookup-page-card h2 { font-size: 22px; font-weight: 800; color: #0d2b6b; margin-bottom: 8px; }
.lookup-page-card p  { font-size: 14px; color: #6b7a99; margin-bottom: 32px; line-height: 1.5; }
.lookup-page-card .lookup-bar { display: flex; gap: 10px; margin-bottom: 12px; }
.lookup-page-card .lookup-bar input { flex: 1; font-size: 16px; padding: 13px 16px; border-radius: 10px; }
.lookup-page-card .lookup-bar .btn { padding: 13px 22px; border-radius: 10px; font-size: 14px; white-space: nowrap; }
.lookup-skip {
  font-size: 13px; color: #8891a8; margin-top: 16px; cursor: pointer;
  display: inline-block; text-decoration: underline; text-underline-offset: 3px;
}
.lookup-skip:hover { color: #1a4db8; }
.lookup-error {
  background: #fff8f8; border: 1.5px solid #e8a0a0; border-radius: 8px;
  padding: 11px 14px; font-size: 13px; color: #c0392b;
  margin-top: 14px; display: none; text-align: left;
  display: flex; gap: 8px; align-items: flex-start;
}
.lookup-error.visible { display: flex; }
.lookup-success {
  background: #f0fbf6; border: 1.5px solid #7dd9b2; border-radius: 8px;
  padding: 11px 14px; font-size: 13px; color: #0b7a54;
  margin-top: 14px; text-align: left;
  display: flex; gap: 8px; align-items: flex-start;
}

/* ── Two-column layout — sidebar LEFT, form RIGHT ─────────────── */
.main-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  grid-template-areas: "sidebar form";
  gap: 0;
  align-items: stretch;
  padding: 24px 40px;
}
@media (max-width: 740px) {
  .main-layout { grid-template-columns: 1fr; grid-template-areas: "form" "sidebar"; padding: 16px; }
  .form-area { padding-left: 0; }
  .validation-sidebar { position: static; max-height: none; }
}
.form-area          { grid-area: form; min-width: 0; padding-left: 24px; }
.validation-sidebar { grid-area: sidebar; align-self: stretch; display: flex; flex-direction: column; }

/* ══════════════════════════════════════════════════════════════
   CLICKABLE STEPS NAV
══════════════════════════════════════════════════════════════ */
.steps-nav {
  display: flex; background: #fff; border-radius: 0;
  padding: 14px 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  margin-bottom: 20px; overflow-x: auto; gap: 0;
  border-bottom: 2px solid #edf0f7;
}
.step-nav-item {
  flex: 1; min-width: 70px; display: flex; flex-direction: column;
  align-items: center; position: relative; cursor: pointer;
  user-select: none; padding: 4px 2px; border-radius: 8px;
  transition: background 0.15s;
}
.step-nav-item:hover:not(.locked) { background: #f0f5ff; }
.step-nav-item.locked { cursor: not-allowed; }

.step-nav-item:not(:last-child)::after {
  content: ''; position: absolute; top: 18px; left: 55%;
  width: 90%; height: 2px; background: #dde2ef; z-index: 0;
}
.step-nav-item.complete:not(:last-child)::after { background: #0f9e6e; }
.step-nav-item.active:not(:last-child)::after   { background: #1a4db8; }

.step-nav-circle {
  width: 36px; height: 36px; border-radius: 50%;
  background: #edf0f7; color: #8891a8;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  position: relative; z-index: 1;
  transition: all 0.2s; border: 2px solid transparent;
}
.step-nav-item.active .step-nav-circle {
  background: #1a4db8; color: #fff; border-color: #1a4db8;
  box-shadow: 0 0 0 4px rgba(26,77,184,0.15);
}
.step-nav-item.complete .step-nav-circle   { background: #0f9e6e; color: #fff; border-color: #0f9e6e; }
.step-nav-item.has-errors .step-nav-circle { background: #fff8f8; color: #c0392b; border-color: #c0392b; }
.step-nav-item.locked .step-nav-circle          { background: #ffe8e8; color: #c0392b; border-color: #e8a0a0; }
.step-nav-item.results-indicative .step-nav-circle { background: #c0392b; color: #fff; border-color: #c0392b; }

.step-nav-label { font-size: 10.5px; font-weight: 500; color: #8891a8; margin-top: 5px; text-align: center; white-space: nowrap; }
.step-nav-item.active .step-nav-label           { color: #1a4db8; font-weight: 700; }
.step-nav-item.complete .step-nav-label         { color: #0f9e6e; font-weight: 600; }
.step-nav-item.has-errors .step-nav-label       { color: #c0392b; font-weight: 600; }
.step-nav-item.locked .step-nav-label           { color: #c0392b; }
.step-nav-item.results-indicative .step-nav-label { color: #c0392b; font-weight: 700; }

/* ── Cards ────────────────────────────────────────────────────── */
.card { background: #fff; border-radius: 12px; padding: 24px 28px; box-shadow: 0 1px 8px rgba(0,0,0,0.08); margin-bottom: 16px; }
.card-title    { font-size: 16px; font-weight: 700; color: #0d2b6b; margin-bottom: 4px; }
.card-subtitle { font-size: 13px; color: #6b7a99; margin-bottom: 20px; }

/* ── Form elements ────────────────────────────────────────────── */
.form-grid { display: grid; gap: 16px 20px; }
.form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.form-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 640px) { .form-grid.cols-2, .form-grid.cols-3 { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 12px; font-weight: 600; color: #3a4562; }
.form-group .hint { font-size: 11px; color: #8891a8; margin-top: 2px; }
.form-group.full  { grid-column: 1 / -1; }

input[type="text"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; padding: 9px 13px; border: 1.5px solid #dde2ef;
  border-radius: 8px; font-size: 14px; color: #1a2035; background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s; appearance: none;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: #1a4db8; box-shadow: 0 0 0 3px rgba(26,77,184,0.1);
}
input.prefilled      { background: #f0f5ff; border-color: #b5c9f5; color: #1a4db8; }
input.readonly-field { background: #f7f8fa; color: #6b7a99; cursor: not-allowed; }
input.req-empty, select.req-empty { border-color: #e8a0a0 !important; background: #fff8f8 !important; }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M6 8L0 0h12z' fill='%236b7a99'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px;
}

/* ── Lookup bar ───────────────────────────────────────────────── */
.lookup-bar { display: flex; gap: 10px; }
.lookup-bar input { flex: 1; font-size: 15px; padding: 12px 16px; }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  padding: 10px 22px; border: none; border-radius: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all 0.15s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary   { background: #1a4db8; color: #fff; }
.btn-primary:hover   { background: #0d3a9e; }
.btn-secondary { background: #f0f2f5; color: #3a4562; }
.btn-secondary:hover { background: #dde2ef; }
.btn-success   { background: #0f9e6e; color: #fff; }
.btn-success:hover   { background: #0b7a54; }
.btn-lg  { padding: 13px 30px; font-size: 15px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.step-footer {
  display: flex; gap: 12px; margin-top: 20px;
  padding-top: 16px; border-top: 1.5px solid #f0f2f5; align-items: center;
}
.step-footer .spacer { flex: 1; }

/* ── Banners ──────────────────────────────────────────────────── */
.info-banner {
  background: #eef4ff; border: 1.5px solid #b5c9f5; border-radius: 8px;
  padding: 11px 15px; font-size: 13px; color: #1a4db8; margin-bottom: 16px;
  display: flex; gap: 10px; align-items: flex-start;
}
.info-banner .icon { font-size: 15px; margin-top: 1px; flex-shrink: 0; }
.warn-banner {
  background: #fff8e6; border: 1.5px solid #f5d87b; border-radius: 8px;
  padding: 11px 15px; font-size: 13px; color: #7a5800; margin-bottom: 16px;
  display: flex; gap: 10px; align-items: flex-start;
}
.warn-banner .icon { font-size: 15px; flex-shrink: 0; }

/* ── Claim / Conviction rows ──────────────────────────────────── */
.claim-row, .conviction-row {
  border: 1.5px solid #dde2ef; border-radius: 8px;
  padding: 14px 16px; margin-bottom: 10px; background: #fafbfd;
}
.claim-row h4, .conviction-row h4 {
  font-size: 13px; font-weight: 700; color: #0d2b6b;
  margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.badge-fault     { background: #ffe8e8; color: #c0392b; }
.badge-nonfault  { background: #e8f5e9; color: #27ae60; }
.badge-firetheft { background: #fff3e0; color: #e67e22; }
.badge-unknown   { background: #f0f0f0; color: #666; }

.add-row-btn {
  border: 2px dashed #dde2ef; background: transparent; border-radius: 8px;
  padding: 11px; width: 100%; text-align: center; font-size: 13px;
  color: #8891a8; cursor: pointer; transition: all 0.15s; margin-top: 6px;
}
.add-row-btn:hover { border-color: #1a4db8; color: #1a4db8; background: #f0f5ff; }

/* ── Results ──────────────────────────────────────────────────── */
.result-hero { text-align: center; padding: 28px; border-radius: 12px; margin-bottom: 20px; }
.result-hero.accept  { background: linear-gradient(135deg,#e8f8f0,#d0f0e0); border: 2px solid #0f9e6e; }
.result-hero.refer   { background: linear-gradient(135deg,#fff8e6,#ffefc0); border: 2px solid #f5a623; }
.result-hero.decline { background: linear-gradient(135deg,#ffe8e8,#ffd0d0); border: 2px solid #c0392b; }

/* Indicative state — always red bg regardless of accept/refer/decline */
.result-hero.indicative-state {
  background: linear-gradient(135deg, #fff0f0, #ffd6d6) !important;
  border: 2px solid #c0392b !important;
}

.decision-badge {
  display: inline-block; padding: 7px 22px; border-radius: 50px;
  font-size: 20px; font-weight: 800; letter-spacing: 2px; margin-bottom: 14px;
}
.accept .decision-badge  { background: #0f9e6e; color: #fff; }
.refer  .decision-badge  { background: #f5a623; color: #fff; }
.decline .decision-badge { background: #c0392b; color: #fff; }

.premium-amount { font-size: 44px; font-weight: 800; color: #0d2b6b; line-height: 1; }
.premium-label  { font-size: 13px; color: #6b7a99; margin-top: 4px; }
.premium-breakdown { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 16px 0; }
.prem-item { background: #f7f8fa; border-radius: 8px; padding: 10px 12px; text-align: center; }
.prem-item .pi-label { font-size: 10px; color: #8891a8; font-weight: 600; text-transform: uppercase; }
.prem-item .pi-value { font-size: 16px; font-weight: 700; color: #0d2b6b; margin-top: 2px; }

/* ── Steps accordion header ───────────────────────────────────── */
.steps-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; gap: 12px;
}
.steps-header .section-title { margin-bottom: 0; flex: 1; }

.btn-expand-all {
  background: #f0f5ff; border: 1.5px solid #b5c9f5; border-radius: 6px;
  padding: 5px 13px; font-size: 12px; font-weight: 700; color: #1a4db8;
  cursor: pointer; white-space: nowrap; transition: all 0.15s; flex-shrink: 0;
}
.btn-expand-all:hover { background: #1a4db8; color: #fff; border-color: #1a4db8; }

/* ── Steps table ──────────────────────────────────────────────── */
.steps-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.steps-table th {
  background: #f0f2f5; padding: 9px 12px; text-align: left;
  font-weight: 700; color: #3a4562; border-bottom: 2px solid #dde2ef;
}

/* Clickable summary row */
.step-row { cursor: pointer; transition: background 0.12s; }
.step-row:hover td { background: #f0f5ff; }
.step-row td { padding: 11px 12px; border-bottom: 1px solid #f0f2f5; vertical-align: middle; }

/* Detail row — hidden by default, revealed on click */
.step-detail-row td {
  padding: 0; border-bottom: 1px solid #f0f2f5;
  background: #fafcff;
}
.step-detail-row.hidden { display: none; }

.step-detail-content {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px 12px 52px;
  border-left: 3px solid #1a4db8;
  background: #f5f8ff;
}
.step-detail-icon {
  font-size: 14px; color: #1a4db8; flex-shrink: 0; margin-top: 1px;
  width: 20px; height: 20px; background: #dde9ff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700;
}
.step-detail-text { font-size: 13px; color: #3a4562; line-height: 1.5; flex: 1; }
.step-detail-mult {
  font-size: 13px; font-weight: 800; color: #1a4db8;
  background: #dde9ff; border-radius: 6px; padding: 2px 10px;
  white-space: nowrap; align-self: center; flex-shrink: 0;
}

/* Chevron column */
.step-chevron-cell { text-align: center; width: 36px; }
.step-chevron {
  font-size: 10px; color: #8891a8; display: inline-block;
  transition: transform 0.2s; user-select: none;
}
.step-row-main { display: flex; align-items: center; gap: 8px; }

.step-num { width: 26px; height: 26px; background: #1a4db8; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.step-label   { font-weight: 700; color: #0d2b6b; }
.step-running { font-weight: 700; color: #0d2b6b; text-align: right; white-space: nowrap; }
.step-mult    { color: #1a4db8; font-weight: 600; text-align: center; }

.reasons-list { list-style: none; }
.reasons-list li { padding: 9px 13px 9px 36px; border-radius: 6px; margin-bottom: 5px; font-size: 13px; position: relative; }
.reasons-list li::before { content: ''; position: absolute; left: 11px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; top: 50%; transform: translateY(-50%); }
.reasons-list.decline li { background: #ffe8e8; color: #7a1a1a; }
.reasons-list.refer   li { background: #fff8e6; color: #7a5800; }

/* ── Spinner ──────────────────────────────────────────────────── */
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Utility ──────────────────────────────────────────────────── */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.divider { border: none; border-top: 1.5px solid #f0f2f5; margin: 16px 0; }
.section-title { font-size: 13px; font-weight: 700; color: #3a4562; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.section-title::after { content: ''; flex: 1; height: 1.5px; background: #f0f2f5; }
.step-panel        { display: none; }
.step-panel.active { display: block; }

/* ══════════════════════════════════════════════════════════════
   VALIDATION SIDEBAR
══════════════════════════════════════════════════════════════ */
.validation-sidebar {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  flex: 1;
}

.sidebar-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.sidebar-header {
  padding: 16px 18px;
  background: linear-gradient(135deg, #0d2b6b 0%, #1a4db8 100%);
  color: #fff; font-size: 15px; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
  letter-spacing: 0.2px;
  flex-shrink: 0;
}

#sidebar-body { flex: 1; display: flex; flex-direction: column; }

.sv-step { border-bottom: 1px solid #f0f2f5; transition: background 0.12s; }
.sv-step:last-child { border-bottom: none; }
.sv-step:not(.locked):not(.results-locked):hover { background: #fafbff; cursor: pointer; }
.sv-step.locked, .sv-step.results-locked { cursor: default; }

.sv-step-header { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }

.sv-num {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
  transition: all 0.15s; background: #edf0f7; color: #8891a8;
  border: 1.5px solid transparent;
}
.sv-step.complete .sv-num   { background: #0f9e6e; color: #fff; border-color: #0f9e6e; }
.sv-step.active .sv-num     { background: #1a4db8; color: #fff; border-color: #1a4db8; }
.sv-step.has-errors .sv-num { background: #fff; color: #c0392b; border-color: #c0392b; }
.sv-step.results-locked .sv-num      { background: #ffe8e8; color: #c0392b; border-color: #e8a0a0; }
.sv-step.results-indicative .sv-num  { background: #c0392b; color: #fff; border-color: #c0392b; }

.sv-step-meta { flex: 1; min-width: 0; }
.sv-step-name { font-size: 14px; font-weight: 700; color: #1a2035; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-step.complete .sv-step-name      { color: #0f9e6e; }
.sv-step.has-errors .sv-step-name    { color: #c0392b; }
.sv-step.results-locked .sv-step-name    { color: #c0392b; }
.sv-step.results-indicative .sv-step-name{ color: #c0392b; font-weight: 700; }
.sv-step.active .sv-step-name            { color: #1a4db8; }

.sv-step-sub { font-size: 12px; color: #8891a8; margin-top: 2px; }
.sv-step.complete .sv-step-sub      { color: #0f9e6e; }
.sv-step.has-errors .sv-step-sub    { color: #c0392b; font-weight: 600; }
.sv-step.results-locked .sv-step-sub    { color: #e8a0a0; }
.sv-step.results-indicative .sv-step-sub{ color: #c0392b; }

.sv-badge { font-size: 16px; flex-shrink: 0; line-height: 1; }

.sv-fields { list-style: none; padding: 0 16px 12px 58px; }
.sv-field  { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; }

.sv-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.sv-field.ok  .sv-dot { background: #0f9e6e; }
.sv-field.err .sv-dot { background: #c0392b; }

.sv-field-label { color: #8891a8; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-field.err .sv-field-label { color: #c0392b; font-weight: 600; }
.sv-field.ok  .sv-field-label { color: #3a4562; }

.sv-field-value { color: #1a2035; font-weight: 600; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; font-size: 12px; }
.sv-field.err .sv-field-value { color: #c0392b; }

.sv-locked-note { padding: 4px 16px 14px 58px; font-size: 12px; color: #c0392b; line-height: 1.5; }

.calc-readiness {
  padding: 14px 16px; font-size: 13px; display: flex; align-items: center; gap: 8px;
  border-top: 1.5px solid #f0f2f5; font-weight: 600;
  margin-top: auto;
}
.calc-readiness.ready     { color: #0f9e6e; background: #f0fbf6; }
.calc-readiness.not-ready { color: #c0392b; background: #fff8f8; }

/* ══════════════════════════════════════════════════════════════
   INDICATIVE / CONFIRMED PRICE
══════════════════════════════════════════════════════════════ */
.price-type-label {
  font-size: 11px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; padding: 5px 14px;
  border-radius: 20px; display: inline-block; margin-bottom: 10px;
}
.price-type-label.indicative { background: #ffe8e8; color: #c0392b; }
.price-type-label.confirmed  { background: #e8f8f0; color: #0f9e6e; }

.indicative-notice {
  display: flex; align-items: flex-start; gap: 12px;
  background: #fff8f0; border: 1.5px solid #f5c07a; border-radius: 10px;
  padding: 14px 18px; margin-bottom: 16px; font-size: 13px; color: #7a4400;
}
.indicative-notice strong { color: #c0392b; }
.indicative-notice .notice-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }

.confirmed-notice {
  display: flex; align-items: center; gap: 12px;
  background: #f0fbf6; border: 1.5px solid #7dd9b2; border-radius: 10px;
  padding: 14px 18px; margin-bottom: 16px; font-size: 13px; color: #0b7a54;
}
.confirmed-notice .notice-icon { font-size: 20px; flex-shrink: 0; }

/* ── Assumptions card ─────────────────────────────────────────── */
.assumptions-card {
  border: 2px solid #f5c07a !important;
  background: #fffcf5 !important;
  transition: border-color 0.3s, background 0.3s;
}
.assumptions-card .card-title { color: #7a4400; transition: color 0.3s; }

/* All 3 values confirmed → green card */
.assumptions-card.all-confirmed {
  border-color: #0f9e6e !important;
  background: #f0fbf6 !important;
}
.assumptions-card.all-confirmed .card-title { color: #0b7a54; }

.assumption-rows { margin-bottom: 20px; }

.assumption-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: center; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f5ead0;
}
.assumption-row:last-child { border-bottom: none; }

.assumption-label { font-size: 13px; font-weight: 600; color: #3a4562; }

.assumption-select {
  padding: 9px 13px; border: 1.5px solid #dde2ef; border-radius: 8px;
  font-size: 13px; color: #1a2035; background: #fff;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M6 8L0 0h12z' fill='%236b7a99'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px;
  transition: border-color 0.15s;
}
.assumption-select:focus { outline: none; border-color: #1a4db8; box-shadow: 0 0 0 3px rgba(26,77,184,0.1); }
.assumption-select.confirmed-select { border-color: #0f9e6e; background-color: #f0fbf6; }

.assumption-tag {
  padding: 5px 12px; border-radius: 20px;
  font-size: 11.5px; font-weight: 700; white-space: nowrap;
  transition: all 0.2s; min-width: 80px; text-align: center;
}
.assumption-tag.assumed   { background: #ffe8e8; color: #c0392b; }
.assumption-tag.confirmed { background: #e8f8f0; color: #0f9e6e; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 900px)
══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .main-layout {
    grid-template-columns: 1fr;
    grid-template-areas: "form" "sidebar";
    padding: 16px 20px;
  }
  .form-area { padding-left: 0; }
  .validation-sidebar { position: static; max-height: none; }
  .assumption-row { grid-template-columns: 120px 1fr auto; gap: 8px; }
  .premium-breakdown { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 640px)
══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  /* Header */
  .app-header {
    flex-wrap: wrap;
    padding: 14px 16px;
    gap: 10px;
  }
  .app-header h1 { font-size: 15px; }
  .app-header p { font-size: 11px; }
  .header-divider { display: none; }
  .header-text { flex-basis: 100%; order: 3; }
  .header-meta { margin-left: auto; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-abbr { font-size: 14px; }

  /* Lookup page */
  .lookup-page { min-height: 50vh; padding: 24px 12px 40px; }
  .lookup-page-card { padding: 32px 20px 28px; }
  .lookup-page-card h2 { font-size: 18px; }
  .lookup-page-card p { font-size: 13px; margin-bottom: 20px; }
  .lookup-page-card .lookup-bar { flex-direction: column; }
  .lookup-page-card .lookup-bar input { font-size: 15px; }
  .lookup-page-card .lookup-bar .btn { width: 100%; justify-content: center; }

  /* Steps nav */
  .steps-nav { padding: 10px 8px; gap: 0; }
  .step-nav-circle { width: 30px; height: 30px; font-size: 12px; }
  .step-nav-label { font-size: 9px; }
  .step-nav-item { min-width: 50px; }
  .step-nav-item:not(:last-child)::after { top: 15px; }

  /* Cards */
  .card { padding: 18px 16px; border-radius: 10px; }
  .card-title { font-size: 15px; }

  /* Form grids — single column */
  .form-grid.cols-2, .form-grid.cols-3 { grid-template-columns: 1fr; }

  /* Buttons */
  .btn { padding: 10px 16px; font-size: 13px; }
  .btn-lg { padding: 12px 20px; font-size: 14px; }

  /* Step footer */
  .step-footer { flex-wrap: wrap; }
  .step-footer .spacer { display: none; }
  .step-footer .btn { flex: 1; justify-content: center; min-width: 0; }

  /* Results */
  .premium-amount { font-size: 32px; }
  .result-hero { padding: 20px 16px; }
  .decision-badge { font-size: 16px; padding: 6px 16px; letter-spacing: 1px; }
  .premium-breakdown { grid-template-columns: 1fr 1fr; gap: 8px; }
  .prem-item .pi-value { font-size: 14px; }

  /* Steps table */
  .steps-table th, .step-row td { padding: 8px 8px; font-size: 12px; }
  .step-detail-content { padding: 10px 12px 10px 36px; }
  .step-num { width: 22px; height: 22px; font-size: 10px; }

  /* Assumptions */
  .assumption-row { grid-template-columns: 1fr; gap: 6px; }
  .assumption-label { font-size: 12px; }

  /* Banners */
  .indicative-notice, .confirmed-notice { padding: 12px 14px; font-size: 12px; }

  /* Claim / Conviction rows */
  .claim-row, .conviction-row { padding: 12px 12px; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤ 400px)
══════════════════════════════════════════════════════════════ */
@media (max-width: 400px) {
  .app-header { padding: 12px; gap: 8px; }
  .app-header h1 { font-size: 14px; }
  .header-env-badge { font-size: 10px; padding: 4px 10px; }
  .btn-header-new-quote { padding: 5px 12px; font-size: 11px; }
  .card { padding: 14px 12px; }
  .premium-amount { font-size: 28px; }
  .premium-breakdown { grid-template-columns: 1fr; }
  .steps-nav { padding: 8px 4px; }
  .step-nav-circle { width: 26px; height: 26px; font-size: 11px; }
  .step-nav-label { font-size: 8px; }
  .main-layout { padding: 12px; }
}
