:root {
  color-scheme: light;
  --ink: #102d38;
  --muted: #60757d;
  --line: #d8e3e7;
  --soft: #f4f8f9;
  --cyan: #60cbe9;
  --cyan-dark: #1685a5;
  --green: #137a4d;
  --green-soft: #eaf8f1;
  --red: #b52b31;
  --red-soft: #fff3f3;
  --shadow: 0 18px 48px rgba(16, 45, 56, .10);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--soft); color: var(--ink); }
body { margin: 0; min-width: 320px; }
a { color: var(--ink); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }

.customer-header {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px max(24px, env(safe-area-inset-left)) 14px max(24px, env(safe-area-inset-right));
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { display: block; height: 30px; width: auto; }
.language-switch { display: flex; gap: 6px; }
.language-switch a {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  min-width: 48px;
  text-decoration: none;
}
.language-switch a.is-active { background: var(--ink); color: #fff; }
.language-label { color: var(--muted); font-size: .88rem; font-weight: 850; }

.customer-main, .legal-main { margin: 0 auto; max-width: 1180px; padding: 54px 28px 90px; }
.preview-banner {
  background: #fff8e7;
  border: 2px solid #d9b75b;
  border-radius: 16px;
  color: #604f20;
  display: flex;
  flex-direction: column;
  gap: 5px;
  line-height: 1.45;
  margin: 0 0 30px;
  padding: 18px 20px;
}
.preview-banner strong { color: var(--ink); font-size: 1.05rem; }
.hero { max-width: 850px; }
.eyebrow { color: var(--cyan-dark); font-size: .78rem; font-weight: 900; letter-spacing: .13em; margin: 0 0 12px; text-transform: uppercase; }
h1 { font-size: clamp(2.15rem, 5vw, 4.5rem); letter-spacing: -.045em; line-height: .98; margin: 0; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.55; margin: 24px 0; max-width: 760px; }
.service-promise {
  align-items: flex-start;
  background: var(--green-soft);
  border: 1px solid #b7e5ce;
  border-radius: 18px;
  display: flex;
  gap: 14px;
  line-height: 1.45;
  max-width: 760px;
  padding: 18px 20px;
}
.service-icon { align-items: center; background: var(--green); border-radius: 50%; color: #fff; display: inline-flex; flex: 0 0 28px; height: 28px; justify-content: center; }

.form-progress {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 44px 0 22px;
  padding: 0;
}
.form-progress li { align-items: center; background: #e9f0f2; border-radius: 14px; color: var(--muted); display: flex; font-size: .9rem; font-weight: 800; gap: 10px; min-height: 58px; padding: 10px 14px; }
.form-progress li span { align-items: center; border: 2px solid currentColor; border-radius: 50%; display: inline-flex; flex: 0 0 30px; height: 30px; justify-content: center; }
.form-progress li.is-current { background: #e8f8fd; color: var(--ink); outline: 2px solid var(--cyan); }

.form-alert { background: var(--red-soft); border: 2px solid #e1a2a5; border-radius: 16px; color: #7f1f24; display: flex; flex-direction: column; gap: 4px; margin: 20px 0; padding: 18px 20px; }
.complaint-form { display: grid; gap: 22px; }
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 5px 20px rgba(16, 45, 56, .04);
  margin: 0;
  min-width: 0;
  padding: 30px;
}
.form-card legend { align-items: center; display: flex; float: left; font-size: clamp(1.25rem, 2vw, 1.65rem); font-weight: 900; gap: 13px; margin: 0 0 8px; padding: 0; width: 100%; }
.form-card legend + * { clear: both; }
.step-number { align-items: center; background: var(--ink); border-radius: 50%; color: #fff; display: inline-flex; flex: 0 0 38px; height: 38px; justify-content: center; }
.section-help { clear: both; color: var(--muted); line-height: 1.5; margin: 6px 0 24px 51px; }
.form-grid { display: grid; gap: 20px; }
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid label, .complaint-item label { color: var(--ink); display: flex; flex-direction: column; font-size: .92rem; font-weight: 800; gap: 8px; }
.field-label { color: var(--ink); display: inline; line-height: 1.35; }
.required-marker { color: var(--red); display: inline; margin-left: 2px; }
.optional-note { color: var(--muted); font-size: .82rem; font-weight: 650; }
.wide { grid-column: 1 / -1; }
input, select, textarea {
  appearance: none;
  background: #fff;
  border: 1.5px solid #b9c9cf;
  border-radius: 12px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
  min-height: 52px;
  padding: 13px 14px;
  width: 100%;
}
textarea { min-height: 112px; resize: vertical; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-repeat: no-repeat; background-size: 5px 5px; padding-right: 42px; }
input:focus, select:focus, textarea:focus { border-color: var(--cyan-dark); box-shadow: 0 0 0 4px rgba(96, 203, 233, .22); outline: 0; }
.complaint-form.was-validated input:invalid,
.complaint-form.was-validated select:invalid,
.complaint-form.was-validated textarea:invalid { border-color: #d57a7e; background-color: #fffafa; }
.complaint-form input.is-touched:invalid,
.complaint-form select.is-touched:invalid,
.complaint-form textarea.is-touched:invalid { border-color: #d57a7e; background-color: #fffafa; }
.complaint-form.was-validated input:invalid:focus,
.complaint-form.was-validated select:invalid:focus,
.complaint-form.was-validated textarea:invalid:focus { box-shadow: 0 0 0 4px rgba(183, 58, 50, .16); }
.field-error { color: #8f242a; display: block; font-size: .82rem; font-weight: 700; line-height: 1.35; }
small { color: var(--muted); font-weight: 500; }
.privacy-note { background: var(--soft); border-left: 4px solid var(--cyan); border-radius: 4px 12px 12px 4px; color: var(--muted); line-height: 1.5; margin: 22px 0 0; padding: 14px 16px; }

.choice-grid { display: grid; gap: 10px; grid-template-columns: repeat(4, 1fr); margin-bottom: 34px; }
.choice-help { margin-bottom: 12px; }
.choice-grid label { cursor: pointer; }
.choice-grid input { height: 1px; opacity: 0; position: absolute; width: 1px; }
.choice-grid span { align-items: center; background: var(--soft); border: 2px solid transparent; border-radius: 13px; display: flex; font-weight: 800; justify-content: center; min-height: 58px; padding: 10px; text-align: center; }
.choice-grid input:checked + span { background: #e8f8fd; border-color: var(--cyan-dark); color: var(--ink); }
.choice-grid input:focus-visible + span { box-shadow: 0 0 0 4px rgba(96, 203, 233, .28); }

.items-heading { align-items: center; border-top: 1px solid var(--line); display: flex; gap: 18px; justify-content: space-between; padding-top: 28px; }
.items-heading h2 { font-size: 1.2rem; margin: 0; }
.items-heading p { color: var(--muted); margin: 6px 0 0; }
.complaint-items { display: grid; gap: 14px; margin: 18px 0 30px; }
.complaint-item { background: var(--soft); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.item-title { align-items: center; display: flex; justify-content: space-between; margin-bottom: 18px; }
.remove-item { background: transparent; border: 0; color: var(--red); cursor: pointer; font-weight: 800; min-height: 44px; padding: 8px 2px; }
.complaint-item:first-child .remove-item { visibility: hidden; }
.detail-grid { border-top: 1px solid var(--line); padding-top: 28px; }
.safety-question { align-items: center; background: #fff8e7; border: 1px solid #edd49a; border-radius: 16px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; margin: 26px 0; padding: 18px; }
.safety-question p { color: #776534; margin: 5px 0 0; }
.safety-advice { background: #fff; border: 2px solid #b73a32; border-radius: 13px; color: #7f1f24; flex: 1 0 100%; line-height: 1.45; padding: 14px 16px; }
.safety-advice p { color: #7f1f24; margin: 5px 0 0; }
.toggle input { height: 1px; opacity: 0; position: absolute; width: 1px; }
.toggle span { align-items: center; background: #fff; border: 2px solid #d8b762; border-radius: 999px; cursor: pointer; display: flex; font-weight: 900; min-height: 50px; padding: 10px 18px; white-space: nowrap; }
.toggle input:checked + span { background: #b73a32; border-color: #b73a32; color: #fff; }

.upload-zone { align-items: center; background: var(--soft); border: 2px dashed #9fb8c0; border-radius: 18px; cursor: pointer; display: flex; flex-direction: column; gap: 7px; justify-content: center; min-height: 190px; padding: 24px; text-align: center; }
.upload-zone:hover { background: #eaf8fc; border-color: var(--cyan-dark); }
.upload-zone input { height: 1px; opacity: 0; overflow: hidden; position: absolute; width: 1px; }
.upload-icon { align-items: center; background: var(--ink); border-radius: 50%; color: #fff; display: inline-flex; font-size: 1.6rem; height: 48px; justify-content: center; width: 48px; }
.file-list { display: grid; gap: 8px; list-style: none; margin: 14px 0 0; padding: 0; }
.file-list li { align-items: center; background: #eef6f8; border-radius: 10px; display: flex; gap: 10px; justify-content: space-between; min-height: 46px; padding: 9px 12px; }
.confirmations { border-top: 1px solid var(--line); display: grid; gap: 14px; margin-top: 26px; padding-top: 24px; }
.confirmations label { align-items: flex-start; cursor: pointer; display: grid; font-weight: 650; gap: 12px; grid-template-columns: 28px 1fr; line-height: 1.45; }
.confirmations input { appearance: auto; accent-color: var(--green); height: 24px; margin: 0; min-height: 24px; width: 24px; }
.submit-row { align-items: center; background: var(--ink); border-radius: 18px; color: #fff; display: flex; gap: 24px; justify-content: space-between; margin-top: 28px; padding: 22px; }
.submit-row p { color: #c9d7dc; line-height: 1.4; margin: 4px 0 0; max-width: 600px; }
.button { align-items: center; border: 0; border-radius: 12px; cursor: pointer; display: inline-flex; font-weight: 900; justify-content: center; min-height: 52px; padding: 12px 20px; text-decoration: none; }
.button.primary { background: var(--cyan); color: var(--ink); }
.button.secondary { background: #fff; border: 1.5px solid #aac0c7; color: var(--ink); }
.button:disabled { cursor: not-allowed; opacity: .65; }
.honeypot { height: 0; left: -10000px; overflow: hidden; position: absolute; top: auto; width: 0; }

.customer-footer { align-items: center; background: #fff; border-top: 1px solid var(--line); color: var(--muted); display: flex; flex-wrap: wrap; gap: 18px 34px; justify-content: center; min-height: 88px; padding: 22px; }
.customer-footer a { font-weight: 800; }

.success-page { min-height: 100vh; }
.success-main { display: grid; min-height: calc(100vh - 76px); padding: 40px 20px; place-items: center; }
.success-card { background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); max-width: 760px; padding: clamp(28px, 6vw, 64px); text-align: center; }
.success-card h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; }
.success-mark { align-items: center; background: var(--green); border-radius: 50%; color: #fff; display: inline-flex; font-size: 2rem; height: 70px; justify-content: center; margin-bottom: 20px; width: 70px; }
.claim-number { background: var(--soft); border: 2px solid var(--cyan); border-radius: 18px; display: flex; flex-direction: column; gap: 7px; margin: 30px 0; padding: 20px; }
.claim-number span { color: var(--muted); font-size: .8rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.claim-number strong { font-size: clamp(1.35rem, 4vw, 2.2rem); letter-spacing: .04em; }
.next-steps { text-align: left; }
.next-steps h2 { margin-bottom: 8px; }
.next-steps li { line-height: 1.5; margin: 10px 0; padding-left: 6px; }
.legal-note { background: #fff8e7; border-radius: 12px; color: #665520; font-size: .9rem; line-height: 1.45; margin: 24px 0; padding: 14px; }

.legal-hero { max-width: 900px; }
.version-badge { background: #e8f8fd; border: 1px solid #a8ddeb; border-radius: 999px; display: inline-flex; font-weight: 850; margin-top: 24px; padding: 10px 16px; }
.legal-review-banner { background: #fff8e7; border: 1px solid #e8ce87; border-radius: 16px; display: flex; flex-direction: column; gap: 5px; margin: 34px 0; padding: 20px; }
.document-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 40px; }
.document-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); display: flex; flex-direction: column; min-height: 245px; padding: 25px; text-decoration: none; }
.document-card h2 { font-size: 1.25rem; margin: 18px 0 10px; }
.document-card p { color: var(--muted); flex: 1; line-height: 1.55; }
.document-card-link { transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.document-card-link:hover { border-color: var(--cyan-dark); box-shadow: 0 12px 28px rgba(16, 45, 56, .10); transform: translateY(-2px); }
.document-card-link:focus-visible { border-color: var(--cyan-dark); box-shadow: 0 0 0 4px rgba(96, 203, 233, .28); outline: 0; }
.document-card-action { color: var(--cyan-dark); font-weight: 900; margin-top: 16px; }
.document-card-status { color: var(--muted); font-size: .88rem; font-weight: 800; margin-top: 16px; }
.document-icon { align-items: center; background: #e8f8fd; border-radius: 12px; display: inline-flex; font-size: 1.25rem; font-weight: 900; height: 44px; justify-content: center; width: 44px; }
.text-link { color: var(--cyan-dark); font-weight: 900; }
.download-panel { align-items: center; background: var(--ink); border-radius: 20px; color: #fff; display: flex; gap: 24px; justify-content: space-between; margin-top: 22px; padding: 24px; }
.download-panel p { color: #c9d7dc; line-height: 1.5; margin: 5px 0 0; }

@media (max-width: 900px) {
  .customer-main, .legal-main { padding: 38px 20px 72px; }
  .document-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-progress { grid-template-columns: repeat(2, 1fr); }
  .three-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choice-grid { grid-template-columns: repeat(2, 1fr); }
  .form-card { padding: 24px; }
  .submit-row, .download-panel { align-items: stretch; flex-direction: column; }
}

@media (max-width: 620px) {
  .customer-header { min-height: 66px; padding: 10px 14px; }
  .brand img { height: 25px; }
  .language-switch a { min-width: 42px; }
  .customer-main, .legal-main { padding: 30px 14px 58px; }
  h1 { font-size: 2.35rem; }
  .form-progress { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; padding: 2px; }
  .form-progress li { font-size: .82rem; min-height: 54px; padding: 9px 10px; }
  .form-card { border-radius: 18px; padding: 20px 16px; }
  .form-card legend { align-items: flex-start; }
  .section-help { margin-left: 0; }
  .two-columns, .three-columns, .document-grid { grid-template-columns: 1fr; }
  .wide { grid-column: auto; }
  .choice-grid { grid-template-columns: 1fr 1fr; }
  .items-heading, .safety-question { align-items: stretch; flex-direction: column; }
  .toggle span { justify-content: center; white-space: normal; }
  .button { width: 100%; }
  .submit-row { padding: 18px; }
  .customer-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
