/* ============================================================
   Landing — franchise questionnaire
   ============================================================ */

.page-loader {
  position: fixed; inset: 0; background: #fff;
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; transition: opacity 0.5s ease, visibility 0s 0.5s;
}
.page-loader img { width: 120px; height: auto; }
.page-loader.hidden { opacity: 0; visibility: hidden; }

/* ============================================================
   Entrance animations (animate.css-style)
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translate3d(0, 24px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translate3d(0, -20px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translate3d(-30px, 0, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translate3d(30px, 0, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes zoomIn {
  from { opacity: 0; transform: scale3d(0.92, 0.92, 0.92); }
  to   { opacity: 1; transform: scale3d(1, 1, 1); }
}
@keyframes bounceIn {
  0%   { opacity: 0; transform: scale3d(0.3, 0.3, 0.3); }
  20%  { transform: scale3d(1.1, 1.1, 1.1); }
  40%  { transform: scale3d(0.9, 0.9, 0.9); }
  60%  { opacity: 1; transform: scale3d(1.03, 1.03, 1.03); }
  80%  { transform: scale3d(0.97, 0.97, 0.97); }
  100% { opacity: 1; transform: scale3d(1, 1, 1); }
}
@keyframes pulseSoft {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

.animated { animation-duration: 0.9s; animation-fill-mode: both; animation-timing-function: var(--ease); }
.a-fade-up    { animation-name: fadeInUp; }
.a-fade-down  { animation-name: fadeInDown; }
.a-fade-left  { animation-name: fadeInLeft; }
.a-fade-right { animation-name: fadeInRight; }
.a-zoom       { animation-name: zoomIn; }
.a-bounce     { animation-name: bounceIn; }
.a-delay-1    { animation-delay: 0.10s; }
.a-delay-2    { animation-delay: 0.22s; }
.a-delay-3    { animation-delay: 0.34s; }
.a-delay-4    { animation-delay: 0.46s; }
.a-delay-5    { animation-delay: 0.58s; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .animated, .reveal { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* ---------- Scroll-down indicator ---------- */
.scroll-down {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--mc-red);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.85;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.scroll-down:hover { opacity: 1; }
.scroll-down .arrow {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--mc-red-lighter);
  display: grid; place-items: center;
  box-shadow: 0 8px 20px -6px rgba(217,23,27,0.35);
  animation: scrollDown 2s ease-in-out infinite;
}
.scroll-down .arrow svg { width: 14px; height: 14px; color: var(--mc-red); }
@keyframes scrollDown {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}
@media (max-width: 720px) {
  .scroll-down { bottom: 14px; font-size: 10px; }
  .scroll-down .arrow { width: 28px; height: 28px; }
}

/* ---------- Language toggle helpers ---------- */
html[lang="fr"] [data-lang="ar"] { display: none !important; }
html[lang="ar"] [data-lang="fr"] { display: none !important; }
/* Toggle buttons must always stay visible, even though they use data-lang too */
.lang-toggle button[data-lang] { display: inline-flex !important; }

/* Hero copy: auto-fade between FR and AR (both render, only one visible at a time) */
.hero-copy { display: grid; }
html[lang] .hero-copy > div[data-lang] {
  display: block !important;
  grid-area: 1 / 1 / auto / auto;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}
html[lang] .hero-copy > div[data-lang].is-visible {
  opacity: 1;
  pointer-events: auto;
}
.hero-copy > div[data-lang="ar"] {
  direction: rtl;
  text-align: right;
}
.hero-copy > div[data-lang="ar"] .hero-meta {
  /* direction: rtl on the parent already right-aligns items; force explicit right alignment too */
  justify-content: flex-start;
  direction: rtl;
}

/* Form card: always show BOTH languages side-by-side (override the toggle) */
html[lang] .form-card [data-lang="fr"],
html[lang] .form-card [data-lang="ar"],
html[lang] .form-success [data-lang="fr"],
html[lang] .form-success [data-lang="ar"] { display: inline !important; }

