
/* ==========================================================
   LUNARA — SELLER COLLECTIVE
   Luxury Editorial Onboarding / Complete Stylesheet
   Normal Page Scrolling • EN/AR • Responsive
========================================================== */

:root {
  --wine: #390007;
  --wine-soft: #57222a;
  --cream: #f6ede5;
  --paper: #fffbf7;
  --teal: #1e4c4d;
  --teal-pale: #e7efeb;
  --ink: #35292b;
  --muted: #81736e;
  --line: #ddcfc5;
  --gold: #c8a99c;
  --error: #aa3440;

  --display: Baskerville, Georgia, serif;
  --body: "Helvetica Neue", Arial, sans-serif;
  --arabic: Tahoma, Arial, sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.18, 1.25, .35, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  width: 100%;
  height: auto;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  height: auto;

  overflow-x: hidden;
  overflow-y: auto;

  background: var(--cream);
  color: var(--ink);

  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

::selection {
  background: var(--teal);
  color: #fff;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0 !important;
}

/* ==========================================================
   PRELOADER
========================================================== */

.preloader,
.submission-loader {
  position: fixed;
  inset: 0;

  display: grid;
  place-items: center;

  background: var(--wine);
  color: var(--cream);
}

.preloader {
  z-index: 1000;
  transition:
    opacity .65s ease,
    visibility .65s ease;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__inner {
  width: min(250px, 78vw);
  text-align: center;
}

.preloader__logo {
  display: block;
  width: 135px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 22px;

  animation: logoReveal 1s var(--spring) both;
}

.preloader__inner > span {
  display: block;
  color: #dbc3bb;
  font-size: 10px;
  letter-spacing: .2em;
}

.preloader__bar {
  height: 2px;
  margin-top: 29px;
  overflow: hidden;
  background: #805259;
}

.preloader__bar i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--cream);
  transform-origin: left;
  animation: preloaderBar 1.15s var(--ease) both;
}

@keyframes logoReveal {
  from {
    opacity: 0;
    transform: translateY(28px) scale(.93);
  }

  70% {
    opacity: 1;
    transform: translateY(-5px) scale(1.025);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes preloaderBar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ==========================================================
   SUBMISSION LOADING
========================================================== */

.submission-loader {
  z-index: 900;
  background: rgba(57, 0, 7, .985);
  animation: overlayEnter .35s ease both;
}

.submission-loader__inner {
  padding: 25px;
  text-align: center;
}

.submission-loader__ring {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 30px;

  border: 1px solid rgba(246, 237, 229, .45);
  border-radius: 50%;

  animation: pulseRing 1.55s ease-in-out infinite;
}

.submission-loader__ring span {
  position: absolute;
  inset: 23px;
  border-radius: 50%;
  background: var(--cream);
  animation: pulseDot 1.55s var(--spring) infinite;
}

.submission-loader h2 {
  font: 400 35px/1.3 var(--display);
}

.submission-loader p {
  margin-top: 13px;
  color: #d9beb8;
  font-size: 11px;
  letter-spacing: .15em;
}

@keyframes overlayEnter {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulseRing {
  0%, 100% {
    transform: scale(.85);
    opacity: .55;
  }

  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

@keyframes pulseDot {
  0%, 100% { transform: scale(.7); }
  50% { transform: scale(1.14); }
}

/* ==========================================================
   MAIN PAGE — NATURAL SCROLLING
========================================================== */

.app {
  display: grid;
  grid-template-columns:
    minmax(255px, 31%)
    minmax(0, 1fr);

  align-items: stretch;

  width: 100%;
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;

  overflow: visible;
}

/* ==========================================================
   BRAND SIDEBAR
========================================================== */

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;

  height: 100vh;
  height: 100dvh;
  min-height: 0;

  isolation: isolate;
  overflow: hidden;

  color: var(--cream);

  background:
    radial-gradient(
      ellipse at 12% 12%,
      rgba(139, 64, 74, .29),
      transparent 53%
    ),
    linear-gradient(
      158deg,
      #460b16 0%,
      #390007 56%,
      #290006 100%
    );
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  opacity: .23;

  background-image:
    repeating-radial-gradient(
      ellipse at 27% 41%,
      transparent 0 1.5px,
      rgba(255, 232, 221, .12) 2px 2.5px,
      transparent 3px 6px
    ),
    repeating-linear-gradient(
      125deg,
      transparent 0 5px,
      rgba(255, 232, 221, .065) 6px,
      transparent 7px 12px
    );

  background-size: 192px 154px, 107px 111px;
  mix-blend-mode: screen;
}

.sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;

  background: radial-gradient(
    ellipse at 95% 92%,
    rgba(176, 115, 100, .15),
    transparent 65%
  );

  pointer-events: none;
}

.sidebar__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;

  padding: clamp(23px, 3.1vw, 52px);
}

.sidebar__logo {
  display: inline-flex;
  align-self: flex-start;
  flex-shrink: 0;
}

.sidebar__logo img {
  display: block;
  width: clamp(67px, 6vw, 94px);
  height: auto;
  object-fit: contain;

  transition:
    transform .6s var(--ease),
    opacity .3s ease;
}

.sidebar__logo:hover img {
  transform: translateY(-3px) scale(1.035);
  opacity: .9;
}

.sidebar__content {
  min-height: 0;
  margin: auto 0;
}

.eyebrow {
  display: block;
  margin-bottom: 15px;

  color: var(--teal);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  line-height: 1.7;
}

.eyebrow--light {
  color: #e3c5bb;
}

.sidebar__headline {
  max-width: 410px;
  margin-bottom: 18px;

  color: #f9f0e7;

  font: 400 clamp(40px, 3.55vw, 62px)/1.09 var(--display);
  letter-spacing: -.05em;
  text-wrap: balance;
}

.sidebar__description {
  max-width: 335px;
  color: #d9c0b8;
  font-size: 14px;
  line-height: 1.85;
}

.sidebar__divider {
  position: relative;
  max-width: 340px;
  height: 1px;

  margin: clamp(22px, 3.3vh, 37px) 0;

  background: linear-gradient(
    90deg,
    #be9c93,
    rgba(190, 156, 147, .2) 75%,
    transparent
  );
}

.sidebar__divider::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: -2px;

  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d7beb3;
}

