/* ============================================================
   SIRA  |  waitlist.css
   Styles specific to waitlist.html
   ============================================================ */

/* ── Page body override ─────────────────────────────────── */
.wl-page-body {
  background: #F8FAFC;
}

/* ── Split layout ───────────────────────────────────────── */
.wl-split {
  display: flex;
  min-height: calc(100vh - 72px);
}

/* ── Left info panel ────────────────────────────────────── */
.wlp-info {
  width: 44%;
  flex-shrink: 0;
  background: linear-gradient(160deg, #0D1B2D 0%, #0A1628 55%, #111827 100%);
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  overflow: hidden;
  display: flex;
  align-items: flex-start;
}

.wlp-info-inner {
  padding: 56px 52px 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.wlp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(232, 25, 44, .15);
  color: #FF6B7A;
  border: 1px solid rgba(232, 25, 44, .30);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;
  margin-bottom: 24px;
  width: fit-content;
}

.wlp-headline {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.wlp-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, .55);
  line-height: 1.75;
  max-width: 340px;
  margin-bottom: 32px;
}

.wlp-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.wlp-perks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, .75);
  line-height: 1.5;
}

.wlp-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}
.wlp-check svg { width: 20px; height: 20px; }

.wlp-img-wrap {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  margin: 0 -52px;
  padding: 0 20px;
}

.wlp-img-wrap img {
  width: 100%;
  max-width: 380px;
  height: auto;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 -16px 48px rgba(0,0,0,.4));
}

/* ── Right form panel ───────────────────────────────────── */
.wlp-form-panel {
  flex: 1;
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 48px;
  min-height: calc(100vh - 72px);
}

.wlp-form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 44px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, .06);
}

.wlp-form-hdr {
  margin-bottom: 28px;
}
.wlp-form-hdr h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
}
.wlp-form-hdr p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
}

/* ── Tabs ───────────────────────────────────────────────── */
.wl-tabs {
  display: flex;
  gap: 8px;
  background: var(--light);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 28px;
}

.wl-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  border: none;
  border-radius: 7px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray);
  background: transparent;
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
  white-space: nowrap;
}
.wl-tab svg { width: 15px; height: 15px; flex-shrink: 0; }
.wl-tab.active {
  background: var(--white);
  color: var(--dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .10);
}

/* ── Form fields ────────────────────────────────────────── */
.wl-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.wl-form[hidden] { display: none; }

.wl-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.wl-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wl-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}
.wl-optional {
  font-weight: 400;
  color: var(--gray);
}

.wl-field input,
.wl-field select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--dark);
  background: var(--white);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
}

.wl-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.wl-field input:focus,
.wl-field select:focus {
  border-color: var(--dark);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, .07);
}

.wl-field input.input-error,
.wl-field select.input-error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(232, 25, 44, .08);
}

.wl-error {
  font-size: 12px;
  color: var(--red);
  margin: -4px 0 0;
  line-height: 1.5;
}
.wl-error[hidden] { display: none; }

.wl-submit {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 15px;
  margin-top: 4px;
}

/* Spinner */
.wl-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: wl-spin .6s linear infinite;
}
.wl-spinner[hidden] { display: none; }

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

.wl-legal {
  font-size: 11px;
  color: var(--gray);
  text-align: center;
  line-height: 1.6;
  margin-top: -4px;
}
.wl-legal a {
  color: var(--dark);
  text-decoration: underline;
}
.wl-legal a:hover { color: var(--red); }

/* ── Success state ──────────────────────────────────────── */
.wl-success {
  text-align: center;
  padding: 12px 0 8px;
}
.wl-success[hidden] { display: none; }

.wl-success-icon {
  width: 68px;
  height: 68px;
  background: #D1FAE5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #059669;
}
.wl-success-icon svg { width: 34px; height: 34px; }

.wl-success h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
}
.wl-success p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Responsive  ≤ 1024px ───────────────────────────────── */
@media (max-width: 1024px) {
  .wlp-info      { width: 40%; }
  .wlp-info-inner { padding: 44px 36px 0; }
  .wlp-headline  { font-size: 30px; }
  .wlp-form-panel { padding: 44px 32px; }
  .wlp-form-card  { padding: 36px 32px; }
}

/* ── Responsive  ≤ 768px ────────────────────────────────── */
@media (max-width: 768px) {
  .wl-split {
    flex-direction: column;
  }

  /* Form panel comes first on mobile */
  .wlp-form-panel {
    order: -1;
    padding: 36px 20px;
    min-height: unset;
  }

  .wlp-info {
    position: static;
    width: 100%;
    height: auto;
  }

  .wlp-info-inner {
    padding: 44px 24px 36px;
    height: auto;
  }

  .wlp-img-wrap {
    display: none; /* hide phone image on mobile info panel */
  }

  .wlp-headline { font-size: 26px; }

  .wlp-form-card {
    padding: 28px 20px;
    box-shadow: none;
    border-radius: 16px;
  }

  .wl-field-row {
    grid-template-columns: 1fr;
  }

  .wl-tab { font-size: 12px; padding: 9px 10px; }
}