/* Form heading + intro paragraph + field labels — FR left, AR right side-by-side grid */
.form-card header h2,
.form-card header > p,
.form-card .field-label {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: baseline;
}
.form-card header h2 [data-lang="ar"],
.form-card header > p [data-lang="ar"],
.form-card .field-label [data-lang="ar"] {
  direction: rtl;
  text-align: right;
  font-family: var(--font-arabic);
}
/* Form bilingual layout: FR/AR side-by-side at ALL widths (per mobile mockup) */
.form-card .field-label [data-lang="ar"],
.form-card .step-pill [data-lang="ar"],
.form-card header h2 [data-lang="ar"],
.form-card .btn [data-lang="ar"] { font-family: var(--font-arabic); font-weight: 600; }

/* Consent text — stack the two languages on separate lines */
/* Consent: show Arabic by default. Click toggle to swap to French. */
html[lang] .consent-text [data-lang="ar"] { display: block !important; }
html[lang] .consent-text [data-lang="fr"] { display: none !important; }
html[lang] .consent-wrap.show-fr .consent-text [data-lang="ar"] { display: none !important; }
html[lang] .consent-wrap.show-fr .consent-text [data-lang="fr"] { display: block !important; }
.consent-text [data-lang="ar"] {
  direction: rtl;
  text-align: right;
  font-family: var(--font-arabic);
  line-height: 1.7;
}

/* Small language toggle button — top-right of consent, in normal flow */
.consent-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.consent-wrap > .consent-check { width: 100%; }
.consent-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-700);
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: var(--font-display);
  align-self: flex-end;
}
.consent-lang-toggle:hover,
.consent-lang-toggle:focus-visible {
  color: var(--mc-red);
  border-color: var(--mc-red-lighter);
  background: var(--mc-red-lightest);
  outline: none;
}
.consent-lang-toggle svg { width: 12px; height: 12px; }

/* Success card — title + paragraph stacked bilingually */
html[lang] .form-success h3 [data-lang="fr"],
html[lang] .form-success h3 [data-lang="ar"],
html[lang] .form-success > p [data-lang="fr"],
html[lang] .form-success > p [data-lang="ar"] { display: block !important; }
.form-success [data-lang="ar"] {
  font-family: var(--font-arabic);
  margin-top: 6px;
}
.form-success .btn [data-lang="fr"]::after { content: " · "; margin: 0 4px; opacity: 0.5; }
.form-success .btn [data-lang="ar"] { font-family: var(--font-arabic); }

/* Submit button — stack French (top) and Arabic (under) */
.btn-bilingual {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
}
html[lang] .btn-bilingual [data-lang="fr"],
html[lang] .btn-bilingual [data-lang="ar"] { display: block !important; }
.btn-bilingual [data-lang="fr"]::after { content: none !important; }
.btn-bilingual [data-lang="ar"] {
  font-family: var(--font-arabic);
  font-size: 0.78em;
  font-weight: 600;
  opacity: 0.92;
  margin-top: 2px;
}

/* Hide the FR/AR language toggle in the nav (form is now bilingual, hero auto-fades) */
.lang-toggle { display: none !important; }

/* City combobox — typeahead input + scrollable list */
.city-combobox { position: relative; }
.city-combobox .city-input {
  padding-left: 40px;
  padding-right: 40px;
}
.city-combobox .combobox-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--ink-400, var(--ink-300));
  cursor: pointer;
  border-radius: 6px;
  display: grid;
  place-items: center;
  transition: color 0.18s ease, transform 0.2s ease;
}
.city-combobox .combobox-toggle:hover { color: var(--ink-700); background: var(--ink-50); }
.city-combobox.is-open .combobox-toggle { color: var(--mc-red); transform: translateY(-50%) rotate(180deg); }

.combobox-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 280px;
  overflow-y: auto;
  background: #fff;
  border: 1.5px solid var(--ink-200);
  border-radius: 10px;
  box-shadow: 0 14px 40px -10px rgba(15,23,42,0.18), 0 2px 8px rgba(15,23,42,0.06);
  list-style: none;
  margin: 0;
  padding: 4px 0;
}
.combobox-options li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-900);
  transition: background 0.12s ease;
}
.combobox-options li strong { font-weight: 600; }
.combobox-options li .city-ar {
  font-family: var(--font-arabic);
  font-size: 13px;
  color: var(--ink-500);
  direction: rtl;
}
.combobox-options li:hover,
.combobox-options li.is-active {
  background: var(--mc-red-lightest);
  color: var(--mc-red);
}
.combobox-options li:hover .city-ar,
.combobox-options li.is-active .city-ar {
  color: var(--mc-red);
}