/* Sidebar navigation */

.step-navigation {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.9vh, 21px);
  list-style: none;
}

.step-navigation__item {
  display: flex;
  align-items: center;
  gap: 15px;

  opacity: .43;
  font-size: 14px;

  transition:
    opacity .35s,
    transform .5s var(--spring);
}

.step-navigation__item.is-active {
  opacity: 1;
  transform: translateX(4px);
}

.step-navigation__item.is-complete {
  opacity: .83;
}

.step-navigation__number {
  display: grid;
  place-items: center;

  flex: 0 0 33px;
  width: 33px;
  height: 33px;

  border: 1px solid #a47b81;
  border-radius: 50%;

  font-size: 12px;
  direction: ltr;

  transition:
    background .3s,
    transform .5s var(--spring);
}

.step-navigation__item.is-active .step-navigation__number {
  background: var(--cream);
  color: var(--wine);
  border-color: var(--cream);

  transform: scale(1.08);
  box-shadow: 0 0 0 5px rgba(246, 237, 229, .07);
}

.step-navigation__item.is-complete .step-navigation__number {
  background: var(--teal);
  color: white;
  border-color: #83a49b;
}

.sidebar__footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;

  padding-top: 17px;
  border-top: 1px solid rgba(220, 185, 178, .25);

  color: #cfafa7;
  font-size: 10px;
  letter-spacing: .09em;
}

/* ==========================================================
   APPLICATION PAGE
========================================================== */

.application {
  position: relative;
  isolation: isolate;

  width: 100%;
  height: auto;
  min-width: 0;

  min-height: 100vh;
  min-height: 100dvh;

  overflow: visible;

  background:
    radial-gradient(
      ellipse at 98% 4%,
      rgba(255, 255, 255, .65),
      transparent 54%
    ),
    var(--cream);
}

.application::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;

  opacity: .2;
  pointer-events: none;

  background-image: repeating-linear-gradient(
    90deg,
    transparent 0 48px,
    rgba(98, 59, 50, .024) 49px,
    transparent 50px
  );
}

.application__inner {
  display: flex;
  flex-direction: column;

  width: min(100%, 1000px);
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;

  margin: 0 auto;

  padding:
    clamp(23px, 3vw, 48px)
    clamp(27px, 5vw, 88px);
}

/* Header */

.application__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-shrink: 0;

  min-height: 48px;
  padding-bottom: 16px;

  border-bottom: 1px solid rgba(114, 79, 69, .2);
}

.application__eyebrow {
  color: var(--wine);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .17em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 21px;
}

.application__counter {
  color: #887970;
  font-size: 12px;
  letter-spacing: .1em;
  direction: ltr;
}

.language-switch {
  display: inline-flex;
  align-items: center;

  padding: 4px;
  border: 1px solid #d8c9be;

  background: rgba(255, 255, 255, .5);
  direction: ltr;
}

.language-switch__button {
  min-width: 38px;
  min-height: 32px;

  padding: 4px 8px;
  border: 0;

  background: transparent;
  color: #85756e;

  font-size: 12px;
  font-weight: 600;

  transition:
    background .3s,
    color .3s;
}

.language-switch__button.is-active {
  background: var(--wine);
  color: var(--cream);
}

.language-switch__divider {
  width: 1px;
  height: 17px;
  margin: 0 3px;
  background: var(--line);
}

.mobile-logo {
  display: none;
}

/* Full-height restriction removed */

.application__viewport {
  flex: 1 0 auto;

  width: 100%;
  height: auto;
  min-height: 0;

  overflow: visible;
  overscroll-behavior: auto;

  padding: clamp(32px, 4vw, 65px) 0 55px;
}

