:root {
  --blue: #194da8;
  --blue-dark: #0c2f70;
  --orange: #f36b21;
  --ink: #111827;
  --muted: #667085;
  --line: #d9dee8;
  --soft: #f4f7fb;
  --white: #fff;
  --success: #147d4f;
  --danger: #b42318;
  --radius: 24px;
  --shadow: 0 20px 60px rgba(13, 45, 100, .08);
}
* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body { margin: 0; max-width: 100%; overflow-x: hidden; color: var(--ink); background: var(--soft); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
main { min-width: 0; }
.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 96px; padding: 16px clamp(18px, 4vw, 64px); background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.brand { flex: 0 1 300px; min-width: 0; }
.brand img { width: min(285px, 48vw); max-height: 76px; object-fit: contain; object-position: left center; }
.main-nav { display: flex; align-items: center; gap: 20px; font-weight: 800; }
.main-nav a { text-decoration: none; white-space: nowrap; }
.nav-pill, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border: 0; border-radius: 999px; color: #fff; background: var(--blue); font-weight: 900; text-decoration: none; cursor: pointer; transition: transform .15s ease, opacity .15s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.button.secondary { color: var(--ink); background: #fff; border: 1px solid var(--line); }
.button.small { min-height: 40px; padding: 9px 15px; font-size: .9rem; }
.button.large { min-height: 58px; padding: 16px 28px; font-size: 1.05rem; }
.button.mini { min-height: 38px; padding: 8px 12px; font-size: .82rem; }
.menu-toggle { display: none; min-height: 48px; padding: 10px 18px; border: 0; border-radius: 999px; color: #fff; background: var(--blue); font-weight: 900; }
.page-hero { padding: clamp(46px, 8vw, 100px) clamp(20px, 7vw, 110px); color: #fff; background: linear-gradient(120deg, var(--blue-dark), var(--blue)); }
.page-hero h1 { max-width: 900px; margin: 8px 0 14px; font-size: clamp(2rem, 5vw, 4.2rem); line-height: 1.04; letter-spacing: -.04em; }
.page-hero p { max-width: 760px; margin: 0; font-size: clamp(1rem, 2vw, 1.25rem); }
.page-hero.compact { padding-block: 54px; }
.booking-hero { padding-block: clamp(36px, 6vw, 72px); }
.eyebrow { margin: 0 0 8px; color: var(--orange); font-size: .78rem; font-weight: 950; letter-spacing: .14em; text-transform: uppercase; }
.section { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 54px 0; min-width: 0; }
.section.narrow, .booking-section { width: min(920px, calc(100% - 28px)); }
.site-footer { display: flex; justify-content: space-between; gap: 32px; padding: 42px clamp(20px, 6vw, 90px); color: #fff; background: #090e18; }
.alert { margin-bottom: 18px; padding: 14px 18px; border-radius: 14px; }
.alert.danger { color: #7a271a; background: #fef3f2; border: 1px solid #fecdca; }
.alert.success { color: #05603a; background: #ecfdf3; border: 1px solid #abefc6; }
.success-box { padding: clamp(28px, 6vw, 60px); text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.success-box h2 { margin: 8px 0 12px; font-size: clamp(1.7rem, 5vw, 3rem); }
.success-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; color: #fff; background: var(--success); font-size: 2rem; font-weight: 950; }
.success-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* Smart booking wizard */
.wizard { min-width: 0; }
.wizard-progress { position: sticky; top: 96px; z-index: 20; margin-bottom: 22px; padding: 16px 18px; background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 30px rgba(13,45,100,.08); backdrop-filter: blur(14px); }
.progress-track { height: 8px; overflow: hidden; background: #e9edf4; border-radius: 99px; }
.progress-track span { display: block; width: 12.5%; height: 100%; background: linear-gradient(90deg, var(--blue), var(--orange)); border-radius: inherit; transition: width .25s ease; }
.progress-copy { display: flex; justify-content: space-between; gap: 16px; margin-top: 9px; font-size: .88rem; }
.progress-copy span { color: var(--muted); }
.wizard-step { display: none; padding: clamp(24px, 5vw, 44px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.wizard-step.active { display: block; animation: fade .2s ease; }
@keyframes fade { from { opacity: .4; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.step-heading { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 28px; }
.step-heading > span { display: grid; flex: 0 0 42px; place-items: center; width: 42px; height: 42px; color: #fff; background: var(--blue); border-radius: 50%; font-weight: 950; }
.step-heading h2 { margin: 0; font-size: clamp(1.55rem, 4vw, 2.25rem); line-height: 1.1; letter-spacing: -.025em; }
.step-heading p { margin: 7px 0 0; color: var(--muted); }
.situation-grid, .service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.situation-card, .service-card { min-width: 0; min-height: 190px; padding: 24px; text-align: left; color: var(--ink); background: #fff; border: 2px solid #e3e7ee; border-radius: 22px; cursor: pointer; transition: border .15s ease, background .15s ease, transform .15s ease; }
.situation-card:hover, .service-card:hover { transform: translateY(-2px); border-color: #aab8cf; }
.situation-card.selected, .service-card.selected { border-color: var(--orange); background: #fff8f2; box-shadow: 0 0 0 4px rgba(243,107,33,.08); }
.situation-card strong, .service-card strong { display: block; margin-bottom: 8px; font-size: 1.1rem; line-height: 1.25; }
.situation-card small, .service-card small { display: block; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.situation-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 24px; color: #fff; background: var(--blue); border-radius: 14px; font-size: 1.35rem; }
.service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-card { min-height: 130px; }
.form-grid, .grid { display: grid; gap: 18px; min-width: 0; }
.form-grid.two, .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid label, .control-panel label, .booking-form label { display: block; min-width: 0; color: #243047; font-weight: 850; }
.form-grid .full, .control-panel .wide, .grid .wide { grid-column: 1 / -1; }
input, select, textarea { display: block; width: 100%; min-width: 0; margin-top: 8px; padding: 14px 15px; color: var(--ink); background: #fff; border: 1px solid #cfd6e2; border-radius: 14px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(25,77,168,.12); }
textarea { resize: vertical; }
.native-date-wrap { display: flex; width: 100%; min-width: 0; margin-top: 8px; padding: 14px 15px; background: #fff; border: 1px solid #cfd6e2; border-radius: 14px; }
.native-date-wrap input { width: 100%; min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.conditional-block { margin-top: 24px; padding: 22px; background: #fff8f2; border: 1px solid #fed7aa; border-radius: 18px; }
.conditional-block[hidden], #scheduleFields[hidden] { display: none !important; }
.conditional-block h3 { margin-top: 0; }
.safety-note { margin: 16px 0 0; color: #7a2e0e; font-weight: 750; }
.timing-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.timing-cards label { position: relative; min-width: 0; cursor: pointer; }
.timing-cards input { position: absolute; opacity: 0; pointer-events: none; }
.timing-cards span { display: block; min-height: 118px; padding: 22px; background: #fff; border: 2px solid #e3e7ee; border-radius: 18px; }
.timing-cards strong, .timing-cards small { display: block; }
.timing-cards small { margin-top: 7px; color: var(--muted); }
.timing-cards input:checked + span { border-color: var(--orange); background: #fff8f2; box-shadow: 0 0 0 4px rgba(243,107,33,.08); }
.review-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; }
.review-card > div { display: grid; grid-template-columns: 160px minmax(0,1fr); gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.review-card > div:last-of-type { border-bottom: 0; }
.review-card span { color: var(--muted); }
.review-card strong { overflow-wrap: anywhere; }
.review-card details { padding: 15px 18px; border-top: 1px solid var(--line); }
.review-card summary { cursor: pointer; font-weight: 900; }
.review-card ul { margin: 12px 0 0; padding: 0; list-style: none; }
.review-card li { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px dashed var(--line); text-transform: capitalize; }
.payment-explainer { margin-top: 18px; padding: 20px; color: #17335e; background: #eef4ff; border: 1px solid #c7d7f6; border-radius: 18px; }
.payment-explainer p { margin-bottom: 0; }
.consent-row { display: flex; align-items: flex-start; gap: 12px; margin-top: 20px; font-weight: 650; }
.consent-row input { flex: 0 0 20px; width: 20px; height: 20px; margin: 3px 0 0; }
.wizard-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.wizard-actions #nextButton, .wizard-actions #submitButton { margin-left: auto; }

/* App dashboard */
.app-shell { display: grid; grid-template-columns: 280px minmax(0,1fr); min-height: 100vh; background: #eef2f7; }
.app-sidebar { position: sticky; top: 0; height: 100vh; min-width: 0; padding: 24px 18px; color: #fff; background: #0a1428; overflow-y: auto; }
.app-sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-logo img { width: 220px; max-height: 75px; object-fit: contain; object-position: left center; }
.app-menu-toggle { display: none; }
.app-sidebar-content { min-width: 0; }
.user-card { margin: 28px 0 16px; padding: 16px; background: rgba(255,255,255,.08); border-radius: 16px; }
.user-card span, .user-card strong { display: block; overflow-wrap: anywhere; }
.user-card span { color: #c7d2e5; }
.app-nav { display: grid; gap: 6px; }
.app-nav a { padding: 12px 14px; color: #e7edf8; text-decoration: none; border-radius: 12px; font-weight: 800; }
.app-nav a:hover { background: rgba(255,255,255,.08); }
.app-main { min-width: 0; padding: clamp(18px, 3vw, 42px); }
.app-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.app-topbar h1 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.8rem); }
.panel { min-width: 0; margin-bottom: 22px; padding: clamp(20px, 3vw, 30px); background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 12px 40px rgba(13,45,100,.06); }
.panel-head, .work-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.panel h2 { margin-top: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card, .mini-card { min-width: 0; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.stat-card span, .stat-card strong { display: block; }
.stat-card span { color: var(--muted); font-size: .9rem; }
.stat-card strong { margin-top: 8px; font-size: clamp(1.4rem, 3vw, 2rem); }
.work-card { min-width: 0; margin-top: 18px; padding: 20px; background: #fbfcfe; border: 1px solid var(--line); border-radius: 18px; }
.work-card h3 { margin: 5px 0; overflow-wrap: anywhere; }
.work-card p { overflow-wrap: anywhere; }
.code { color: var(--blue); font-weight: 950; }
.badge { display: inline-flex; flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; background: #e8eef8; font-size: .76rem; font-weight: 900; white-space: nowrap; }
.note { padding: 12px; background: #fff; border-left: 4px solid var(--orange); border-radius: 8px; }
.control-panel { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; min-width: 0; margin-top: 18px; }
.status-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.table-wrap { width: 100%; max-width: 100%; overflow-x: auto; margin-top: 20px; border: 1px solid var(--line); border-radius: 14px; -webkit-overflow-scrolling: touch; }
table { width: 100%; min-width: 700px; border-collapse: collapse; }
th, td { padding: 13px; text-align: left; border-bottom: 1px solid var(--line); }
.empty { color: var(--muted); }

@media (max-width: 1024px) {
  .main-nav { position: absolute; top: calc(100% + 1px); left: 0; right: 0; display: none; padding: 18px 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(0,0,0,.08); }
  .main-nav.open { display: grid; }
  .main-nav a { padding: 10px 0; }
  .menu-toggle { display: inline-flex; }
  .situation-grid { grid-template-columns: 1fr; }
  .situation-card { min-height: 140px; }
  .app-shell { display: block; }
  .app-sidebar { position: relative; height: auto; padding: 14px 18px; overflow: visible; }
  .app-menu-toggle { display: inline-flex; min-height: 42px; padding: 9px 14px; color: #fff; background: var(--blue); border: 0; border-radius: 999px; font-weight: 900; }
  .app-sidebar-content { display: none; }
  .app-sidebar-content.open { display: block; }
  .app-logo img { width: 180px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .control-panel { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 700px) {
  .site-header { min-height: 90px; padding: 12px 16px; }
  .brand img { width: min(225px, 56vw); max-height: 66px; }
  .menu-toggle { min-height: 46px; padding: 10px 17px; }
  .wizard-progress { top: 90px; }
  .page-hero { padding-inline: 20px; }
  .booking-hero h1 { font-size: 2rem; }
  .section, .section.narrow, .booking-section { width: min(100% - 20px, 920px); padding-block: 28px; }
  .wizard-step { padding: 24px 18px; border-radius: 20px; }
  .step-heading { gap: 11px; }
  .step-heading > span { flex-basis: 36px; width: 36px; height: 36px; }
  .step-heading h2 { font-size: 1.55rem; }
  .service-grid, .form-grid.two, .grid.two, .grid.three, .timing-cards, .control-panel { grid-template-columns: 1fr; }
  .service-card { min-height: 112px; }
  .timing-cards span { min-height: 92px; }
  .progress-copy { align-items: flex-start; flex-direction: column; gap: 2px; }
  .review-card > div { grid-template-columns: 1fr; gap: 3px; }
  .review-card li { align-items: flex-start; flex-direction: column; gap: 2px; }
  .wizard-actions { position: sticky; bottom: 8px; z-index: 15; padding: 10px; background: rgba(244,247,251,.94); border-radius: 18px; backdrop-filter: blur(12px); }
  .wizard-actions .button { min-width: 0; padding-inline: 16px; }
  .site-footer { flex-direction: column; }
  .app-main { padding: 16px 10px 30px; }
  .app-topbar { align-items: flex-start; flex-direction: column; }
  .panel { padding: 18px 14px; border-radius: 18px; }
  .panel-head, .work-card-head { flex-direction: column; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .work-card { padding: 16px 12px; }
  input, select, textarea { font-size: 16px; }
}

@media (max-width: 390px) {
  .brand img { width: 205px; }
  .menu-toggle { padding-inline: 14px; }
  .stat-grid { grid-template-columns: 1fr; }
  .step-heading h2 { font-size: 1.38rem; }
  .situation-card { padding: 20px; }
  .wizard-actions { gap: 8px; }
}
.hero { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(300px,.8fr); gap: clamp(24px,5vw,70px); align-items: center; padding: clamp(56px,9vw,110px) clamp(20px,7vw,110px); background: linear-gradient(135deg,#fff,#edf3ff); }
.hero h1 { margin: 8px 0 18px; max-width: 800px; font-size: clamp(2.3rem,6vw,5.3rem); line-height: .98; letter-spacing: -.055em; }
.hero-copy > p:not(.eyebrow) { max-width: 680px; color: var(--muted); font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-panel { padding: 28px; color: #fff; background: var(--blue-dark); border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-panel h2 { margin: 10px 0 16px; }
.status-dot { display: block; width: 12px; height: 12px; background: #57db8b; border-radius: 50%; box-shadow: 0 0 0 7px rgba(87,219,139,.15); }
.mini-list { display: grid; gap: 10px; }
.mini-list span { padding: 12px 14px; background: rgba(255,255,255,.09); border-radius: 12px; }
.section > h2 { max-width: 780px; font-size: clamp(1.8rem,4vw,3.2rem); line-height: 1.08; letter-spacing: -.035em; }
.section .service-card { display: block; min-height: 240px; }
.section article.service-card a { display: inline-block; margin-top: 14px; color: var(--blue); font-weight: 900; }
.dark-band { display: flex; align-items: center; justify-content: space-between; gap: 30px; width: 100%; max-width: none; padding-inline: clamp(20px,7vw,110px); color: #fff; background: #0a1428; }
.dark-band h2 { margin: 0; }
.button.light { color: var(--ink); background: #fff; }
.lookup-form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 14px; margin-bottom: 22px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.tracking-card { padding: clamp(20px,4vw,34px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.timeline { position: relative; margin: 28px 0; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 7px; bottom: 7px; width: 2px; background: var(--line); }
.timeline > div { position: relative; padding: 0 0 20px 14px; }
.timeline > div > span { position: absolute; left: -25px; top: 5px; width: 14px; height: 14px; background: var(--blue); border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px var(--blue); }
.timeline strong, .timeline small { display: block; }
.timeline small { color: var(--muted); }
.timeline p { margin: 4px 0 0; }
.payment-box, .review-box { margin-top: 18px; padding: 22px; background: #f8faff; border: 1px solid #ccd9f0; border-radius: 18px; }
.answers-panel { margin-top: 16px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.answers-panel summary { cursor: pointer; font-weight: 900; }
.answers-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.answers-grid div { min-width: 0; padding: 10px; background: var(--soft); border-radius: 10px; }
.answers-grid span, .answers-grid strong { display: block; overflow-wrap: anywhere; }
.answers-grid span { color: var(--muted); font-size: .78rem; }
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; }
  .hero-panel { max-width: 560px; }
  .dark-band { align-items: flex-start; flex-direction: column; }
  .lookup-form { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .hero { padding: 44px 20px; }
  .hero h1 { font-size: 2.65rem; }
  .answers-grid { grid-template-columns: 1fr; }
}
