:root {
  --cream: #f8f2e9;
  --paper: #fffdf9;
  --ink: #20262d;
  --muted: #747980;
  --line: #dcd8d2;
  --accent: #ef945f;
  --accent-dark: #c9683d;
  --soft-accent: #fff0e6;
  --danger: #a33939;
  --shadow: 0 22px 70px rgba(71, 55, 43, .16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: #fbf8f3; color: var(--ink); }
button, input, select, textarea { font: inherit; }
a { color: var(--accent-dark); text-underline-offset: 3px; }

.page-shell { position: relative; width: 100%; min-height: 100vh; display: grid; grid-template-columns: minmax(480px, 55%) minmax(560px, 45%); background: linear-gradient(90deg, #fffaf4 0%, #f5ede3 100%); overflow: hidden; }
.page-shell::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 72%; background-image: linear-gradient(90deg, rgba(255,252,247,.97) 0%, rgba(255,252,247,.68) 29%, rgba(255,252,247,.02) 58%, rgba(255,252,247,.12) 100%), url('../images/mena-voc-hero.png'); background-position: center; background-size: cover; }
.page-shell::after { content: ""; position: absolute; right: -80px; bottom: -180px; width: 420px; height: 420px; border: 1px solid rgba(229,126,72,.65); border-radius: 50%; pointer-events: none; }
.hero { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 140px clamp(48px, 8vw, 128px) 180px; }
.hero::before { content: ""; position: absolute; left: -120px; bottom: 12%; width: 520px; height: 170px; border-top: 1px solid rgba(229,126,72,.7); border-radius: 50%; transform: rotate(10deg); }
.brand-mark { position: absolute; top: 46px; left: clamp(48px, 8vw, 128px); display: flex; align-items: center; gap: 10px; color: #ee925f; }
.brand-logo { display: block; width: 200px; height: auto; transform: scale(1.35); transform-origin: top center; }
.eyebrow { font-size: .72rem; font-weight: 750; letter-spacing: .28em; color: #737980; }
.hero h1 { margin: 22px 0 16px; max-width: 540px; font: 650 clamp(4.3rem, 6vw, 7.3rem)/.82 Inter, ui-sans-serif, sans-serif; letter-spacing: -.075em; }
.hero h1 em { color: #f09a68; font-weight: 460; }
.hero-copy { max-width: 410px; margin: 0; color: #31373d; font-size: clamp(1rem, 1.25vw, 1.2rem); line-height: 1.5; }
.hero-detail { width: 48px; height: 2px; margin: 4px 0 22px; background: var(--accent); }
.hero-promises { position: absolute; left: clamp(48px, 8vw, 128px); right: 0; bottom: 58px; display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); color: #37322e; font-size: .82rem; font-weight: 650; text-align: center; line-height: 1.4; }
.hero-promises span { padding: 0 26px; border-right: 1px solid rgba(61,51,43,.2); }
.hero-promises span:last-child { border-right: 0; }

.form-panel { position: relative; z-index: 2; align-self: center; width: calc(100% - 72px); max-width: 680px; margin: 38px 36px 38px 0; padding: clamp(28px, 3.2vw, 42px); border: 1px solid rgba(219,210,201,.75); border-radius: 22px; background: rgba(255,253,249,.94); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.form-heading { margin-bottom: 22px; }
.form-heading h2 { margin: 0 0 6px; font-size: clamp(1.55rem, 2.2vw, 2.1rem); line-height: 1.1; letter-spacing: -.035em; }
.form-heading p, .form-note { margin: 0; color: var(--muted); }
.field-grid { display: grid; gap: 16px; }
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { margin-bottom: 14px; }
.field label, fieldset legend { display: block; margin-bottom: 7px; font-size: .86rem; font-weight: 720; }
.field label span, .privacy-row b, .message-types legend span { color: var(--accent-dark); }
.field label small { color: var(--muted); font-size: 1em; font-weight: 500; }
.label-row { display: flex; justify-content: space-between; gap: 20px; }
.counter { color: var(--muted); font-size: .8rem; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.75); color: var(--ink); padding: 12px 14px; outline: none; transition: border-color .18s, box-shadow .18s; }
select, input { min-height: 44px; }
textarea { resize: vertical; min-height: 104px; line-height: 1.45; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217,121,80,.13); }
.field-error { min-height: 0; margin: 4px 0 0; color: var(--danger); font-size: .76rem; }
.field-error:empty { display: none; }
.message-types, .rating-field { border: 0; padding: 0; }
.message-types { margin: 0 0 14px; }
.type-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.type-card { position: relative; min-width: 0; cursor: pointer; }
.type-card input { position: absolute; opacity: 0; pointer-events: none; }
.type-card span { min-height: 74px; padding: 10px 8px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.65); text-align: center; font-size: .8rem; line-height: 1.15; transition: border-color .18s, background .18s, box-shadow .18s; }
.type-card input:checked + span { border-color: #f08b50; background: #fff3ea; box-shadow: 0 0 0 1px #f08b50; }
.type-card input:focus-visible + span { outline: 3px solid rgba(217,121,80,.25); outline-offset: 2px; }
.rating-field { margin: 0 0 16px; }
.rating-field legend small { color: var(--muted); font-size: 1em; font-weight: 500; }
.stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.stars input { position: absolute; opacity: 0; pointer-events: none; }
.stars label { padding: 0 4px; color: #cfc6bc; font-size: 1.75rem; cursor: pointer; transition: color .15s, transform .15s; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: var(--accent); }
.stars label:hover { transform: translateY(-2px); }
.check-row { display: flex; align-items: flex-start; gap: 9px; min-height: 32px; margin-top: 2px; color: #514a45; font-size: .83rem; line-height: 1.35; cursor: pointer; }
.check-row input { width: 18px; height: 18px; min-height: 18px; margin: 1px 0 0; accent-color: var(--accent-dark); flex: 0 0 auto; }
.privacy-row { margin-top: 6px; }
.submit-button, .secondary-button { min-height: 50px; border: 1px solid var(--ink); padding: 14px 21px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; cursor: pointer; text-decoration: none; font-weight: 720; transition: transform .18s, background .18s; }
.submit-button { width: 100%; margin-top: 16px; border-color: transparent; border-radius: 10px; background: linear-gradient(90deg, #ffa668, #f6b179); color: #20262d; }
.submit-button:hover { background: linear-gradient(90deg, #f49758, #efa064); transform: translateY(-1px); }
.submit-button:disabled { cursor: wait; opacity: .65; transform: none; }
.secondary-button { background: transparent; color: var(--ink); }
.secondary-button:hover { background: var(--cream); }
.form-note { display: none; text-align: center; font-size: .77rem; }
.alert { margin: 0 0 18px; border-left: 3px solid var(--accent); background: var(--soft-accent); padding: 12px 14px; line-height: 1.45; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
footer { display: none; }

.confirmation-page, .legal-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 20% 20%, #fffaf4, var(--cream) 62%); }
.confirmation-card, .legal-card { width: min(680px, 100%); padding: clamp(34px, 7vw, 72px); background: var(--paper); box-shadow: var(--shadow); text-align: center; }
.confirmation-card h1, .legal-card h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -.045em; }
.confirmation-icon { width: 64px; height: 64px; display: grid; place-items: center; margin: 26px auto; border-radius: 50%; background: var(--soft-accent); color: var(--accent-dark); font-size: 1.7rem; }
.folio { margin: 22px auto; padding: 16px; background: #282522; color: #fff; font: 700 clamp(1.25rem, 4vw, 1.85rem)/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .055em; }
.confirmation-actions { display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px; margin-top: 34px; }
.confirmation-actions .submit-button { margin: 0; }
.copy-status { min-height: 1.4em; color: var(--accent-dark); }
.legal-card { text-align: left; }
.legal-card h1 { margin-bottom: 34px; }
.legal-card p { color: #514a45; line-height: 1.75; }

@media (max-width: 1100px) {
  .page-shell { grid-template-columns: minmax(420px, 50%) minmax(540px, 50%); }
  .hero { padding-left: 52px; }
  .brand-mark, .hero-promises { left: 52px; }
  .form-panel { width: calc(100% - 36px); margin-right: 20px; }
}

@media (max-width: 900px) {
  .page-shell { display: block; overflow: hidden; }
  .page-shell::before { width: 100%; height: 620px; background-image: linear-gradient(90deg, rgba(255,252,247,.92), rgba(255,252,247,.15)), url('../images/mena-voc-hero.png'); }
  .hero { min-height: 620px; }
  .hero h1 { font-size: clamp(4.4rem, 13vw, 8rem); }
  .hero-promises { right: 7%; }
  .form-panel { width: calc(100% - 64px); max-width: 780px; margin: -70px auto 48px; }
}

@media (max-width: 767px) {
  .hero { min-height: 590px; padding: 160px 26px 150px; background: linear-gradient(90deg, rgba(255,252,247,.97), rgba(255,252,247,.25)); }
  .brand-mark { left: 26px; top: 34px; }
  .brand-logo { width: 160px; }
  .hero h1 { font-size: clamp(4rem, 22vw, 6.4rem); }
  .hero-copy { max-width: 330px; }
  .hero-promises { left: 18px; right: 18px; bottom: 42px; grid-template-columns: repeat(3, 1fr); font-size: .68rem; }
  .hero-promises span { padding: 0 7px; }
  .form-panel { width: calc(100% - 24px); margin: -24px auto 24px; padding: 26px 18px 30px; border-radius: 16px; }
  .type-options { grid-template-columns: repeat(2, 1fr); }
  .two-columns, .confirmation-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