.application__content {
  width: 100%;
  max-width: 710px;
  margin: 0 auto;
}

/* ==========================================================
   WELCOME SLIDESHOW
========================================================== */

.welcome-screen {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: visible;
}

.welcome-screen__topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;

  margin-bottom: clamp(22px, 3.5vw, 38px);
}

.welcome-screen__topline > span:first-child {
  color: var(--teal);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
}

.welcome-screen__counter {
  display: flex;
  align-items: center;
  gap: 10px;

  color: var(--wine);
  font: 400 17px Georgia, serif;
  letter-spacing: .06em;
  direction: ltr;
}

.welcome-screen__counter > span:nth-child(2) {
  color: #bba69b;
}

/* Slide stage */

.slideshow {
  display: grid;
  width: 100%;
  align-items: start;
}

.slide {
  position: relative;
  grid-area: 1 / 1;
  min-width: 0;

  visibility: hidden;
  opacity: 0;
  pointer-events: none;

  transform: translateX(34px) scale(.985);
  filter: blur(6px);

  transition:
    opacity .52s ease,
    transform .72s var(--ease),
    filter .6s ease,
    visibility 0s linear .55s;
}

.slide.is-active {
  z-index: 2;

  visibility: visible;
  opacity: 1;
  pointer-events: auto;

  transform: none;
  filter: none;

  transition:
    opacity .62s ease,
    transform .75s var(--ease),
    filter .65s ease,
    visibility 0s;
}

.slide.is-leaving {
  transform: translateX(-25px) scale(.985);
}

.slide__inner {
  width: 100%;
  padding-bottom: 10px;
}

.slide__eyebrow {
  display: block;
  margin-bottom: 19px;

  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1.7;
}

.slide__headline {
  max-width: 690px;

  color: var(--wine);

  font: 400 clamp(46px, 5.1vw, 79px)/1.06 var(--display);
  letter-spacing: -.065em;
  text-wrap: balance;
}

.slide__headline--medium {
  font-size: clamp(40px, 4.2vw, 65px);
}

.slide__description {
  max-width: 515px;
  margin-top: 24px;

  color: #796b66;
  font-size: 16px;
  line-height: 1.85;
}

.slide__description--compact {
  margin-top: 14px;
  margin-bottom: 25px;

  font-size: 14px;
  line-height: 1.7;
}

/* Intro ornaments */

.slide__ornament {
  display: flex;
  align-items: center;
  gap: 9px;

  width: min(225px, 50%);
  margin-top: 33px;
}

.slide__ornament span {
  flex: 0 0 9px;
  width: 9px;
  height: 9px;

  border: 1px solid var(--teal);
  border-radius: 50%;
}

.slide__ornament i {
  display: block;
  width: 100%;
  height: 1px;

  background: linear-gradient(
    90deg,
    var(--teal),
    rgba(30, 76, 77, .07)
  );
}

.slide__signature {
  display: flex;
  align-items: center;
  gap: 12px;

  margin-top: clamp(38px, 5vw, 62px);

  color: #8c796f;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .17em;
}

.slide__signature i {
  width: 28px;
  height: 1px;
  background: var(--gold);
}

/* ==========================================================
   SLIDE 2 — THREE REASONS
========================================================== */

.reasons {
  border-top: 1px solid var(--line);
}

.reason {
  display: grid;
  grid-template-columns:
    42px
    minmax(0, 1fr)
    30px;

  align-items: center;
  gap: 18px;

  padding: 22px 4px;
  border-bottom: 1px solid var(--line);

  transition:
    background .3s,
    padding .4s var(--ease);
}

.reason:hover {
  padding-inline: 13px;
  background: rgba(255, 255, 255, .4);
}

.reason__number {
  color: #b19b90;
  font: 400 21px Georgia, serif;
  direction: ltr;
}

.reason__copy h3 {
  color: var(--wine);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
}

.reason__copy p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.reason > svg {
  width: 26px;
  height: 26px;

  fill: none;
  stroke: var(--teal);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================
   SLIDE 3 — HOW IT WORKS
========================================================== */

.journey {
  position: relative;
  display: grid;
  gap: 25px;

  margin-top: 30px;
}

.journey::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 20px;
  inset-inline-start: 20px;

  width: 1px;
  background: #cbb8ab;
}

.journey__item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.journey__number {
  position: relative;
  z-index: 1;

  display: grid;
  place-items: center;

  flex: 0 0 41px;
  width: 41px;
  height: 41px;

  border-radius: 50%;
  background: var(--wine);
  color: var(--cream);

  font-size: 11px;
  direction: ltr;

  transition:
    background .3s,
    transform .5s var(--spring);
}

.journey__item:hover .journey__number {
  background: var(--teal);
  transform: scale(1.1);
}

.journey__item h3 {
  padding-top: 3px;
  color: var(--wine);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.journey__item p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.slide__final-note {
  display: flex;
  align-items: center;
  gap: 11px;

  margin-top: 36px;
  padding-top: 21px;

  border-top: 1px solid var(--line);

  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
}

.slide__final-note > span:first-child {
  font-size: 20px;
}

/* ==========================================================
   SLIDESHOW NAVIGATION
========================================================== */

.slideshow-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  margin-top: clamp(28px, 4vw, 48px);
}

