/* =============================================================================
   CAMPAIGN DESIGN STYLES — RENAULT SYMBIOZ FLEET
   style.css holds the locked machinery. Everything design-side lives here.

   Sizing: vw. Desktop = Figma px / 19.2 (1920 frame).
           Mobile  = Figma px / 3.75 (375 frame), inside @media (max-width:768px).

   The skeleton's mobile rules hang off body.mobile (UA sniff). Where a mobile
   rule has to beat one of those, the selector is written `X, .mobile X` inside
   the media query so it works both on a real device and in a resized browser.
   ========================================================================== */

/* ============================ PALETTE ============================ */
:root {
  /* shared skeleton tokens — re-themed from the Figma */
  --brand-accent: #efdf00;
  --brand-accent-ink: #1a1a1a;
  --panel-bg: #000000;
  --panel-ink: #ffffff;
  --page-bg: #ffffff;
  --page-ink: #1a1a1a;
  --field-line: #d9d9d6;
  --error-ink: rgb(203, 0, 0);

  /* campaign tokens */
  --freesbe-teal: #00d6d1;
  --usp-bg: #f5f4f0;
  --hairline: #d9d9d6;
  --ink: #1a1a1a;
  --field-bg: #ffffff;

  /* type ramp — desktop */
  --f-regular: "NouvelRAH-Regular", sans-serif;
  --f-semibold: "NouvelRAH-Semibold", sans-serif;
  --f-bold: "NouvelRAH-Bold", sans-serif;
  --f-extrabold: "NouvelR-Extrabold", sans-serif;

  --panel-w: 25vw;
  --gutter: 3.3333vw; /* 64px */
}


/* ========================= PAGE SCAFFOLD =========================
   Desktop: the lead panel is fixed at 25vw on the left, so the design
   column (1440 of 1920 in the Figma) is offset by the same amount. */
html {
  scroll-behavior: smooth;
}

body {
  direction: rtl;
  background: var(--page-bg);
  color: var(--page-ink);
  overflow-x: hidden;
}

#campaign-main {
  min-height: 0;
  margin-left: var(--panel-w);
  width: calc(100vw - var(--panel-w));
  overflow: hidden;
}

.wrapper_accessibility {
  margin-left: var(--panel-w);
  width: calc(100vw - var(--panel-w));
  box-sizing: border-box;
  padding: 1.6667vw var(--gutter) 2.0833vw;
  background: var(--page-bg);
}


/* ======================= SCROLL REVEALS =======================
   Mirrors the Figma prototype: sections fade + rise as they enter. */
.reveal {
  opacity: 0;
  transform: translateY(2.4vw);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal[data-delay] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ==================== SAFETY / POLLUTION RATINGS ====================
   Legal strip under the USP band. The whole line is a button — clicking it
   opens the spec sheet (mifrat) in the shared .popUp. */
.safety {
  width: 100%;
  background: var(--page-bg);
}

.safety__line {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* RTL: starts at the right edge */
  text-align: right;
  gap: 1.25vw; /* 24 */
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 1.0417vw 7vw; /* 20 / 107 — right edge lines up with .usp__inner */
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  direction: rtl;
}

.safety__group {
  display: flex;
  align-items: center;
  gap: 0.4167vw; /* 8 */
}

.safety__label {
  font-family: var(--f-regular);
  font-weight: 400;
  font-size: 0.9375vw; /* 18 */
  line-height: 1.2;
  color: var(--ink);
  white-space: nowrap;
}

.safety__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25vw; /* 24 */
  height: 1.25vw;
  flex: 0 0 auto;
  font-family: var(--f-bold);
  font-weight: 700;
  font-size: 0.8333vw; /* 16 */
  line-height: 1;
  color: #000000;
}

.safety__badge--equip {
  background: #007aff;
}

.safety__badge--pollution {
  background: #0e7d3e;
}

.safety__line:hover .safety__label {
  text-decoration: underline;
}

/* bigger close button on the spec popup (style.css ships it at 1.2vw) */
.popUp .close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5vw;
  height: 2.5vw;
  top: 0.4167vw;
  left: 0.4167vw;
  font-family: var(--f-bold);
  font-size: 1.6667vw;
  line-height: 1;
  color: var(--ink);
}

/* dimmer behind .popUp — the shell ships the div unstyled */
.btn-disabled {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999998;
  background: rgba(0, 0, 0, 0.6);
}


/* ============================================================================
   LEAD FORM — RESTYLE ONLY.
   Markup, field names, validation and the submission pipeline are untouched;
   this block only re-skins the panel to the Figma (teal header bar, black
   panel, white filled fields, yellow CTA).
   ========================================================================== */
.form {
  background: var(--panel-bg);
  color: var(--panel-ink);
  overflow-y: auto;
  scrollbar-width: none;
}

