/* ─── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white:  #ffffff;
  --dark:   #1a1a1a;
  --muted:  rgba(255,255,255,0.55);
  --border: rgba(255,255,255,0.22);
  --glass:  rgba(0,0,0,0.28);
  --radius: 2px;
  --trans:  0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Georgia', serif;
  min-height: 100vh;
  background: #0d0d0d;
}

/* ─── FULL PAGE HERO ────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: url('bg.jpg') center 40% / cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(0,0,0,0.38) 0%,
    rgba(0,0,0,0.58) 50%,
    rgba(0,0,0,0.72) 100%
  );
  pointer-events: none;
}

/* ─── LOGO ──────────────────────────────────────────────────── */
.logo {
  position: absolute;
  top: 30px;
  left: 40px;
  z-index: 2;
  opacity: 0.9;
}

/* ─── BRAND BLOCK ───────────────────────────────────────────── */
.brand {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 14vh;
  margin-bottom: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.title-wrap {
  display: inline-block;
}

.hero-title {
  color: #fff;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 200;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
  text-shadow: 0 0 40px rgba(255,255,255,0.15);
}

.hero-divider {
  width: 180px;
  height: 1px;
  background: rgba(255,255,255,0.9);
  margin: 40px auto 0;
}

/* ─── FORM CARD ─────────────────────────────────────────────── */
.form-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ─── PROGRESS ──────────────────────────────────────────────── */
.progress-container {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.progress-track {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.2);
}

.progress-fill {
  height: 100%;
  width: 50%;
  background: rgba(255,255,255,0.75);
  transition: width 0.5s cubic-bezier(.4,0,.2,1);
}

.progress-label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
  font-family: 'Helvetica Neue', sans-serif;
}

/* ─── STEPS ─────────────────────────────────────────────────── */
.step { display: none; }
.step.active { display: block; animation: fadeUp 0.45s ease; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step-title {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
  font-family: 'Helvetica Neue', sans-serif;
}

/* ─── FIELDS ─────────────────────────────────────────────────── */
.field {
  margin-bottom: 32px;
}

.field label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  font-family: 'Helvetica Neue', sans-serif;
}

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.28);
  font-size: 1rem;
  color: var(--white);
  font-family: 'Georgia', serif;
  outline: none;
  transition: border-color var(--trans);
  appearance: none;
  -webkit-appearance: none;
  caret-color: white;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255,255,255,0.3);
  font-size: 0.9rem;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 4.5L11 1' stroke='rgba(255,255,255,0.5)' stroke-width='1.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 28px;
  cursor: pointer;
}

.field select option {
  background: #1a1a1a;
  color: white;
}

.field textarea {
  resize: none;
  line-height: 1.8;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: rgba(255,255,255,0.75);
}

.field input.error,
.field select.error {
  border-bottom-color: #e07070;
}

/* ─── RADIO GROUP ───────────────────────────────────────────── */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 4px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.8);
  font-family: 'Georgia', serif;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  transition: color var(--trans);
}

.radio-label:hover { color: var(--white); }

.radio-label input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  transition: border-color var(--trans);
}

.radio-label input[type="radio"]:checked {
  border-color: var(--white);
}

.radio-label input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--white);
  border-radius: 50%;
}

/* ─── BUTTONS ───────────────────────────────────────────────── */
.btn-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  margin-top: 48px;
}

.btn-next,
.btn-submit {
  background: white;
  color: var(--dark);
  border: none;
  padding: 14px 40px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: 'Helvetica Neue', sans-serif;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background var(--trans), transform var(--trans), opacity var(--trans);
}

.btn-next:hover,
.btn-submit:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-back {
  background: transparent;
  color: var(--muted);
  border: none;
  padding: 14px 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: 'Helvetica Neue', sans-serif;
  cursor: pointer;
  transition: color var(--trans);
}

.btn-back:hover { color: var(--white); }

/* ─── POPUP & OVERLAY ───────────────────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  backdrop-filter: blur(4px);
}

.overlay.show {
  opacity: 1;
  pointer-events: all;
}

.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%) scale(0.95);
  z-index: 101;
  background: #111;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 60px 52px 52px;
  max-width: 420px;
  width: calc(100% - 48px);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(.4,0,.2,1);
}

.popup.show {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

.popup-icon {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
}

.popup h3 {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.popup p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.9;
  font-family: 'Helvetica Neue', sans-serif;
  margin-bottom: 40px;
}

.btn-close {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.7);
  padding: 12px 36px;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: 'Helvetica Neue', sans-serif;
  cursor: pointer;
  transition: border-color var(--trans), color var(--trans);
}

.btn-close:hover {
  border-color: white;
  color: white;
}

/* ─── COUNTDOWN POPUP ───────────────────────────────────────── */
.checking-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  font-family: 'Helvetica Neue', sans-serif;
  margin-bottom: 32px;
}

.checking-sub {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  font-family: 'Helvetica Neue', sans-serif;
  margin-top: 24px;
  letter-spacing: 0.04em;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-top-color: rgba(255,255,255,0.85);
  border-radius: 50%;
  margin: 0 auto;
  animation: spin 0.9s linear infinite;
}

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

/* ─── APPROVED LABEL ────────────────────────────────────────── */
.popup-icon--no {
  background: transparent;
  border: 1px solid rgba(220, 80, 80, 0.5);
  color: #dc5050;
}

.approved-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  font-family: 'Helvetica Neue', sans-serif;
  margin-bottom: 16px;
}

/* ─── RADIO INLINE ──────────────────────────────────────────── */
.radio-inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
}

/* ─── DATE INPUT ─────────────────────────────────────────────── */
input[type="date"] {
  color-scheme: dark;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .logo { top: 22px; left: 22px; }

  .brand { padding-top: 12vh; margin-bottom: 40px; }

  .form-card { padding: 0 20px 60px; }

  .btn-row { flex-direction: column-reverse; align-items: stretch; }

  .btn-next,
  .btn-submit { text-align: center; }

  .btn-back { text-align: center; }

  .popup { padding: 44px 28px 40px; }
}