.slideshow-dots {
  display: flex;
  align-items: center;
  gap: 9px;
}

.slideshow-dot {
  display: grid;
  place-items: center;

  width: 30px;
  height: 30px;
  padding: 0;

  border: 0;
  background: transparent;
}

.slideshow-dot span {
  display: block;
  width: 7px;
  height: 7px;

  border-radius: 50%;
  background: #c0aea4;

  transition:
    width .4s var(--ease),
    background .3s;
}

.slideshow-dot.is-active span {
  width: 27px;
  border-radius: 8px;
  background: var(--wine);
}

.slideshow-arrows {
  display: flex;
  align-items: center;
  gap: 9px;
}

.slide-arrow {
  display: grid;
  place-items: center;

  width: 47px;
  height: 47px;
  padding: 0;

  border: 1px solid #cdbcb1;
  border-radius: 50%;

  background: transparent;
  color: var(--wine);

  transition:
    background .3s,
    color .3s,
    border-color .3s,
    transform .45s var(--spring);
}

.slide-arrow svg {
  width: 21px;
  height: 21px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.slide-arrow:hover:not(:disabled) {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--cream);
  transform: scale(1.07);
}

.slide-arrow--next {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--cream);
}

.slide-arrow--next:hover:not(:disabled) {
  background: var(--teal);
  border-color: var(--teal);
}

.slide-arrow:disabled {
  opacity: .3;
  cursor: not-allowed;
}

/* Auto-advance indicator */

.slideshow-timer {
  height: 2px;
  margin-top: 22px;

  background: rgba(57, 0, 7, .12);
  overflow: hidden;
}

.slideshow-timer > span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--teal);
}

.slideshow-timer.is-running > span {
  animation: slideshowProgress 7s linear both;
}

@keyframes slideshowProgress {
  from { width: 0%; }
  to { width: 100%; }
}

/* Slide entrance choreography */

.slide.is-active .slide__eyebrow {
  animation: slideRise .58s .06s both;
}

.slide.is-active .slide__headline {
  animation: slideRise .72s .13s both;
}

.slide.is-active .slide__description {
  animation: slideRise .68s .24s both;
}

.slide.is-active .slide__signature,
.slide.is-active .slide__final-note {
  animation: slideRise .68s .38s both;
}

.slide.is-active .reason:nth-child(1),
.slide.is-active .journey__item:nth-child(1) {
  animation: slideRise .57s .27s both;
}

.slide.is-active .reason:nth-child(2),
.slide.is-active .journey__item:nth-child(2) {
  animation: slideRise .57s .36s both;
}

.slide.is-active .reason:nth-child(3),
.slide.is-active .journey__item:nth-child(3) {
  animation: slideRise .57s .45s both;
}

@keyframes slideRise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================
   FIVE-STEP APPLICATION
========================================================== */

.form-step {
  width: 100%;
  height: auto;
  max-height: none;
  overflow: visible;
}

.form-heading {
  color: var(--wine);

  font: 400 clamp(39px, 3.8vw, 60px)/1.08 var(--display);
  letter-spacing: -.05em;
  text-wrap: balance;
}

.step-intro > p {
  max-width: 545px;
  margin: 16px 0 32px;

  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;

  height: auto;
  overflow: visible;
}

.field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.field--full {
  grid-column: 1 / -1;
}

.field > label,
.choices-fieldset > legend {
  display: block;
  margin-bottom: 10px;

  color: #473b39;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}

.required {
  color: var(--wine);
}

.optional {
  margin-inline-start: 6px;
  color: #a18d85;
  font-size: 10px;
  letter-spacing: .05em;
}

/* Inputs */

.field input:not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 54px;

  padding: 14px 16px;

  border: 1px solid #d8c9be;
  border-radius: 2px;
  outline: none;

  background: rgba(255, 252, 248, .74);
  color: var(--ink);

  font-size: 15px;

  transition:
    border-color .25s,
    box-shadow .3s,
    background .3s;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a99a91;
  opacity: 1;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  background: var(--paper);
  border-color: #b49b8e;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  background: var(--paper);
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(30, 76, 77, .08);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.7;
}

/* Native selects */

.select-wrapper,
.country-select {
  position: relative;
}

.select-wrapper::after,
.country-select::after {
  content: "";
  position: absolute;
  top: 19px;
  inset-inline-end: 19px;

  width: 9px;
  height: 9px;

  border-inline-end: 1.5px solid var(--wine);
  border-bottom: 1.5px solid var(--wine);

  transform: rotate(45deg);
  pointer-events: none;
}

.field select {
  appearance: none;
  padding-inline-end: 46px;
  cursor: pointer;
}

/* Country flag inside select */

