@font-face {
  font-family: "beIN";
  src: url("../font/bein-normal.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "beIN";
  src: url("../font/bein-black.woff2") format("woff2");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #7152a2;
  --primary-hover: #62458f;
  --primary-dark: #302044;
  --deep: #181020;
  --surface: #ffffff;
  --surface-soft: #fbfafc;
  --purple-soft: #eee9f6;
  --border: #dfd9e7;
  --text: #241c2e;
  --muted: #635b6d;
  --success: #18794e;
  --danger: #b42318;
  --danger-soft: #fff0ee;
  --shadow: 0 24px 70px rgba(48, 32, 68, 0.14);
  --radius-control: 12px;
  --radius-card: 28px;
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--surface-soft);
  font-family: "beIN", Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

a {
  color: inherit;
}

svg {
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 50;
  min-height: 44px;
  padding: 9px 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  outline: 3px solid #cbbce2;
  outline-offset: 2px;
  transform: translateY(0);
}

.landing-page {
  min-height: 100vh;
  min-height: 100dvh;
}

.lead-shell {
  min-height: 100vh;
  min-height: 100dvh;
}

.brand-panel {
  display: none;
}

.form-panel {
  min-height: 100vh;
  padding: 20px 16px 24px;
  background:
    radial-gradient(circle at 94% 8%, rgba(113, 82, 162, 0.11), transparent 26rem),
    var(--surface-soft);
}

.mobile-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.mobile-brand img {
  width: 132px;
  height: auto;
}

.form-card {
  width: min(100%, 680px);
  margin: 0 auto;
  padding: 24px 18px;
  border: 1px solid rgba(223, 217, 231, 0.86);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 14px 45px rgba(48, 32, 68, 0.1);
}

.form-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.form-heading h2,
.brand-copy h1,
.success-card h1 {
  margin: 0;
  font-weight: 900;
  line-height: 1.25;
}

.form-heading h2 {
  font-size: clamp(1.55rem, 6vw, 2rem);
}

.form-heading h2:focus {
  outline: none;
}

.privacy-note svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.progress-wrap {
  margin-bottom: 26px;
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.progress-copy span:last-child {
  color: var(--primary-dark);
  font-weight: 700;
}

.progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--purple-soft);
}

.progress-track span {
  display: block;
  width: 50%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #9277bb);
  transition: width 220ms ease;
}

.progress-track[data-step="2"] span {
  width: 100%;
}

.form-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 20px;
  padding: 12px;
  border: 1px solid #f2bbb5;
  border-radius: var(--radius-control);
  color: #7a271a;
  background: var(--danger-soft);
  font-size: 0.86rem;
}

.form-alert > span {
  display: grid;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--danger);
  font-weight: 900;
  line-height: 1;
}

.form-alert p {
  margin: 0;
}

.form-step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-step[hidden] {
  display: none;
}

.field-grid {
  display: grid;
  gap: 18px;
}

.field-group {
  min-width: 0;
  margin-bottom: 19px;
}

.field-grid .field-group {
  margin-bottom: 0;
}

.field-group label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.field-group label .optional-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 2px 9px;
  border: 1px solid #a9d9b8;
  border-radius: 999px;
  color: #176536;
  background: #eaf8ef;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

.input-wrap,
.select-wrap {
  position: relative;
}

.input-wrap > svg {
  position: absolute;
  top: 50%;
  right: 14px;
  z-index: 1;
  width: 20px;
  height: 20px;
  pointer-events: none;
  fill: none;
  stroke: #81768d;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(-50%);
}

.select-wrap > svg {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 19px;
  height: 19px;
  pointer-events: none;
  fill: none;
  stroke: #81768d;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(-50%);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  outline: none;
  background: #fff;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

input,
select {
  min-height: 50px;
}

input {
  padding: 9px 44px 9px 13px;
}

input[dir="ltr"] {
  padding-right: 44px;
  text-align: left;
}

select {
  padding: 9px 14px 9px 44px;
  appearance: none;
  cursor: pointer;
}

textarea {
  min-height: 100px;
  padding: 12px 14px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #948b9d;
  opacity: 1;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #bfb3cc;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(113, 82, 162, 0.14);
}

.input-wrap:focus-within > svg,
.select-wrap:focus-within > svg {
  stroke: var(--primary);
}

.input-wrap.is-invalid input,
.select-wrap.is-invalid select,
textarea[aria-invalid="true"] {
  border-color: var(--danger);
  background: #fffafa;
}

.field-help,
.field-error {
  min-height: 1.2em;
  margin: 5px 2px 0;
  font-size: 0.74rem;
  line-height: 1.45;
}

.field-help {
  color: var(--muted);
}

.field-error {
  color: var(--danger);
}

.field-help + .field-error:empty {
  display: none;
}

.textarea-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.textarea-meta > span {
  flex: 0 0 auto;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.72rem;
}

.textarea-meta b {
  font-weight: 400;
}

.primary-button,
.secondary-button,
.whatsapp-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: var(--radius-control);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 120ms ease;
}