/* Catch-all: every [data-lang="ar"] element + descendants render in Cairo */
[data-lang="ar"],
[data-lang="ar"] * { font-family: var(--font-arabic) !important; }
html[lang="ar"] body,
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] p,
html[lang="ar"] a,
html[lang="ar"] button,
html[lang="ar"] label,
html[lang="ar"] input,
html[lang="ar"] select,
html[lang="ar"] textarea { font-family: var(--font-arabic); }
html[dir="rtl"] .lang-toggle { direction: ltr; }

/* ---------- Hero logo badge (top-center, rounded-bottom-only, slide-down) ---------- */
.nav {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -100%);
  z-index: 5;
  margin: 0;
  display: inline-flex;
  animation: navSlideDown 0.9s cubic-bezier(0.34, 1.4, 0.64, 1) 0.7s both;
}
.nav-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mc-black);
  padding: 12px 32px;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 8px 22px -8px rgba(0,0,0,0.4);
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img {
  height: 36px;
  width: auto;
  display: block;
}
.nav-right { display: none; }
@keyframes navSlideDown {
  0%   { opacity: 0; transform: translate(-50%, -100%); }
  100% { opacity: 1; transform: translate(-50%, 0); }
}

/* Language toggle */
.lang-toggle {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 4px; gap: 2px;
}
.lang-toggle button {
  background: transparent; border: none;
  color: rgba(255,255,255,0.7);
  font: 700 12px/1 var(--font-display);
  padding: 7px 14px; border-radius: 999px;
  cursor: pointer; letter-spacing: 0.3px;
  transition: all 0.2s ease;
}
.lang-toggle button.active {
  background: var(--mc-red); color: #fff;
  box-shadow: 0 2px 8px rgba(217,23,27,0.35);
}
.lang-toggle button:not(.active):hover { color: #fff; }

@media (max-width: 640px) {
  .nav-inner { padding: 9px 22px; border-radius: 0 0 12px 12px; }
  .nav-logo img { height: 28px; }
}

/* ---------- Hero — rounded container with margins (like Website/index.html) ---------- */
.hero {
  background: #F5F5F7;
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 70px 0 0;
  margin: 0;
  border-radius: 0;
}
/* Moroccan zellige motif */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('../images/motif.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
}
/* Readability wash */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right,
    rgba(245,245,247,1) 0%,
    rgba(245,245,247,0.6) 50%,
    rgba(245,245,247,0) 100%);
  z-index: 1;
  pointer-events: none;
}
html[dir="rtl"] .hero::after {
  background: linear-gradient(to left,
    rgba(245,245,247,1) 0%,
    rgba(245,245,247,0.6) 50%,
    rgba(245,245,247,0) 100%);
}

.hero-inner {
  position: relative; z-index: 2;
  width: 100%;
  max-width: 1280px; margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  grid-template-areas:
    "copy   form"
    "visual form";
  gap: 30px 50px;
  align-items: start;
  text-align: left;
}
.hero-copy { max-width: 600px; grid-area: copy; }
.hero-visual { grid-area: visual; }
.hero-inner > .form-wrap { grid-area: form; }

/* Form-wrap inside hero — reset its standalone container styling */
.hero-inner > .form-wrap {
  max-width: 100%;
  margin: 0;
  padding: 0;
  z-index: 3;
  align-self: start;
}
.hero-inner > .form-wrap .form-card { padding: 32px 32px; }

/* Hero visual — image anchors to the bottom of the rounded card */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  align-self: stretch;
  min-height: 480px;
}
.hero-visual img {
  max-width: 100%;
  width: auto;
  max-height: 560px;
  object-fit: contain;
  object-position: bottom;
  display: block;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.18));
  margin-bottom: 0;
}

