:root {
  --navy: #071833;
  --navy-2: #0c274c;
  --blue: #123f71;
  --yellow: #ffbf13;
  --yellow-2: #ffd34f;
  --paper: #f5f7fb;
  --white: #ffffff;
  --text: #142238;
  --muted: #6f7d90;
  --line: #dfe5ec;
  --danger: #d83939;
  --green: #24b265;
  --shadow: 0 24px 70px rgba(7, 24, 51, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Cairo", system-ui, sans-serif; color: var(--text); background: var(--paper); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.page-shell { min-height: 100vh; overflow: hidden; }
.topbar { height: 86px; padding: 10px max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; background: var(--navy); color: white; border-bottom: 1px solid rgba(255,255,255,.09); }
.brand { display: flex; align-items: center; gap: 12px; color: white; text-decoration: none; }
.brand img { width: 66px; height: 66px; object-fit: contain; }
.brand span { display: flex; flex-direction: column; line-height: 1.3; }
.brand strong { font-size: 1.1rem; }
.brand small { color: #aebbd0; font-size: .74rem; }
.status { font-size: .8rem; color: #cbd5e4; display: flex; align-items: center; gap: 9px; }
.status span { width: 8px; height: 8px; border-radius: 50%; background: #4ee08b; box-shadow: 0 0 0 5px rgba(78,224,139,.13); }

.hero { min-height: 490px; background: radial-gradient(circle at 78% 15%, #174f85 0, transparent 29%), linear-gradient(118deg, #071833 0%, #0a2244 57%, #0d315c 100%); color: white; display: grid; grid-template-columns: 1fr 1fr; position: relative; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,191,19,.8), transparent); }
.hero-copy { width: min(590px, 100%); justify-self: end; padding: 72px 0 68px 34px; z-index: 2; }
.eyebrow, .step-label { display: inline-flex; align-items: center; gap: 8px; color: var(--yellow); font-size: .8rem; font-weight: 700; letter-spacing: .02em; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--yellow); }
.hero h1 { font-size: clamp(2.45rem, 4.5vw, 4.65rem); line-height: 1.24; margin: 17px 0 18px; letter-spacing: -.045em; }
.hero h1 em { color: var(--yellow); font-style: normal; }
.hero-copy > p { color: #b8c6d9; font-size: 1.03rem; line-height: 1.9; max-width: 500px; margin: 0; }
.service-pills { display: flex; gap: 9px; margin-top: 30px; flex-wrap: wrap; }
.service-pills span { border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); border-radius: 999px; padding: 8px 14px; font-size: .78rem; color: #e7edf6; backdrop-filter: blur(8px); }
.hero-visual { position: relative; min-height: 490px; overflow: hidden; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 65%, rgba(7,24,51,.95)), linear-gradient(0deg, rgba(7,24,51,.6), transparent 50%); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.95) contrast(1.03); }
.hero-badge { position: absolute; z-index: 2; bottom: 35px; left: 35px; background: var(--yellow); color: var(--navy); display: flex; align-items: center; gap: 10px; padding: 13px 17px; border-radius: 12px; box-shadow: 0 13px 40px rgba(0,0,0,.22); transform: rotate(-2deg); }
.hero-badge strong { font-size: 2rem; line-height: 1; }
.hero-badge span { font-size: .7rem; font-weight: 800; line-height: 1.35; }

.form-wrap { width: min(1120px, calc(100% - 32px)); margin: -36px auto 70px; background: white; border-radius: 22px; box-shadow: var(--shadow); position: relative; z-index: 3; overflow: hidden; }
.form-heading { padding: 27px 42px; display: flex; justify-content: space-between; align-items: end; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, #fff, #fbfcff); }
.form-heading h2 { margin: 3px 0 0; font-size: 1.65rem; }
.form-heading > p { color: var(--muted); font-size: .75rem; margin: 0; }
form { padding: 36px 42px 0; }
.form-section { display: grid; grid-template-columns: 230px 1fr; gap: 38px; }
.section-title { display: flex; gap: 13px; align-items: flex-start; }
.section-number { font-size: .68rem; font-weight: 800; color: var(--navy); background: var(--yellow); min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; }
.section-title h3 { margin: 0 0 3px; font-size: 1rem; }
.section-title p { margin: 0; color: var(--muted); font-size: .7rem; line-height: 1.65; }
.form-section.single .field { max-width: 410px; }
.fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field.full { grid-column: 1 / -1; }
.field label, fieldset legend { display: block; font-size: .78rem; font-weight: 700; margin-bottom: 8px; }
.field label b, fieldset legend b { color: var(--yellow); }
.optional { color: var(--muted); font-size: .62rem; font-weight: 600; margin-inline-start: 5px; }
.input-wrap { height: 52px; border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: center; background: #fcfdff; transition: .2s ease; overflow: hidden; }
.input-wrap:focus-within { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,191,19,.14); background: white; }
.input-wrap > span { width: 48px; text-align: center; color: #8a96a7; font-size: 1rem; }
.input-wrap input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; color: var(--text); padding: 0 0 0 13px; font-size: .82rem; }
.input-wrap input::placeholder { color: #a7b0bd; }
.textarea-wrap { height: auto; min-height: 112px; align-items: flex-start; padding-top: 13px; }
.textarea-wrap > span { padding-top: 3px; }
.textarea-wrap textarea { border: 0; outline: 0; resize: vertical; background: transparent; flex: 1; min-height: 84px; color: var(--text); padding: 0 0 10px 13px; font-size: .82rem; line-height: 1.8; }
.textarea-wrap textarea::placeholder { color: #a7b0bd; }
.field-hint { display: block; color: var(--muted); font-size: .62rem; margin-top: 5px; }
.input-wrap.ltr { direction: ltr; }
.input-wrap.ltr input { direction: ltr; text-align: left; }
.error { min-height: 18px; display: block; color: var(--danger); font-size: .65rem; margin-top: 4px; }
.field.invalid .input-wrap, fieldset.invalid .transport-options { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(216,57,57,.08); }
.divider { height: 1px; background: var(--line); margin: 34px 0; }
fieldset { padding: 0; margin: 0; border: 0; }
.transport-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; border: 1px solid transparent; border-radius: 12px; }
.transport-options label { margin: 0; cursor: pointer; }
.transport-options input { position: absolute; opacity: 0; pointer-events: none; }
.transport-options label > span { min-height: 92px; border: 1px solid var(--line); border-radius: 11px; display: grid; grid-template-columns: 36px 1fr; grid-template-rows: 1fr 1fr; align-items: end; column-gap: 9px; padding: 15px; background: #fcfdff; transition: .2s; }
.transport-options i { grid-row: 1 / 3; align-self: center; font-style: normal; font-size: 1.55rem; filter: grayscale(1); }
.transport-options strong { align-self: end; font-size: .85rem; }
.transport-options small { align-self: start; color: var(--muted); font-size: .65rem; }
.transport-options input:checked + span { border-color: var(--yellow); background: #fffaf0; box-shadow: 0 0 0 3px rgba(255,191,19,.12); }
.transport-options input:checked + span i { filter: none; }
.transport-options input:focus-visible + span { outline: 3px solid rgba(18,63,113,.28); }

.records-strip { margin-top: 38px; padding: 18px 20px; border: 1px solid #d9e3ef; border-radius: 12px; background: #f7faff; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.records-copy { display: flex; align-items: center; gap: 13px; }
.records-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--navy); color: var(--yellow); font-size: 1.15rem; }
.records-copy div { display: flex; flex-direction: column; }
.records-copy strong { font-size: .8rem; }
.records-copy small { color: var(--muted); font-size: .64rem; line-height: 1.6; }
.records-actions { display: flex; align-items: center; gap: 13px; }
.records-actions > span { color: var(--muted); font-size: .68rem; white-space: nowrap; }
#exportRecords { border: 1px solid var(--navy); border-radius: 8px; background: white; color: var(--navy); padding: 9px 14px; font-size: .7rem; font-weight: 800; transition: .2s; }
#exportRecords:not(:disabled):hover { background: var(--navy); color: white; }
#exportRecords:disabled { opacity: .45; cursor: not-allowed; }

.submit-area { margin: 40px -42px 0; padding: 25px 42px; background: var(--navy); display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.privacy-note { display: flex; align-items: center; gap: 12px; color: white; }
.privacy-note > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--yellow); }
.privacy-note p { margin: 0; font-size: .72rem; line-height: 1.5; }
.privacy-note small { color: #9faec2; }
#submitButton { border: 0; min-width: 320px; border-radius: 11px; padding: 11px 17px; background: linear-gradient(135deg, var(--yellow), var(--yellow-2)); color: var(--navy); display: grid; grid-template-columns: 42px 1fr 25px; align-items: center; gap: 8px; box-shadow: 0 12px 28px rgba(255,191,19,.2); transition: transform .2s, box-shadow .2s; }
#submitButton:hover { transform: translateY(-2px); box-shadow: 0 17px 32px rgba(255,191,19,.28); }
#submitButton:active { transform: translateY(0); }
#submitButton .wa-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: white; font-size: 1.4rem; }
#submitButton > span:nth-child(2) { display: flex; flex-direction: column; align-items: start; font-weight: 800; font-size: .9rem; }
#submitButton small { font-size: .6rem; opacity: .65; font-weight: 600; }
#submitButton b { font-size: 1.2rem; }

footer { width: min(1120px, calc(100% - 32px)); margin: 0 auto 34px; display: flex; align-items: center; gap: 12px; color: var(--navy); }
footer img { width: 54px; height: 54px; object-fit: contain; }
footer p { font-size: .78rem; font-weight: 800; line-height: 1.45; margin: 0; }
footer small { color: var(--muted); font-weight: 500; }
footer > span { margin-inline-start: auto; color: var(--muted); font-size: .72rem; }
.toast { position: fixed; left: 24px; bottom: 24px; z-index: 10; display: flex; align-items: center; gap: 12px; padding: 14px 18px; min-width: 285px; background: white; color: var(--text); border-right: 4px solid var(--green); border-radius: 10px; box-shadow: 0 18px 50px rgba(7,24,51,.2); transform: translateY(140%); opacity: 0; transition: .35s ease; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.warning { border-right-color: var(--yellow); }
.toast.warning > span { background: #fff6d9; color: #9b6d00; }
.toast > span { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 50%; background: #e6f8ee; color: var(--green); font-weight: 800; }
.toast div { display: flex; flex-direction: column; }
.toast strong { font-size: .78rem; }
.toast small { color: var(--muted); font-size: .65rem; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1.1fr .9fr; min-height: 440px; }
  .hero-copy { padding-right: 28px; padding-top: 58px; }
  .hero-visual { min-height: 440px; }
  .form-section { grid-template-columns: 1fr; gap: 24px; }
  .section-title p { max-width: 350px; }
}

@media (max-width: 680px) {
  .topbar { height: 72px; padding-inline: 17px; }
  .brand img { width: 52px; height: 52px; }
  .brand strong { font-size: .95rem; }
  .status { font-size: 0; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding: 48px 22px 40px; }
  .hero h1 { font-size: clamp(2.1rem, 11vw, 3.25rem); }
  .hero-visual { min-height: 290px; }
  .hero-visual::after { background: linear-gradient(0deg, rgba(7,24,51,.35), transparent 55%); }
  .hero-badge { left: 20px; bottom: 18px; }
  .form-wrap { margin-top: -20px; width: calc(100% - 20px); border-radius: 16px; }
  .form-heading { padding: 23px 20px; align-items: start; }
  .form-heading h2 { font-size: 1.3rem; }
  .form-heading > p { display: none; }
  form { padding: 28px 20px 0; }
  .fields-grid { grid-template-columns: 1fr; gap: 15px; }
  .field.full { grid-column: auto; }
  .transport-options { grid-template-columns: 1fr; }
  .transport-options label > span { min-height: 68px; grid-template-columns: 40px 1fr; padding: 10px 14px; }
  .divider { margin: 26px 0; }
  .records-strip { margin-top: 28px; padding: 16px; align-items: stretch; flex-direction: column; }
  .records-actions { justify-content: space-between; }
  .submit-area { margin-inline: -20px; padding: 22px 20px; flex-direction: column; align-items: stretch; }
  #submitButton { min-width: 0; width: 100%; }
  .privacy-note { justify-content: center; }
  footer { margin-bottom: 25px; }
  footer > span { display: none; }
  .toast { left: 12px; right: 12px; bottom: 12px; min-width: 0; }
}

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