.primary-button {
  width: 100%;
  margin-top: 7px;
  padding: 10px 18px;
  border: 1px solid var(--primary);
  color: #fff;
  background: var(--primary);
  box-shadow: 0 10px 24px rgba(113, 82, 162, 0.22);
}

.primary-button:hover {
  border-color: var(--primary-hover);
  background: var(--primary-hover);
  box-shadow: 0 12px 28px rgba(113, 82, 162, 0.28);
}

.primary-button:active,
.secondary-button:active,
.whatsapp-button:active {
  transform: scale(0.985);
}

.primary-button:focus-visible,
.secondary-button:focus-visible,
.whatsapp-button:focus-visible,
.back-link:focus-visible,
.brand-logo-link:focus-visible,
.privacy-note a:focus-visible {
  outline: 3px solid #aa8ed1;
  outline-offset: 3px;
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  box-shadow: none;
}

.primary-button.is-loading:disabled {
  cursor: wait;
  opacity: 0.78;
}

.primary-button svg,
.secondary-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-actions {
  display: grid;
  grid-template-columns: minmax(98px, 0.36fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.form-actions .primary-button {
  margin: 0;
}

.secondary-button {
  padding: 10px 14px;
  border: 1px solid var(--border);
  color: var(--primary-dark);
  background: #fff;
}

.secondary-button:hover {
  border-color: #bcb0c9;
  background: var(--surface-soft);
}

.button-spinner {
  display: none;
  width: 19px;
  height: 19px;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.primary-button.is-loading .button-spinner {
  display: block;
}

.primary-button.is-loading [data-submit-icon] {
  display: none;
}

.submit-status {
  min-height: 1.45em;
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
}

.submit-status.is-ready {
  color: #23663c;
  font-weight: 700;
}

.honeypot {
  position: fixed !important;
  top: -10000px !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid #eeeaf2;
  color: var(--muted);
  font-size: 0.72rem;
}

.privacy-note svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--success);
}

.privacy-note a {
  color: var(--primary-dark);
  font-weight: 700;
}

.form-footer {
  width: min(100%, 680px);
  margin: 15px auto 0;
  color: #756c7d;
  font-size: 0.68rem;
  text-align: center;
}

/* Unified vertical campaign layout */
.vertical-landing {
  min-height: 100vh;
  padding: 16px;
  background:
    radial-gradient(circle at 90% 4%, rgba(113, 82, 162, 0.13), transparent 26rem),
    #f7f5f9;
}

.campaign-intro,
.form-section,
.vertical-footer {
  width: min(100%, 820px);
  margin-inline: auto;
}

.campaign-intro {
  position: relative;
  overflow: hidden;
  padding: 28px 22px 32px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 20%, rgba(170, 142, 209, 0.3), transparent 17rem),
    linear-gradient(145deg, #302044, #4f3769);
  box-shadow: 0 20px 55px rgba(48, 32, 68, 0.2);
}

.intro-brand {
  margin-bottom: 28px;
}

.intro-brand img {
  width: 138px;
  height: auto;
}

.intro-eyebrow {
  margin: 0 0 4px;
  color: #d8c9eb;
  font-size: 0.78rem;
  font-weight: 700;
}

.intro-copy h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(1.7rem, 8vw, 2.65rem);
  font-weight: 900;
  line-height: 1.3;
}

.intro-copy > p:not(.intro-eyebrow) {
  max-width: 650px;
  margin: 9px 0 0;
  color: #eee9f3;
  font-size: 0.9rem;
}

.form-section {
  margin-top: 16px;
}

.form-section .form-card {
  width: 100%;
  max-width: none;
  margin: 0;
}

.form-section .field-grid {
  grid-template-columns: minmax(0, 1fr);
}

.form-section .field-span-2 {
  grid-column: auto;
}

.simple-heading {
  display: block;
}

.simple-heading > p:last-child {
  max-width: 550px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.single-step-form {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.single-submit {
  margin-top: 22px;
}

.vertical-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 14px;
  padding: 18px 8px 6px;
  color: #756c7d;
  font-size: 0.68rem;
  text-align: center;
}

.vertical-footer p {
  margin: 0;
}

.vertical-footer a {
  min-height: 32px;
  color: var(--primary-dark);
  font-family: Arial, sans-serif;
  font-weight: 700;
  line-height: 32px;
  text-decoration: none;
}

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

/* Submission confirmation */
.success-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--primary-dark);
}

.success-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  overflow: hidden;
  padding: 24px 16px;
  background:
    radial-gradient(circle at 15% 10%, rgba(203, 188, 226, 0.19), transparent 28rem),
    linear-gradient(145deg, var(--primary-dark), var(--deep));
}

.success-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("../brand/pattern.svg");
  background-position: center;
  background-size: 620px auto;
  pointer-events: none;
}

.success-card {
  position: relative;
  z-index: 1;
  width: min(100%, 600px);
  padding: 28px 20px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  text-align: center;
}