/* ---------- Hero play button (over the image) ---------- */
.hero-play-btn {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 100px;
  height: 100px;
  border: none;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,58,64,0.48) 0%, rgba(217,23,27,0.42) 55%, rgba(168,18,26,0.42) 100%);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow:
    0 18px 48px -16px rgba(217,23,27,0.35),
    0 6px 16px rgba(0,0,0,0.14),
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, filter 0.25s ease;
  padding: 0;
  isolation: isolate;
}
.hero-play-btn::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.25);
  pointer-events: none;
}
.hero-play-btn:hover,
.hero-play-btn:focus-visible {
  transform: translate(-50%, -50%) scale(1.08);
  background: radial-gradient(circle at 30% 30%, rgba(255,58,64,0.72) 0%, rgba(217,23,27,0.66) 55%, rgba(168,18,26,0.66) 100%);
  box-shadow:
    0 26px 60px -12px rgba(217,23,27,0.5),
    0 10px 22px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.35),
    inset 0 -2px 8px rgba(0,0,0,0.14);
  outline: none;
}
.hero-play-btn:active { transform: translate(-50%, -50%) scale(0.97); }
.hero-play-btn .play-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: 5px; /* optical centering of triangle */
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.25));
}
.hero-play-btn .play-icon svg { width: 100%; height: 100%; }
.hero-play-btn .pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(217,23,27,0.55);
  animation: heroPulse 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
  z-index: -1;
}
.hero-play-btn .pulse-ring-2 { animation-delay: 1.2s; }
@keyframes heroPulse {
  0%   { transform: scale(1);    opacity: 0.7; }
  80%  { transform: scale(1.6);  opacity: 0; }
  100% { transform: scale(1.6);  opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-play-btn .pulse-ring { animation: none; opacity: 0; }
}
@media (max-width: 960px) {
  .hero-play-btn { width: 120px; height: 120px; }
  .hero-play-btn .play-icon { width: 52px; height: 52px; margin-left: 6px; }
}
@media (max-width: 720px) {
  .hero-play-btn { width: 110px; height: 110px; }
  .hero-play-btn .play-icon { width: 46px; height: 46px; margin-left: 5px; }
}

/* ---------- Video modal ---------- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(10, 10, 14, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.video-modal.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
}
.video-modal-content {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6);
  transform: scale(0.96);
  transition: transform 0.3s ease;
}
.video-modal.active .video-modal-content { transform: scale(1); }
.video-modal-content video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}
.video-modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 1;
}
.video-modal-close:hover,
.video-modal-close:focus-visible {
  background: rgba(255,255,255,0.22);
  transform: scale(1.05);
  outline: none;
}
.video-modal-close svg { width: 20px; height: 20px; }
@media (max-width: 720px) {
  .video-modal { padding: 12px; }
  .video-modal-close { top: 10px; right: 12px; width: 38px; height: 38px; }
}
body.modal-open { overflow: hidden; }

@media (max-width: 960px) {
  .hero { margin: 0; min-height: auto; padding-top: 140px; border-radius: 0; }
  .hero-inner {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "visual" "form";
    text-align: center;
    gap: 24px;
    padding: 0 24px;
  }
  .hero-copy { max-width: 100%; margin: 0 auto; }
  .hero-visual { min-height: 280px; }
  .hero-visual img { max-height: 320px; }
  .hero-meta { justify-content: center; }
  /* Center the Arabic hero block on mobile (overrides inline text-align:right + RTL flex) */
  .hero-copy > div[data-lang="ar"] { text-align: center !important; }
  .hero-copy > div[data-lang="ar"] h1 { text-align: center !important; }
  .hero-copy > div[data-lang="ar"] p.lead { text-align: center !important; }
  .hero-copy > div[data-lang="ar"] .hero-meta { justify-content: center !important; }
  .hero::after {
    background: linear-gradient(to bottom,
      rgba(245,245,247,0.92) 0%,
      rgba(245,245,247,0.75) 60%,
      rgba(245,245,247,0.45) 100%);
  }
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--mc-red-lightest); color: var(--mc-red);
  border: 1px solid var(--mc-red-lighter);
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 22px;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mc-red); animation: pulseDot 2s infinite; }
@keyframes pulseDot {
  0%,100% { box-shadow: 0 0 0 0 rgba(217,23,27,0.45); }
  50%     { box-shadow: 0 0 0 6px rgba(217,23,27,0.0); }
}

