/* ── Dana UK LP — styles.css ── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── VARIABLES ─────────────────────────────────── */
:root {
  --bg:          #050505;
  --bg-card:     rgba(17, 24, 39, 0.7);
  --bg-elevated: rgba(31, 41, 55, 0.8);
  --gold:        #eab308; /* yellow-500 */
  --gold-dark:   #ca8a04; /* yellow-600 */
  --gold-glow:   rgba(234, 179, 8, 0.2);
  --green:       #10b981; /* emerald-500 */
  --green-dark:  #059669; /* emerald-600 */
  --red:         #f43f5e; /* rose-500 */
  --text:        #f9fafb; /* gray-50 */
  --text-muted:  #9ca3af; /* gray-400 */
  --border:      rgba(255, 255, 255, 0.08);
  --border-hover:rgba(234, 179, 8, 0.3);
  --glass-bg:    rgba(17, 24, 39, 0.6);
  --glass-border:rgba(255, 255, 255, 0.1);
  --font:        'Inter', system-ui, -apple-system, sans-serif;
  --radius:      16px;
  --radius-lg:   24px;
  --shadow:      0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 10px 25px -5px rgba(234, 179, 8, 0.3);
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
  line-height: 1.5;
}

/* ── LAYOUT WRAPPER ─────────────────────────────── */
.app-shell {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  overflow-x: hidden;
  overflow-y: auto;
  /* Hide scrollbar */
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.app-shell::-webkit-scrollbar {
  display: none;
}

@media (min-width: 520px) {
  body {
    background: radial-gradient(circle at top right, #111827, #050505);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .app-shell {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    background: var(--bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    margin: 20px;
    height: calc(100dvh - 40px);
    max-height: 850px;
  }
}

/* ── PROGRESS BAR ───────────────────────────────── */
#progress-bar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 20px;
  display: none; /* shown by JS */
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

#progress-bar.visible { display: flex; }

#progress-track {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  overflow: hidden;
}

#progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--green));
  border-radius: 99px;
  width: 0;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#progress-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 60px;
  text-align: right;
}

/* ── SCREENS ────────────────────────────────────── */
.screen {
  display: none;
  flex-direction: column;
  min-height: calc(100dvh - 40px);
  padding: 0 24px 60px; /* Increased bottom padding */
}

.screen.active { display: flex; }

/* Fade-in animation */
.screen.active {
  animation: fadeInUp 0.4s ease both;
}

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

/* ── SCREEN CONTENT HELPERS ─────────────────────── */
.screen-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding-top: 32px;
}

/* ── TYPOGRAPHY ─────────────────────────────────── */
h1 {
  font-size: clamp(26px, 7vw, 36px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(22px, 6vw, 30px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.01em;
}

p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

.highlight { color: var(--gold); }
.highlight-green { color: var(--green); }

/* ── BUTTONS ────────────────────────────────────── */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 17px 24px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  letter-spacing: 0.03em;
  -webkit-tap-highlight-color: transparent;
}

.btn:active { transform: scale(0.97); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #fbbf24);
  color: #000;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #fbbf24, var(--gold));
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(234, 179, 8, 0.4);
}

.btn-green {
  background: linear-gradient(135deg, var(--green), #34d399);
  color: #fff;
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.3);
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(16, 185, 129, 0.4);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.3);
  font-size: 17px;
  padding: 20px 24px;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -5px rgba(16, 185, 129, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border-hover);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-large {
  padding: 20px 24px;
  font-size: 18px;
}

/* ── OPTION BUTTONS ─────────────────────────────── */
.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-btn {
  display: block;
  width: 100%;
  padding: 18px 20px;
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}

.option-btn:hover {
  border-color: var(--border-hover);
  background: rgba(234, 179, 8, 0.05);
  transform: translateX(4px);
}

.option-btn.selected {
  border-color: var(--gold);
  background: var(--gold-glow);
  color: var(--gold);
  font-weight: 600;
  box-shadow: 0 0 20px rgba(234, 179, 8, 0.1);
}

/* ── FORM ELEMENTS ───────────────────────────────── */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  transition: border-color 0.2s ease;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  background: rgba(212,160,23,0.04);
}