.country-select__flag {
  position: absolute;
  top: 50%;
  inset-inline-start: 15px;
  z-index: 1;

  display: none;
  align-items: center;
  justify-content: center;

  width: 27px;
  height: 23px;

  transform: translateY(-50%);
  pointer-events: none;
}

.country-select.has-flag .country-select__flag {
  display: flex;
}

.country-select.has-flag select {
  padding-inline-start: 55px;
}

.country-select__flag img {
  width: 23px;
  height: 16px;
  object-fit: contain;
}

/* Hints and errors */

.field-hint {
  margin-top: 8px;

  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.field-error {
  display: block;
  margin-top: 7px;

  color: var(--error);
  font-size: 12px;
  line-height: 1.5;
}

.field [aria-invalid="true"] {
  border-color: var(--error) !important;
}

.choices[aria-invalid="true"] {
  outline: 1px solid var(--error);
  outline-offset: 4px;
}

/* ==========================================================
   SELECTION CARDS
========================================================== */

.choices-fieldset {
  min-width: 0;
  border: 0;
}

.choices-fieldset legend {
  padding: 0;
}

.choices-hint {
  margin-bottom: 17px;

  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.choices {
  display: grid;
  gap: 11px;
}

.choices--markets {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choices--products {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-card {
  position: relative;

  display: flex;
  align-items: center;
  gap: 11px;

  min-width: 0;
  min-height: 65px;

  padding: 11px 13px;

  border: 1px solid #d9cbc1;
  border-radius: 2px;

  background: rgba(255, 251, 247, .7);

  cursor: pointer;
  user-select: none;

  transition:
    border-color .3s,
    background .3s,
    box-shadow .3s,
    transform .45s var(--spring);
}

.choice-card:hover {
  border-color: #b8c5bc;
  background: var(--paper);
  transform: translateY(-2px);
  box-shadow: 0 7px 17px rgba(57, 0, 7, .035);
}

.choice-card:has(input:checked) {
  border-color: var(--teal);
  background: #e9f0ec;
}

.choice-card:has(input:focus-visible) {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.choice-card__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice-card__visual {
  display: grid;
  place-items: center;

  flex: 0 0 37px;
  width: 37px;
  height: 37px;

  border: 1px solid #e5dad1;
  border-radius: 50%;

  background: var(--paper);
  overflow: hidden;
}

/* Flags smaller than the surrounding circle */

.choice-card__flag {
  display: block;
  width: 20px;
  height: 13px;
  object-fit: contain;
}

.choice-card__fallback {
  display: none;
  color: var(--wine);
  font-size: 10px;
  font-weight: 700;
  direction: ltr;
}

.choice-card__visual--icon {
  border-radius: 8px;
  background: #f1e6df;
  color: var(--wine);
}

.choice-card__visual svg {
  width: 21px;
  height: 21px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.choice-card:has(input:checked) .choice-card__visual--icon {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}

.choice-card__label {
  flex: 1;
  min-width: 0;

  color: #453b39;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.choice-card:has(input:checked) .choice-card__label {
  color: var(--teal);
  font-weight: 600;
}

.choice-card__check {
  display: grid;
  place-items: center;

  flex: 0 0 20px;
  width: 20px;
  height: 20px;

  margin-inline-start: auto;

  border: 1.5px solid #c7b7ac;
  border-radius: 50%;

  color: transparent;
}

.choice-card__check svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.8;
}

.choice-card__input:checked ~ .choice-card__check {
  background: var(--teal);
  color: white;
  border-color: var(--teal);

  animation: checkBounce .4s var(--spring);
}

.choice-card.is-tapped {
  animation: cardTap .42s var(--spring);
}

@keyframes checkBounce {
  from { transform: scale(.55); }
  60% { transform: scale(1.18); }
  to { transform: scale(1); }
}

@keyframes cardTap {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(.975); }
  75% { transform: scale(1.015); }
}

/* ==========================================================
   REGISTRATION NOTE
========================================================== */

.information-note {
  grid-column: 1 / -1;

  display: flex;
  align-items: flex-start;
  gap: 14px;

  padding: 20px 22px;

  border-inline-start: 3px solid var(--teal);

  background: var(--teal-pale);
  color: var(--teal);
}

.information-note svg {
  flex-shrink: 0;
}

.information-note p {
  font-size: 13px;
  line-height: 1.8;
}

/* ==========================================================
   REVIEW
========================================================== */

.review-list {
  height: auto;
  margin-top: 26px;
  border-top: 1px solid var(--line);
  overflow: visible;
}

.review-group {
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}

.review-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  margin-bottom: 11px;
}

.review-group__header strong {
  color: var(--wine);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.review-edit {
  padding: 5px;
  border: 0;

  background: transparent;
  color: var(--teal);

  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.review-row {
  display: grid;
  grid-template-columns: 135px minmax(0, 1fr);
  gap: 12px;

  padding: 6px 0;

  font-size: 13px;
  line-height: 1.7;
}

.review-row dt {
  color: var(--muted);
}

.review-row dd {
  overflow-wrap: anywhere;
}

/* ==========================================================
   CONSENT
========================================================== */

.consent-wrap {
  margin-top: 27px;
}

.consent {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  cursor: pointer;
}

.consent input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.consent__box {
  position: relative;

  flex: 0 0 21px;
  width: 21px;
  height: 21px;

  margin-top: 2px;

  border: 1.5px solid #b5a49a;
  border-radius: 3px;

  background: var(--paper);
}

.consent input:checked + .consent__box {
  border-color: var(--teal);
  background: var(--teal);
}

.consent input:checked + .consent__box::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 7px;

  width: 5px;
  height: 11px;

  border-right: 2px solid white;
  border-bottom: 2px solid white;

  transform: rotate(45deg);
}

.consent input:focus-visible + .consent__box {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.consent__copy {
  font-size: 13px;
  line-height: 1.75;
}

.consent__copy a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================
   FORM ALERT
========================================================== */

.form-alert {
  margin-top: 22px;
  padding: 16px 18px;

  border-inline-start: 3px solid var(--error);

  background: #f3e2de;
  color: #852d35;

  font-size: 13px;
  line-height: 1.7;
}

.form-alert ul {
  margin-top: 7px;
  padding-inline-start: 19px;
}

/* ==========================================================
   APPLICATION FOOTER — NO FIXED FRAME
========================================================== */

.application__footer {
  position: relative;
  inset: auto;

  flex-shrink: 0;

  margin-top: 0;
  padding-top: 21px;
  padding-bottom: 8px;

  border-top: 1px solid var(--line);
  background: transparent;
}

.progress__meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;

  margin-bottom: 12px;

  color: #8a7a72;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .07em;
}

.progress__track {
  height: 3px;
  background: #ddcfc5;
  direction: ltr;
}

.progress__fill {
  position: relative;
  display: block;

  width: 20%;
  height: 100%;

  background: var(--teal);

  transition: width .7s var(--ease);
}

.progress__fill::after {
  content: "";
  position: absolute;
  top: -2px;
  right: 0;

  width: 7px;
  height: 7px;
  border-radius: 50%;

  background: var(--teal);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  margin-top: 17px;
}

.form-actions__note {
  color: var(--muted);
  font-size: 12px;
}

/* Buttons */

.button {
  position: relative;
  isolation: isolate;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;

  min-height: 52px;
  padding: 0 25px;

  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 0;

  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  white-space: nowrap;

  transition:
    transform .4s var(--spring),
    box-shadow .3s,
    color .3s;
}

.button--primary {
  margin-inline-start: auto;
  background: var(--wine);
  color: var(--cream);
}

.button--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;

  background: var(--teal);

  transform: translateY(102%);
  transition: transform .55s var(--ease);
}

.button--primary:hover:not(:disabled)::before {
  transform: translateY(0);
}

.button--primary:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 11px 21px rgba(57, 0, 7, .12);
}

.button__arrow {
  font-size: 18px;
  font-weight: 400;

  transition: transform .4s var(--spring);
}

.button--primary:hover .button__arrow {
  transform: translate(3px, -3px);
}

.button--back {
  padding-inline-start: 0;
  background: transparent;
  color: var(--wine);
}

.button--back:hover {
  color: var(--teal);
}

.button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

/* ==========================================================
   SUCCESS SCREEN
========================================================== */

.success-screen {
  height: auto;
  padding: 38px 0;
  overflow: visible;
}

.success-screen__icon {
  display: grid;
  place-items: center;

  width: 74px;
  height: 74px;
  margin-bottom: 30px;

  border: 1px solid var(--teal);
  border-radius: 50%;

  color: var(--teal);
  background: var(--teal-pale);

  animation: checkBounce .65s var(--spring);
}

.success-screen__icon svg {
  width: 35px;
  height: 35px;
}

.success-screen p {
  max-width: 500px;
  margin-top: 20px;

  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.success-screen__link {
  margin-top: 29px;
}

/* ==========================================================
   STEP ANIMATIONS
========================================================== */

.form-step.enter-forward {
  animation: formForward .55s var(--spring) both;
}

.form-step.enter-back {
  animation: formBack .5s var(--spring) both;
}

@keyframes formForward {
  from {
    opacity: 0;
    transform: translateX(25px) scale(.985);
  }

  65% {
    opacity: 1;
    transform: translateX(-3px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes formBack {
  from {
    opacity: 0;
    transform: translateX(-25px) scale(.985);
  }

  65% {
    opacity: 1;
    transform: translateX(3px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Independent staggered field reveals */

.form-reveal {
  opacity: 0;
  transform: translateY(17px);

  transition:
    opacity .6s var(--ease),
    transform .7s var(--spring);

  transition-delay: var(--delay, 0ms);
}

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

/* ==========================================================
   HONEYPOT
========================================================== */

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* ==========================================================
   ARABIC / RTL
========================================================== */

html[lang="ar"] body {
  font-family: var(--arabic);
}

html[lang="ar"] .sidebar__headline,
html[lang="ar"] .slide__headline,
html[lang="ar"] .form-heading,
html[lang="ar"] .submission-loader h2 {
  font-family: var(--arabic);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
}

html[lang="ar"] .sidebar__headline {
  font-size: clamp(33px, 3vw, 50px);
}

html[lang="ar"] .slide__headline {
  font-size: clamp(36px, 4.2vw, 60px);
}

html[lang="ar"] .slide__headline--medium {
  font-size: clamp(33px, 3.5vw, 50px);
}

html[lang="ar"] .form-heading {
  font-size: clamp(32px, 3.2vw, 49px);
}

html[lang="ar"] .eyebrow,
html[lang="ar"] .slide__eyebrow,
html[lang="ar"] .welcome-screen__topline > span:first-child,
html[lang="ar"] .slide__signature,
html[lang="ar"] .slide__final-note {
  letter-spacing: 0;
}

html[lang="ar"] .slide__ornament i {
  background: linear-gradient(
    270deg,
    var(--teal),
    rgba(30, 76, 77, .07)
  );
}

html[lang="ar"] .slide {
  transform: translateX(-34px) scale(.985);
}

html[lang="ar"] .slide.is-active {
  transform: none;
}

html[lang="ar"] .slide.is-leaving {
  transform: translateX(25px) scale(.985);
}

html[lang="ar"] .slide-arrow svg {
  transform: rotate(180deg);
}

html[lang="ar"] .step-navigation__item.is-active {
  transform: translateX(-4px);
}

html[lang="ar"] .sidebar__divider {
  background: linear-gradient(
    270deg,
    #be9c93,
    rgba(190, 156, 147, .2) 75%,
    transparent
  );
}

html[lang="ar"] .form-step.enter-forward {
  animation-name: formForwardRTL;
}

html[lang="ar"] .form-step.enter-back {
  animation-name: formBackRTL;
}

@keyframes formForwardRTL {
  from {
    opacity: 0;
    transform: translateX(-25px) scale(.985);
  }

  65% {
    opacity: 1;
    transform: translateX(3px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes formBackRTL {
  from {
    opacity: 0;
    transform: translateX(25px) scale(.985);
  }

  65% {
    opacity: 1;
    transform: translateX(-3px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

html[lang="ar"] .back-arrow {
  display: inline-block;
  transform: rotate(180deg);
}

html[lang="ar"] .button {
  font-size: 13px;
  letter-spacing: 0;
}

html[lang="ar"] .consent input:checked + .consent__box::after {
  left: 7px;
  transform: rotate(45deg);
}

#email,
#phone,
#website {
  direction: ltr;
  text-align: left;
}

/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1100px) {
  .app {
    grid-template-columns:
      minmax(235px, 30%)
      minmax(0, 1fr);
  }

  .sidebar__inner {
    padding: 25px;
  }

  .sidebar__headline {
    font-size: 42px;
  }

  .sidebar__logo img {
    width: 73px;
  }

  .application__inner {
    padding: 30px 32px;
  }

  .application__viewport {
    padding: 40px 0 49px;
  }

  .choices--products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .slide__headline {
    font-size: clamp(43px, 4.7vw, 65px);
  }

  .slide__headline--medium {
    font-size: clamp(38px, 4vw, 54px);
  }
}

/* ==========================================================
   MOBILE — FULL-PAGE SCROLL
========================================================== */

@media (max-width: 760px) {
  html,
  body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .app {
    display: block;

    width: 100%;
    height: auto;
    min-height: 100dvh;

    overflow: visible;
  }

  .sidebar {
    display: none;
  }

  .application {
    width: 100%;
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .application__inner {
    display: flex;
    flex-direction: column;

    width: 100%;
    height: auto;
    min-height: 100dvh;

    padding: 17px 21px 29px;
  }

  .application__header {
    min-height: 66px;
    padding-bottom: 11px;
  }

  .mobile-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
  }

  .mobile-logo img {
    display: block;
    width: 46px;
    height: auto;
    object-fit: contain;
  }

  .application__eyebrow {
    display: none;
  }

  .header-actions {
    gap: 12px;
  }

  .application__viewport {
    flex: 1 0 auto;

    height: auto;
    min-height: 0;
    overflow: visible;

    padding: 31px 0 43px;
  }

  .application__content {
    width: 100%;
    max-width: 100%;
  }

  /* Slides */

  .welcome-screen__topline {
    margin-bottom: 23px;
  }

  .slide__headline {
    font-size: clamp(43px, 10vw, 63px);
    line-height: 1.1;
  }

  .slide__headline--medium {
    font-size: clamp(38px, 9vw, 53px);
  }

  .slide__description {
    font-size: 14px;
    line-height: 1.75;
  }

  .slide {
    filter: none;
    transform: translateY(12px);

    transition:
      opacity .4s,
      transform .45s var(--ease),
      visibility 0s linear .45s;
  }

  .slide.is-active {
    transform: none;

    transition:
      opacity .4s,
      transform .45s var(--ease),
      visibility 0s;
  }

  .slide.is-leaving {
    transform: translateY(-9px);
  }

  .reason {
    grid-template-columns:
      30px
      minmax(0, 1fr)
      24px;

    gap: 11px;
    padding: 15px 0;
  }

  .reason__number {
    font-size: 17px;
  }

  .reason__copy h3 {
    font-size: 14px;
  }

  .reason__copy p {
    font-size: 12px;
  }

  .reason svg {
    width: 22px;
    height: 22px;
  }

  .journey {
    gap: 20px;
  }

  .journey__item h3 {
    font-size: 14px;
  }

  .journey__item p {
    font-size: 12px;
  }

  .slide__signature {
    margin-top: 36px;
  }

  .slideshow-nav {
    margin-top: 31px;
  }

  .slide-arrow {
    width: 44px;
    height: 44px;
  }

  /* Form */

  .form-heading {
    font-size: clamp(37px, 8.8vw, 50px);
  }

  .step-intro > p {
    font-size: 14px;
  }

  .field input:not([type="checkbox"]),
  .field select,
  .field textarea {
    font-size: 16px;
  }

  .choice-card:hover {
    transform: none;
  }

  .button--primary:hover:not(:disabled) {
    transform: none;
  }

  .form-reveal {
    transform: translateY(11px);
    transition-duration: .45s;
  }

  .application__footer {
    padding-top: 18px;
    padding-bottom: 0;
  }

  html[lang="ar"] .slide__headline {
    font-size: clamp(33px, 8vw, 47px);
  }

  html[lang="ar"] .slide__headline--medium {
    font-size: clamp(31px, 7.3vw, 43px);
  }
}

/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 520px) {
  .application__inner {
    padding: 15px 17px 27px;
  }

  .application__viewport {
    padding: 28px 0 39px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 19px;
  }

  .field--full {
    grid-column: auto;
  }

  .choices--markets,
  .choices--products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .choice-card {
    min-height: 59px;
    gap: 8px;
    padding: 9px;
  }

  .choice-card__visual {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
  }

  .choice-card__flag {
    width: 19px;
    height: 12px;
  }

  .choice-card__visual svg {
    width: 18px;
    height: 18px;
  }

  .choice-card__label {
    font-size: 12px;
  }

  .choice-card__check {
    flex-basis: 18px;
    width: 18px;
    height: 18px;
  }

  .review-row {
    grid-template-columns:
      105px
      minmax(0, 1fr);
  }

  .form-actions__note {
    display: none;
  }

  .button {
    min-height: 48px;
    gap: 12px;
    padding-inline: 16px;
  }

  .slideshow-nav {
    margin-top: 26px;
  }
}

/* ==========================================================
   EXTRA SMALL MOBILE
========================================================== */

@media (max-width: 360px) {
  .application__inner {
    padding-inline: 12px;
  }

  .slide__headline {
    font-size: 39px;
  }

  .slide__headline--medium {
    font-size: 35px;
  }

  .choice-card {
    gap: 6px;
    padding: 8px 6px;
  }

  .choice-card__visual {
    flex-basis: 29px;
    width: 29px;
    height: 29px;
  }

  .choice-card__flag {
    width: 18px;
    height: 12px;
  }

  .choice-card__label {
    font-size: 11px;
  }

  .choice-card__check {
    flex-basis: 17px;
    width: 17px;
    height: 17px;
  }

  .language-switch__button {
    min-width: 32px;
    padding-inline: 5px;
  }

  .button {
    font-size: 10px;
    padding-inline: 11px;
  }
}

/* ==========================================================
   SHORT DESKTOP SCREENS
   No fixed-height or clipped content
========================================================== */

@media (min-width: 761px) and (max-height: 760px) {
  .sidebar__inner {
    padding-block: 16px;
  }

  .sidebar__logo img {
    width: 65px;
  }

  .sidebar__headline {
    font-size: 38px;
    margin-bottom: 12px;
  }

  .sidebar__description {
    font-size: 12px;
  }

  .sidebar__divider {
    margin: 15px 0;
  }

  .step-navigation {
    gap: 9px;
  }

  .application__inner {
    height: auto;
    min-height: 100dvh;
    padding-block: 25px;
  }

  .application__viewport {
    height: auto;
    padding-top: 32px;
    overflow: visible;
  }

  .welcome-screen__topline {
    margin-bottom: 22px;
  }

  .slide__headline {
    font-size: 49px;
  }

  .slide__headline--medium {
    font-size: 42px;
  }

  .slide__description {
    margin-top: 15px;
    line-height: 1.7;
  }

  .slide__signature {
    margin-top: 30px;
  }

  .reason {
    padding-block: 16px;
  }

  .journey {
    gap: 19px;
  }

  .slideshow-nav {
    margin-top: 26px;
  }
}

/* ==========================================================
   ACCESSIBILITY
========================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .slide,
  .slide.is-active {
    filter: none !important;
    transform: none !important;
  }

  .form-reveal,
  .form-reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
  }

  .slideshow-timer {
    display: none;
  }
}