.hero h1 {
  font-size: clamp(30px, 3.8vw, 44px);
  letter-spacing: -1px;
  margin-bottom: 14px;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--mc-red) 0%, var(--mc-red-darker) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead {
  font-size: 16.5px; color: var(--ink-500);
  max-width: 560px; margin: 0 0 24px;
  line-height: 1.7;
}

/* Arabic hero title uses Cairo, slightly taller line-height for diacritics */
html[lang="ar"] .hero h1 { font-family: var(--font-arabic); line-height: 1.35; letter-spacing: 0; }
html[lang="ar"] .hero p.lead { font-family: var(--font-arabic); line-height: 1.85; }
/* Apply Cairo to the always-rendered AR overlay block (auto-fade hero) */
.hero-copy [data-lang="ar"],
.hero-copy [data-lang="ar"] h1,
.hero-copy [data-lang="ar"] p.lead,
.hero-copy [data-lang="ar"] .hero-meta,
.hero-copy [data-lang="ar"] .hero-meta span { font-family: var(--font-arabic); }
.hero-copy [data-lang="ar"] h1 { line-height: 1.35; letter-spacing: 0; }
.hero-copy [data-lang="ar"] p.lead { line-height: 1.85; }

.hero-meta {
  display: flex; gap: 22px; justify-content: flex-start; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-700); font-weight: 600;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 14px; height: 14px; color: var(--mc-red); }

/* ---------- Form card ---------- */
.form-wrap {
  max-width: 760px; margin: -30px auto 100px;
  padding: 0 18px;
  position: relative; z-index: 2;
}
.form-card {
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: 24px;
  box-shadow: 0 30px 80px -20px rgba(15,23,42,0.18), 0 2px 6px rgba(15,23,42,0.04);
  padding: 40px 44px;
}
.form-card header { margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--ink-100); }
.form-card header .step-pill {
  display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--mc-red); background: var(--mc-red-lightest); border-radius: 999px; padding: 4px 10px;
  margin-bottom: 10px;
}
.form-card header h2 { font-size: 22px; margin-bottom: 6px; }
.form-card header p  { color: var(--ink-500); font-size: 13.5px; }

.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.form-grid .field.span-2 { grid-column: 1 / -1; }