.success-card > img {
  width: 142px;
  height: auto;
  margin: 0 auto 18px;
}

.success-icon {
  display: grid;
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--success);
  box-shadow: 0 10px 25px rgba(24, 121, 78, 0.25);
}

.success-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-card h1 {
  font-size: clamp(1.8rem, 7vw, 2.5rem);
}

.success-card > p:not(.eyebrow) {
  max-width: 470px;
  margin: 10px auto 0;
  color: var(--muted);
}

.request-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0;
  padding: 13px 16px;
  border: 1px dashed #b7a6cb;
  border-radius: var(--radius-control);
  background: var(--purple-soft);
}

.request-code span {
  color: var(--muted);
  font-size: 0.82rem;
}

.request-code strong {
  color: var(--primary-dark);
  font-family: Arial, sans-serif;
  letter-spacing: 0.06em;
}

.next-steps {
  margin: 0 0 22px;
  text-align: right;
}

.next-steps h2 {
  margin: 0 0 11px;
  font-size: 1rem;
}

.next-steps ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.next-steps li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: 11px;
  background: var(--surface-soft);
}

.next-steps li > span {
  display: grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--primary);
  background: var(--purple-soft);
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
}

.next-steps p {
  display: grid;
  margin: 0;
  line-height: 1.35;
}

.next-steps strong {
  font-size: 0.82rem;
}

.next-steps small {
  color: var(--muted);
  font-size: 0.7rem;
}

.whatsapp-button {
  width: 100%;
  padding: 10px 18px;
  color: #fff;
  background: #176b43;
}

.whatsapp-button:hover {
  background: #125a38;
}

.whatsapp-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.back-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 10px;
  padding: 6px 12px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
}

@media (min-width: 600px) {
  .form-panel {
    padding: 40px 24px;
  }

  .form-card {
    padding: 34px;
    border-radius: var(--radius-card);
  }

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

  .field-span-2 {
    grid-column: span 2;
  }

  .success-card {
    padding: 38px 42px;
  }

  .vertical-landing {
    padding: 28px;
  }

  .campaign-intro {
    padding: 34px;
    border-radius: 30px;
  }

  .intro-brand {
    margin-bottom: 34px;
  }

  .intro-brand img {
    width: 160px;
  }

  .intro-copy > p:not(.intro-eyebrow) {
    font-size: 0.92rem;
  }

  .form-section {
    margin-top: 20px;
  }
}

@media (min-width: 1024px) {
  .lead-shell {
    display: grid;
    grid-template-columns: minmax(360px, 0.82fr) minmax(600px, 1.18fr);
  }

  .brand-panel {
    position: sticky;
    top: 0;
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    flex-direction: column;
    overflow: hidden;
    padding: clamp(36px, 5vw, 72px);
    color: #fff;
    background:
      radial-gradient(circle at 15% 20%, rgba(203, 188, 226, 0.2), transparent 24rem),
      linear-gradient(145deg, var(--primary-dark), var(--deep));
  }

  .brand-pattern {
    position: absolute;
    inset: auto -130px -80px auto;
    width: 600px;
    height: 520px;
    opacity: 0.08;
    background: url("../brand/pattern.svg") center / contain no-repeat;
    transform: rotate(-8deg);
    pointer-events: none;
  }

  .brand-logo-link {
    position: relative;
    z-index: 1;
    align-self: flex-start;
  }

  .brand-logo {
    width: 174px;
    height: auto;
  }

  .brand-copy {
    position: relative;
    z-index: 1;
    max-width: 580px;
    margin: auto 0 32px;
  }

  .brand-copy .eyebrow {
    color: #d8c9eb;
  }

  .brand-copy h1 {
    max-width: 560px;
    font-size: clamp(2.5rem, 4.3vw, 4.5rem);
  }

  .brand-copy > p:last-child {
    max-width: 520px;
    margin: 18px 0 0;
    color: #ded7e6;
    font-size: 1rem;
    line-height: 1.9;
  }

  .trust-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
  }

  .trust-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #eee9f4;
    font-size: 0.86rem;
  }

  .check-icon {
    display: grid;
    flex: 0 0 auto;
    width: 25px;
    height: 25px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    font-family: Arial, sans-serif;
    font-size: 0.72rem;
  }

  .brand-contact {
    position: relative;
    z-index: 1;
    margin: 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    color: #bfb4ca;
    font-size: 0.76rem;
  }

  .brand-contact a {
    margin-inline-start: 6px;
    color: #fff;
    font-family: Arial, sans-serif;
    font-weight: 700;
    text-decoration: none;
  }

  .form-panel {
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
    align-content: center;
    padding: 48px clamp(32px, 5vw, 78px);
  }

  .mobile-brand {
    display: none;
  }
}

@media (min-width: 1400px) {
  .lead-shell {
    grid-template-columns: minmax(480px, 0.95fr) minmax(680px, 1.05fr);
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
