:root {
  --brand: #c95449;
  --brand-dark: #a53f36;
  --brand-soft: #f8e7e4;
  --ink: #22201f;
  --muted: #6f6865;
  --line: #ddd6d2;
  --paper: #ffffff;
  --warm: #f3f0ee;
  --warm-deep: #e8e2df;
  --danger: #8d251e;
  --success: #23643e;
  --shadow: 0 22px 55px rgba(50, 35, 29, 0.10);
  --radius: 20px;
  --small-radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--warm);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-dark); }
button, input, select, textarea { font: inherit; }
.shell { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; background: #fff; padding: 12px 16px; border-radius: 8px; }
.skip-link:focus { top: 16px; }

.site-header { background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--ink); text-decoration: none; }
.brand img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.brand span { display: grid; line-height: 1.05; }
.brand strong { font-size: 1.35rem; letter-spacing: .03em; }
.brand small { margin-top: 6px; color: var(--brand); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.header-help { display: grid; text-align: right; }
.header-help span { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.header-help strong { font-size: 1rem; }

.emergency-strip { color: #fff; background: linear-gradient(130deg, #7f211b 0%, var(--brand) 65%, #d96b61 100%); }
.emergency-grid { min-height: 250px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; padding-block: 44px; }
.emergency-grid h1 { margin: 5px 0 10px; font-size: clamp(2rem, 5vw, 3.55rem); line-height: 1.02; max-width: 800px; letter-spacing: -.035em; }
.emergency-grid p { max-width: 790px; margin: 0; font-size: 1.06rem; }
.eyebrow { margin: 0; font-size: .77rem; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }
.eyebrow.accent { color: var(--brand); }
.emergency-actions { display: grid; gap: 12px; min-width: 180px; }

.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 999px; padding: 11px 22px; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible { outline: 3px solid rgba(255,255,255,.85); outline-offset: 3px; }
.button-light { background: #fff; color: var(--danger); }
.button-outline-light { border-color: rgba(255,255,255,.75); color: #fff; background: transparent; }
.button-primary { background: var(--brand); color: #fff; box-shadow: 0 9px 22px rgba(201, 84, 73, .24); }
.button-primary:hover { background: var(--brand-dark); }
.button-primary:disabled { opacity: .66; cursor: not-allowed; transform: none; }

.intro-section { padding: 72px 0 45px; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .7fr); gap: 48px; align-items: center; }
.intro-grid h2 { margin: 8px 0 14px; font-size: clamp(2.15rem, 4vw, 3.6rem); line-height: 1; letter-spacing: -.04em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 760px; }
.response-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 25px 28px; box-shadow: var(--shadow); }
.response-card h3 { margin: 0 0 12px; font-size: 1.15rem; }
.response-card ul { margin: 0; padding-left: 20px; color: var(--muted); }
.response-card li + li { margin-top: 7px; }

.form-section { padding: 25px 0 90px; }
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; align-items: start; }
.maintenance-form { display: grid; gap: 22px; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 38px); box-shadow: 0 12px 35px rgba(60, 42, 34, .06); }
.section-heading { display: flex; gap: 16px; align-items: center; margin-bottom: 28px; }
.section-heading h2 { margin: 3px 0 0; font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.025em; }
.step { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); font-weight: 900; }
.field-grid { display: grid; gap: 22px; }
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.full-width { grid-column: 1 / -1; }
.field { min-width: 0; }
.field label, fieldset legend { display: block; margin-bottom: 7px; font-size: .94rem; font-weight: 760; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; border: 1px solid #cfc7c3; border-radius: var(--small-radius); background: #fff; color: var(--ink); padding: 13px 14px; outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
select { min-height: 52px; }
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(201, 84, 73, .12); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
.field-hint { margin-top: 6px; color: var(--muted); font-size: .82rem; }
.radio-fieldset { margin: 0; border: 0; padding: 0; }
.choice { display: inline-flex !important; align-items: center; gap: 8px; min-height: 42px; margin: 0 9px 8px 0 !important; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; font-weight: 650 !important; background: #fff; }
.choice input, .check-row input { accent-color: var(--brand); width: 18px; height: 18px; }
.dynamic-guidance { border: 1px solid #e7b7b1; border-left: 5px solid var(--brand); border-radius: var(--small-radius); background: var(--brand-soft); padding: 16px 18px; }
.dynamic-guidance strong { display: block; margin-bottom: 5px; color: var(--danger); }
.dynamic-guidance p { margin: 0; }

.upload-box { position: relative; border: 2px dashed #cabfba; border-radius: 16px; background: #fbfaf9; padding: 12px; }
.upload-box > input { position: absolute; opacity: 0; pointer-events: none; }
.upload-box > label { min-height: 155px; display: grid; place-items: center; align-content: center; gap: 5px; text-align: center; cursor: pointer; border-radius: 12px; }
.upload-box > label:hover { background: var(--brand-soft); }
.upload-box > label span:last-child { color: var(--muted); font-size: .86rem; }
.upload-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 1.55rem; line-height: 1; }
.file-list { display: grid; gap: 8px; margin-top: 10px; }
.file-item { display: flex; justify-content: space-between; gap: 16px; padding: 10px 12px; border-radius: 9px; background: var(--warm); font-size: .86rem; }
.file-item span:last-child { color: var(--muted); white-space: nowrap; }

.final-card { display: grid; gap: 18px; }
.check-row { display: grid; grid-template-columns: 22px 1fr; gap: 11px; align-items: start; font-weight: 650; }
.check-row input { margin-top: 3px; }
.privacy-summary { border: 1px solid var(--line); border-radius: var(--small-radius); background: var(--warm); padding: 17px 18px; }
.privacy-summary p { margin: 6px 0 7px; color: var(--muted); font-size: .91rem; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.turnstile-wrap { min-height: 65px; }
.submit-button { width: 100%; min-height: 58px; font-size: 1rem; }
.submit-note { margin: -7px 0 0; color: var(--muted); font-size: .85rem; text-align: center; }
.button-loader { display: none; width: 19px; height: 19px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.is-loading .button-text { display: none; }
.is-loading .button-loader { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-alert { border-radius: 13px; padding: 16px 18px; font-weight: 700; }
.form-alert.error { color: var(--danger); border: 1px solid #e3aaa4; background: #fff0ee; }
.form-alert.success { color: var(--success); border: 1px solid #a7cfb8; background: #eff9f2; }

.side-panel { min-width: 0; }
.sticky-card { position: sticky; top: 22px; background: #272321; color: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.sticky-card h2 { margin: 8px 0 18px; line-height: 1.12; letter-spacing: -.025em; }
.sticky-card ol { margin: 0; padding-left: 22px; color: #ddd5d1; }
.sticky-card li + li { margin-top: 10px; }
.sticky-card hr { border: 0; border-top: 1px solid rgba(255,255,255,.18); margin: 23px 0; }
.sticky-card p:last-child { color: #eee8e5; }

.site-footer { background: #211e1d; color: #f5f1ef; }
.footer-inner { min-height: 150px; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-brand img { width: 56px; height: 56px; border-radius: 10px; }
.footer-brand div { display: grid; }
.footer-brand span { color: #bfb6b1; font-size: .84rem; }
.site-footer p { color: #bfb6b1; text-align: right; }

.privacy-page { background: #fff; }
.legal-content { max-width: 820px; padding-block: 70px 100px; }
.legal-content h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -.04em; margin: 8px 0 24px; }
.legal-content h2 { margin-top: 36px; }
.legal-content p { color: #514b48; }
.legal-content .button { margin-top: 26px; }

@media (max-width: 900px) {
  .form-layout { grid-template-columns: 1fr; }
  .side-panel { order: -1; }
  .sticky-card { position: static; }
  .intro-grid { grid-template-columns: 1fr; gap: 25px; }
  .emergency-grid { grid-template-columns: 1fr; gap: 24px; }
  .emergency-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
}

@media (max-width: 650px) {
  .shell { width: min(100% - 22px, 1180px); }
  .header-inner { min-height: 76px; }
  .brand img { width: 52px; height: 52px; }
  .brand strong { font-size: 1.15rem; }
  .header-help { display: none; }
  .emergency-grid { padding-block: 35px; }
  .emergency-grid h1 { font-size: 2.25rem; }
  .emergency-actions { grid-template-columns: 1fr; }
  .intro-section { padding-top: 50px; }
  .two-columns { grid-template-columns: 1fr; }
  .form-card { border-radius: 16px; padding: 22px 18px; }
  .section-heading { align-items: flex-start; }
  .choice { width: 100%; border-radius: 10px; }
  .footer-inner { align-items: flex-start; flex-direction: column; padding-block: 34px; }
  .site-footer p { text-align: left; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* Installable mobile app / PWA */
.install-app-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  border: 1px solid rgba(201, 84, 73, .38);
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font: inherit;
  font-size: .86rem;
  font-weight: 800;
  cursor: pointer;
}
.install-app-button:hover { background: #f4deda; }
.install-app-button[hidden] { display: none !important; }
.connection-status {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 11px 18px;
  background: #fff0cc;
  border-bottom: 1px solid #dfc16a;
  color: #5a4300;
  text-align: center;
  font-size: .9rem;
  font-weight: 800;
}
.install-dialog {
  width: min(92vw, 520px);
  border: 0;
  border-radius: 22px;
  padding: 0;
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(30, 22, 18, .32);
}
.install-dialog::backdrop { background: rgba(31, 26, 24, .65); }
.install-dialog-inner { position: relative; padding: 32px; background: #fff; }
.install-dialog img { width: 78px; height: 78px; border-radius: 18px; margin-bottom: 16px; }
.install-dialog h2 { margin: 6px 36px 18px 0; font-size: 1.6rem; line-height: 1.12; }
.dialog-close {
  position: absolute;
  top: 17px;
  right: 17px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--warm);
  color: var(--ink);
  font-size: 1.5rem;
  cursor: pointer;
}
.install-steps ol { margin: 0 0 18px; padding-left: 22px; }
.install-steps li + li { margin-top: 10px; }
.offline-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--warm); }
.offline-shell { width: min(100%, 620px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 6vw, 52px); box-shadow: var(--shadow); text-align: center; }
.offline-shell img { width: 96px; height: 96px; border-radius: 22px; margin-bottom: 20px; }
.offline-shell h1 { margin: 8px 0 16px; font-size: clamp(2rem, 6vw, 3.1rem); line-height: 1.04; }
.offline-shell p { color: var(--muted); }
.offline-shell .button { margin-top: 12px; }

@media (max-width: 650px) {
  .header-inner { gap: 10px; }
  .brand span { display: none; }
  .install-app-button { margin-left: auto; white-space: nowrap; }
  .install-dialog-inner { padding: 27px 22px; }
}

.footer-disclaimer { display: inline-block; max-width: 620px; margin-bottom: 8px; color: #d7cfca; font-size: .82rem; line-height: 1.45; }