.form::-webkit-scrollbar {
  display: none;
}

/* teal freesbe header bar — 480x72 in the Figma */
.form .top_bunner {
  background: var(--freesbe-teal);
  height: 3.75vw;
  padding: 0;
  box-sizing: border-box;
}

.form .top_bunner img.freesbe_logo {
  width: 6.5vw;
  height: auto;
}

.form-content {
  padding: 2.0833vw var(--form-pad, 2.0833vw) 2.0833vw;
  box-sizing: border-box;
  width: 100%;
}

.form .form_logo {
  width: 3.3333vw;
  margin: 0 auto;
}

.form__title {
  gap: 0.625vw;
  padding: 1.25vw 0 0;
}

.form__title h2.top {
  font-family: var(--f-bold);
  font-weight: 700;
  font-size: 1.875vw;
  line-height: 1;
  letter-spacing: 0;
}

.form__title h3.top2 {
  font-family: var(--f-regular);
  font-weight: 400;
  font-size: 1.1458vw;
  line-height: 1.25;
}

.form__must {
  font-family: var(--f-regular);
  font-size: 0.9375vw;
  line-height: 1.333;
  text-align: center;
  margin-top: 0.8333vw;
}

.form__must .req {
  color: var(--brand-accent);
}

.form__fields {
  gap: 0.8333vw;
  padding-top: 1.25vw;
}

/* --- white filled field boxes --- */
.form .field:not(.field-checkbox) {
  background: var(--field-bg);
  height: 2.9167vw; /* 56px */
  border-bottom: 0;
  border-radius: 0;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: 0 0.8333vw;
}

.form .field select,
.form .field input:not([type="checkbox"]) {
  margin-top: 0;
  height: 100%;
  padding: 0;
  font-family: var(--f-regular);
  font-size: 0.8333vw;
  line-height: 1.375;
  color: var(--ink);
  background: transparent;
  text-align: right;
  direction: rtl;
}