.form-actions {
  margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--ink-100);
  display: flex; flex-direction: column; align-items: stretch;
  gap: 18px;
}
.form-actions .small-note { font-size: 12px; color: var(--ink-500); max-width: 340px; }
.consent-wrap {
  max-width: 100%;
}
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.consent-check input { display: none; }
.consent-check .box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--ink-200);
  background: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 18px;
  margin-top: 2px;
  transition: all 0.2s ease;
}
.consent-check .box svg {
  width: 12px;
  height: 12px;
  color: #fff;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.2s ease;
}
.consent-check input:checked + .box {
  background: var(--mc-red);
  border-color: var(--mc-red);
}
.consent-check input:checked + .box svg {
  opacity: 1;
  transform: scale(1);
}
.consent-text {
  color: var(--ink-500);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 500;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
/* Consent text always stacks (FR full row, AR full row) — too long to fit side-by-side */
.consent-text { grid-template-columns: 1fr !important; gap: 10px !important; }
.consent-wrap.has-error .box {
  border-color: var(--error);
  background: var(--error-light);
}
.consent-wrap .error-text {
  margin-top: 6px;
  color: var(--error);
  font-size: 12px;
  font-weight: 600;
}
html[dir="rtl"] .consent-check {
  text-align: right;
}
.form-actions .btn { padding: 14px 28px; font-size: 14px; align-self: center; min-width: 280px; }
.form-actions .btn svg.send { width: 14px; height: 14px; }
.form-actions .btn .spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; }
.form-actions .btn.is-loading .spinner { display: inline-block; }
.form-actions .btn.is-loading svg.send { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Success state ---------- */
.form-success {
  display: none;
  text-align: center;
  padding: 50px 30px;
}
.form-success.show { display: block; }
.form-success .icon {
  width: 72px; height: 72px; margin: 0 auto 18px;
  background: var(--success-light);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--success);
}
.form-success .icon svg { width: 36px; height: 36px; }
.form-success h3 { font-size: 24px; margin-bottom: 8px; }
.form-success p  { color: var(--ink-500); font-size: 14px; max-width: 480px; margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer {
  background: transparent; color: var(--ink-500);
  padding: 28px 24px;
  font-size: 13px;
  text-align: center;
  border-top: 1px solid var(--ink-100);
}
.site-footer a { color: var(--ink-700); font-weight: 600; }
.site-footer .row { max-width: 1160px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
/* ============================================================
   Mobile (≤720px): form-first layout — hero hidden, logo bar full width
   ============================================================ */
@media (max-width: 1024px) {
  /* Mobile + tablet: black logo bar at top, form below — no hero text, no image */
  .hero {
    background: var(--mc-black);
    margin: 0;
    padding: 0;
    border-radius: 0;
    min-height: 0;
    overflow: visible;
    display: block;
  }
  .hero::before, .hero::after { display: none; }
  .hero-copy, .hero-visual, .scroll-down { display: none !important; }

  /* Logo bar — full width, centered, ON TOP */
  .nav {
    position: static !important;
    top: auto !important; left: auto !important;
    transform: none !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 16px 0;
    margin: 0;
    background: var(--mc-black);
    animation: navFadeIn 0.5s ease both;
  }
  .nav-inner {
    background: transparent;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
  }
  .nav-logo img { height: 40px; }
  @keyframes navFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Hero-inner becomes the form container only */
  .hero-inner {
    display: block !important;
    grid-template-columns: 1fr !important;
    grid-template-areas: none !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    background: #F5F5F7;
  }
  .hero-inner > .form-wrap {
    margin: 0 !important;
    padding: 18px 12px !important;
    max-width: 100% !important;
  }
  .hero-inner > .form-wrap .form-card { padding: 22px 18px !important; border-radius: 16px; }

  /* Form card spacing on mobile */
  .form-card header { margin-bottom: 16px; padding-bottom: 16px; }
  .form-card header .step-pill { font-size: 10px; padding: 3px 9px; }
  .form-card header h2 { font-size: 18px; }
  .form-card header p  { font-size: 12.5px; }

  /* Fields */
  .form-grid { grid-template-columns: 1fr; gap: 14px; }
  .field-label { font-size: 11px; }
  .field input, .field select, .field textarea { padding: 11px 12px 11px 38px; font-size: 14px; }
  .field-input svg.icon { left: 12px; width: 15px; height: 15px; }
  .radio-group { grid-template-columns: 1fr; gap: 8px; }
  .radio-card { padding: 12px 14px; font-size: 13px; }

  /* Actions — note above, button below, natural button size */
  .form-actions {
    margin-top: 18px; padding-top: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .form-actions .small-note {
    max-width: 100%;
    font-size: 11.5px;
    line-height: 1.5;
    order: 1;
    text-align: center;
  }
  .consent-wrap {
    max-width: 100%;
    order: 1;
  }
  .consent-text {
    font-size: 11.5px;
  }
  .form-actions .btn {
    order: 2;
    width: 100%;           /* full-width CTA on mobile — easier tap target */
    padding: 13px 18px;     /* sensible padding, not oversized */
    font-size: 14px;
    gap: 8px;
  }
  .form-actions .btn svg.send { width: 16px; height: 16px; }

  /* Success state */
  .form-success { padding: 40px 20px; }
  .form-success .icon { width: 60px; height: 60px; }
  .form-success .icon svg { width: 30px; height: 30px; }
  .form-success h3 { font-size: 20px; }
  .form-success p  { font-size: 13.5px; }

  /* Footer */
  .site-footer { padding: 24px 18px; font-size: 12px; }
  .site-footer .row { gap: 8px; flex-direction: column; text-align: center; }
}

/* Phone — very small screens */
@media (max-width: 400px) {
  .hero h1 { font-size: 24px; }
  .hero p.lead { font-size: 14px; }
  .hero-meta { flex-direction: column; align-items: flex-start; gap: 8px; }
  .form-card { padding: 18px 14px; }
  .form-card header h2 { font-size: 17px; }
}