input.error,
select.error,
textarea.error {
  border-color: var(--red);
}

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'%3E%3Cpath fill='%2394a3b8' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

select option { background: #1e293b; color: var(--text); }

textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}

::placeholder { color: rgba(148,163,184,0.5); }

.field-error {
  font-size: 12px;
  color: var(--red);
  min-height: 16px;
  font-weight: 500;
}

/* ── SCREEN 1: HERO ─────────────────────────────── */
.hero-top {
  text-align: center;
  padding-top: 48px;
}

.hero-flags {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-flags img {
  width: 36px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-badge-row {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.hero-badge {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 99px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 6px;
}

.social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 16px 0 28px;
}

.social-proof .avatars {
  display: flex;
}

.social-proof .avatars span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--green));
  border: 2px solid var(--bg);
  margin-left: -8px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.social-proof .avatars span:first-child { margin-left: 0; }

/* ── QUESTION LABEL ──────────────────────────────── */
.question-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.question-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.question-sub {
  font-size: 14px;
  color: var(--text-muted);
}

/* ── SCREEN 5A: NOT QUALIFIED ────────────────────── */
.not-qualified-screen {
  text-align: center;
  align-items: center;
}

.status-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto;
}

.status-icon.rejected {
  background: rgba(239,68,68,0.1);
  border: 2px solid rgba(239,68,68,0.3);
  color: var(--red);
  font-size: 40px;
  font-weight: 900;
}

.status-icon.approved {
  background: rgba(34,197,94,0.1);
  border: 2px solid rgba(34,197,94,0.3);
  color: var(--green);
  font-size: 40px;
  font-weight: 900;
}

/* ── SCREEN 5B: QUALIFIED FORM ───────────────────── */
.qualified-header {
  text-align: center;
}

.urgency-banner {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #fca5a5;
  line-height: 1.5;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── SCREEN 5C: LOADING ──────────────────────────── */
.loading-screen {
  text-align: center;
  align-items: center;
  justify-content: center;
}

.spinner {
  width: 64px;
  height: 64px;
  border: 4px solid rgba(255,255,255,0.08);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 28px;
}

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

.loading-bar-wrap {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 28px;
}

#loading-progress {
  height: 100%;
  width: 5%;
  background: linear-gradient(90deg, var(--gold), var(--green));
  border-radius: 99px;
  transition: none;
}

/* ── SCREEN 6: WHATSAPP ──────────────────────────── */
.timer-banner {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 10px;
  padding: 12px 16px;
  color: #fca5a5;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.countdown-display {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 18px;
  color: #ff6b6b;
  letter-spacing: 0.05em;
}

.dana-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.dana-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #f0b429);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.dana-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dana-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dana-info strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.dana-info span {
  font-size: 13px;
  color: var(--text-muted);
}

.dana-info .online-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
}

.dana-info .online-badge::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 1.5s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.wpp-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.timer-sub {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}

.timer-sub .countdown-display {
  font-size: 14px;
}

/* ── BACKGROUND BLOBS ─────────────────────────── */
.bg-blob {
  position: fixed;
  width: 300px;
  height: 300px;
  background: var(--gold-glow);
  filter: blur(80px);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

.blob-1 {
  top: -100px;
  right: -100px;
  background: rgba(234, 179, 8, 0.15);
  animation: float 20s infinite alternate;
}

.blob-2 {
  bottom: -100px;
  left: -100px;
  background: rgba(16, 185, 129, 0.1);
  animation: float 25s infinite alternate-reverse;
}

@keyframes float {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(40px, 40px) scale(1.1); }
}

/* ── DIVIDER ────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 12px;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── CARD ────────────────────────────────────────── */
.info-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

/* ── BULLET LIST ─────────────────────────────────── */
.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.check-list li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── SECONDARY LINK ─────────────────────────────── */
.sec-link {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.sec-link a {
  color: var(--gold);
  text-decoration: none;
}

/* ── SAFE AREA ───────────────────────────────────── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .screen { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
}