.form .field select.place {
  font-size: 0.8333vw;
  margin-top: 0;
  color: var(--ink);
  cursor: pointer;
  /* chevron */
  background-image: linear-gradient(45deg, transparent 50%, #1a1a1a 50%),
    linear-gradient(135deg, #1a1a1a 50%, transparent 50%);
  background-position: calc(0.35vw) 50%, calc(0.7vw) 50%;
  background-size: 0.35vw 0.35vw, 0.35vw 0.35vw;
  background-repeat: no-repeat;
}

.form .field select option {
  background: #ffffff;
  color: var(--ink);
  font-size: 0.8333vw;
}

.form .field input::placeholder {
  color: #6b6b6b;
}

/* floating label inside the white box */
.form .field:not(.field-checkbox) label {
  position: absolute;
  right: 0.8333vw;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--f-regular);
  font-size: 0.8333vw;
  line-height: 1.375;
  color: var(--ink);
  pointer-events: none;
  transition: all 0.2s ease;
}

.form .field:not(.field-checkbox) label.activeAnimation {
  top: 0.5vw;
  transform: none;
  font-size: 0.625vw;
  color: #6b6b6b;
}

.form .field:not(.field-checkbox) label.activeAnimation + input {
  padding-top: 0.9vw;
}

.form .error,
.form .success {
  left: 0.8333vw;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7292vw;
}

.form .success {
  color: #12a150;
}

/* --- consent block --- */
.form .extra-info {
  margin-top: 0.4167vw;
}

.form .extra-info .privacy-text {
  font-family: var(--f-regular);
  font-size: 0.8333vw;
  line-height: 1.25;
}

.form .field.field-checkbox {
  top: 0;
  margin-top: 0.8333vw;
}

.form .field.field-checkbox label {
  top: 0;
  gap: 0.625vw;
  align-items: flex-start;
}

.form .checkbox-title {
  font-family: var(--f-regular);
  font-size: 0.8333vw;
  line-height: 1.25;
}

.form .field .checkbox-v {
  width: 0.9375vw;
  height: 0.9375vw;
  top: 0.1vw;
  border: 1px solid var(--panel-ink);
}

.form .field input[type="checkbox"]:checked + .checkbox-v::after {
  inset: 0.125vw;
  background: var(--brand-accent);
}

/* --- yellow CTA --- */
.form .send-btn {
  background: var(--brand-accent);
  color: var(--brand-accent-ink);
  font-family: var(--f-semibold);
  font-weight: 600;
  font-size: 1.0417vw;
  line-height: 1.3;
  height: 2.9167vw;
  border-radius: 0;
  margin-top: 1.6667vw;
  gap: 0.625vw;
  letter-spacing: 0;
}

.form .send-btn .txt-send-button {
  font-family: var(--f-semibold);
  font-weight: 600;
}

.form .send-btn::after {
  content: "";
  width: 1.0417vw;
  height: 1.0417vw;
  background: url("https://media.renault.co.il/ao/campaigns/renault-symbioz-fleet/images/icons/icon-arrow.svg") no-repeat center / contain;
  flex: 0 0 auto;
}

.form .send-btn:hover {
  filter: brightness(1.06);
}

/* --- thank-you panel --- */
.tnx .form_logo {
  width: 3.3333vw;
  margin-top: 6vw;
}

.tnx__title {
  font-family: var(--f-bold);
  font-size: 1.875vw;
  line-height: 1.2;
}


/* ============================================================================
   MOBILE  (Figma 375 frame)
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --gutter: 4.2667vw; /* 16px */
  }

  #campaign-main,
  .mobile #campaign-main {
    margin-left: 0;
    width: 100%;
  }

  .wrapper_accessibility,
  .mobile .wrapper_accessibility {
    margin-left: 0;
    width: 100%;
    padding: 5.3333vw var(--gutter) 22vw;
    gap: 2.6667vw;
    position: relative;
    z-index: 1;
  }

  a.accessibility,
  .mobile .accessibility {
    gap: 1.6vw;
    align-self: flex-start;
    font-size: 3.4667vw;
  }

  a.accessibility img,
  .mobile .accessibility img {
    width: 4.2667vw;
    height: 4.2667vw;
  }

  .mispatit,
  .mobile .mispatit {
    font-size: 2.6667vw;
  }

  .reveal {
    transform: translateY(6vw);
  }

  /* ---- spec popup close button ---- */
  .popUp .close,
  .mobile .popUp .close {
    width: 9.6vw;
    height: 9.6vw;
    top: 1.6vw;
    left: 1.6vw;
    font-size: 6.4vw;
  }

  /* ---- safety / pollution strip ---- */
  .safety__line,
  .mobile .safety__line {
    gap: 3.2vw; /* 12 */
    padding: 4.2667vw var(--gutter);
  }

  .safety__group,
  .mobile .safety__group {
    gap: 1.6vw; /* 6 */
  }

  .safety__label,
  .mobile .safety__label {
    font-size: 3.4667vw; /* 13 */
  }

  .safety__badge,
  .mobile .safety__badge {
    width: 4.8vw; /* 18 */
    height: 4.8vw;
    font-size: 3.2vw; /* 12 */
  }

  /* ---- visibility utilities without the UA class ---- */
  .only_desktop,
  .mobile .only_desktop {
    display: none;
  }

  .only_mobile,
  .mobile .only_mobile {
    display: block;
  }

  /* ---- lead panel: slide-up sheet ---- */
  .form,
  .mobile .form {
    width: 100%;
    height: 100%;
    max-height: 100%;
    transform: translateY(105%);
    transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
    padding: 0;
    overflow-y: auto;
    z-index: 999999;
    box-sizing: border-box;
  }

  .form.active,
  .mobile .form.active {
    transform: translateY(0);
  }

  .close_form,
  .mobile .close_form {
    top: 4.2667vw;
    left: 4.2667vw;
    font-size: 5.3333vw;
    line-height: 1;
    color: var(--panel-ink);
  }

  .form-content,
  .mobile .form-content {
    padding: 13.3333vw 4.2667vw 12vw;
  }

  .form .form_logo,
  .mobile .form .form_logo {
    width: 12.8vw;
  }

  .form__title,
  .mobile .form__title {
    gap: 2.1333vw;
    padding: 4.2667vw 0 0;
  }

  .form__title h2.top,
  .mobile .form__title h2.top {
    font-size: 6.4vw;
    line-height: 1.05;
  }

  .form__title h3.top2,
  .mobile .form__title h3.top2 {
    font-size: 4.2667vw;
    line-height: 1.25;
  }

  .form__must,
  .mobile .form__must {
    font-size: 3.7333vw;
    margin-top: 3.2vw;
  }

  .form__fields,
  .mobile .form__fields {
    gap: 3.2vw;
    padding: 5.3333vw 0 0;
  }

  .form .field:not(.field-checkbox),
  .mobile .form .field:not(.field-checkbox) {
    height: 14.9333vw; /* 56px */
    border-bottom: 0;
    padding: 0 3.2vw;
  }

  .form .field select,
  .form .field input:not([type="checkbox"]),
  .mobile .form .field select,
  .mobile .form .field input:not([type="checkbox"]) {
    margin-top: 0;
    font-size: 4.2667vw;
    height: 100%;
    padding: 0;
  }

  .form .field select.place,
  .mobile .form .field select.place {
    font-size: 4.2667vw;
    background-position: 1.6vw 50%, 3.0667vw 50%;
    background-size: 1.6vw 1.6vw, 1.6vw 1.6vw;
  }

  .form .field select option,
  .mobile .form .field select option {
    font-size: 4.2667vw;
  }

  .form .field:not(.field-checkbox) label,
  .mobile .form .field:not(.field-checkbox) label {
    right: 3.2vw;
    top: 50%;
    transform: translateY(-50%);
    font-size: 4.2667vw;
  }

  .form .field:not(.field-checkbox) label.activeAnimation,
  .mobile .form .field:not(.field-checkbox) label.activeAnimation {
    top: 1.8667vw;
    transform: none;
    font-size: 3.2vw;
  }

  .form .field:not(.field-checkbox) label.activeAnimation + input,
  .mobile .form .field:not(.field-checkbox) label.activeAnimation + input {
    padding-top: 4.2667vw;
  }

  .form .error,
  .form .success,
  .mobile .form .error,
  .mobile .form .success {
    left: 3.2vw;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3.2vw;
  }

  .form .extra-info .privacy-text,
  .mobile .form .extra-info .privacy-text {
    font-size: 3.4667vw;
  }

  .form .checkbox-title,
  .mobile .form .checkbox-title {
    font-size: 3.4667vw;
  }

  .form .field .checkbox-v,
  .mobile .form .field .checkbox-v {
    width: 4.2667vw;
    height: 4.2667vw;
    top: 0.5vw;
  }

  .form .field input[type="checkbox"]:checked + .checkbox-v::after,
  .mobile .form .field input[type="checkbox"]:checked + .checkbox-v::after {
    inset: 0.8vw;
  }

  .form .field.field-checkbox label,
  .mobile .form .field.field-checkbox label {
    gap: 2.6667vw;
  }

  .form .send-btn,
  .mobile .form .send-btn {
    font-size: 4.8vw;
    height: 14.9333vw;
    padding: 0;
    margin-top: 6.4vw;
    gap: 2.1333vw;
    border-radius: 0;
  }

  .form .send-btn::after,
  .mobile .form .send-btn::after {
    width: 4.2667vw;
    height: 4.2667vw;
  }

  /* ---- thank-you ---- */
  .tnx,
  .mobile .tnx {
    width: 100%;
  }

  .tnx .form_logo,
  .mobile .tnx .form_logo {
    width: 18.6667vw;
    margin-top: 30vw;
  }

  .tnx__title,
  .mobile .tnx__title {
    font-size: 7.4667vw;
    margin-top: 8vw;
  }

  /* ---- sticky CTA bar: teal, 375x62 in the Figma ---- */
  .cta,
  .mobile .cta {
    position: fixed;
    display: flex;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 16.5333vw;
    z-index: 99999;
    font-size: 4.8vw;
  }

  .cta a,
  .mobile .cta a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.1333vw;
    padding: 0;
    font-family: var(--f-semibold);
    font-weight: 600;
    font-size: 4.8vw;
    line-height: 1.44;
    text-align: center;
    text-decoration: none;
  }

  .cta .callUs,
  .mobile .cta .callUs {
    background: var(--panel-bg);
    color: var(--panel-ink);
    border: 0;
    box-sizing: border-box;
  }

  .cta .callUs::before,
  .mobile .cta .callUs::before {
    content: "";
    width: 4.2667vw;
    height: 4.2667vw;
    top: 0;
    left: 0;
    background: url("https://media.renault.co.il/ao/campaigns/renault-symbioz-fleet/images/phone_icon.svg") no-repeat center / contain;
    position: static;
    flex: 0 0 auto;
  }

  .cta .testDrive,
  .mobile .cta .testDrive {
    background: var(--freesbe-teal);
    color: var(--brand-accent-ink);
  }

  .cta .testDrive::before,
  .mobile .cta .testDrive::before {
    content: "";
    width: 4.2667vw;
    height: 4.2667vw;
    top: 0;
    left: 0;
    background: url("https://media.renault.co.il/ao/campaigns/renault-symbioz-fleet/images/icons/icon-arrow.svg") no-repeat center / contain;
    position: static;
    flex: 0 0 auto;
    order: 2;
  }

  .cta .callUs span,
  .cta .testDrive span,
  .mobile .cta .callUs span,
  .mobile .cta .testDrive span {
    width: auto;
    text-align: center;
  }

  /* ---- cookie banner ---- */
  .cookie-banner,
  .mobile .cookie-banner {
    width: 100%;
    padding: 3.2vw 4.2667vw;
    box-sizing: border-box;
    align-items: flex-start;
    bottom: 15vw;
  }

  .cookie-banner__content p,
  .mobile .cookie-banner__content p {
    font-size: 2.9333vw;
  }

  .cookie-banner__close,
  .mobile .cookie-banner__close {
    width: 7.4667vw;
    height: 7.4667vw;
    font-size: 4vw;
    margin-right: 3.2vw;
  }
}
