/*
  CEO BH Survey — Self-contained styles
  Same theme as main site. Works even when frontend folder is missing.
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg: #050507;
  --text: #fafafa;
  --text-soft: #e5e5eb;
  --muted: #8e8c99;
  --muted-strong: #b4b2bf;
  --border: #1e1c26;
  --panel: #0c0b10;
  --primary: #8b5cf6;
  --primary3: #a78bfa;
  --primaryGrad: linear-gradient(135deg, #a78bfa 0%, #7c3aed 50%, #6d28d9 100%);
  --heroGrad: linear-gradient(180deg, #050507 0%, #08070c 50%, #0c0b10 100%);
  --success: #10b981;
  --danger: #ef4444;
  --radius: 12px;
  --radiusSm: 8px;
  --radiusLg: 16px;
  --radius-full: 9999px;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-display: 'Space Grotesk', var(--font-body);
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Subtle background decoration */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse 80% 60% at 30% 20%, rgba(139,92,246,.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  bottom: -30%;
  right: -15%;
  width: 50%;
  height: 80%;
  background: radial-gradient(ellipse 70% 50% at 70% 80%, rgba(124,58,237,.06) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* Content - ensure above background orbs */

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--primary);
  color: #000;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radiusSm);
}
.skip-link:focus { top: 16px; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Shared content width for consistent alignment */
.content-width {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12,11,16,.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}
.brand .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primaryGrad);
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid rgba(124,58,237,.35);
  background: rgba(124,58,237,.12);
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.pill:hover {
  background: rgba(124,58,237,.26);
  border-color: rgba(124,58,237,.55);
}

/* Page hero */
.page-hero-pro {
  position: relative;
  background: var(--heroGrad);
  padding: 64px 24px 56px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.page-hero-pro::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle at center, rgba(139,92,246,.04) 0%, transparent 40%);
  pointer-events: none;
}
.page-hero-pro .badge,
.page-hero-pro .hero-meta,
.page-hero-pro .page-hero-pro-title,
.page-hero-pro .page-hero-pro-sub,
.page-hero-pro .giveaway-card {
  position: relative;
  z-index: 1;
}
.badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: rgba(124,58,237,.08);
  color: var(--text-soft);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-meta {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}
.page-hero-pro-title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.page-hero-pro-sub {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Content */
.page-content-pro {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 24px 64px;
}
.page-card-pro {
  background: linear-gradient(180deg, rgba(12,11,16,.98) 0%, rgba(8,7,12,.95) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radiusLg);
  padding: 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,.3), 0 0 0 1px rgba(139,92,246,.03);
  width: 100%;
  transition: box-shadow 0.3s;
}
.page-card-pro:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.35), 0 0 0 1px rgba(139,92,246,.05);
}
.section-pro-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Form */
.form.stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: left;
}
.form-section {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.form-section:last-of-type { border-bottom: none; padding-bottom: 0; }
.form-section-title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.form-fields { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-hint {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.55;
}
.label {
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--text-soft);
}
.label .required { color: var(--primary3); }
.label .optional { font-weight: 400; color: var(--muted); }
.input, textarea.input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radiusSm);
  padding: 12px 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  outline: none;
  background: rgba(5,5,7,.4);
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder, textarea.input::placeholder { color: var(--muted); opacity: 0.8; }
.input:focus, textarea.input:focus {
  border-color: rgba(139,92,246,.5);
  box-shadow: 0 0 0 3px rgba(139,92,246,.15);
}
textarea.input {
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}
.muted { color: var(--muted); }
.small { font-size: 0.8125rem; }
.form-message {
  font-size: 0.8125rem;
  min-height: 20px;
  margin-top: 4px;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--primaryGrad);
  border: none;
  border-radius: var(--radiusSm);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(124,58,237,.4);
}
.btn.primary { background: var(--primaryGrad); }

/* Giveaway card (hero) */
.giveaway-card {
  margin-top: 36px;
  padding: 24px 28px;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  background: linear-gradient(135deg, rgba(124,58,237,.08) 0%, rgba(109,40,217,.04) 100%);
  border: 1px solid rgba(139,92,246,.25);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(124,58,237,.06);
  transition: box-shadow 0.3s, transform 0.3s;
}
.giveaway-card:hover {
  box-shadow: 0 8px 32px rgba(124,58,237,.1);
  transform: translateY(-2px);
}
.giveaway-value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  margin: 0 0 4px;
}
.giveaway-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary3);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.giveaway-desc {
  font-size: 0.875rem;
  color: var(--text-soft);
  margin: 0 0 6px;
  line-height: 1.5;
}
.giveaway-terms {
  font-size: 0.6875rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* Survey progress bar & counter */
.survey-progress-wrap {
  margin-top: 48px;
  padding: 28px 40px;
  width: 100%;
  max-width: 640px;
  background: linear-gradient(180deg, rgba(12,11,16,.95) 0%, rgba(8,7,12,.9) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 16px rgba(0,0,0,.2), 0 0 0 1px rgba(139,92,246,.02);
  transition: box-shadow 0.3s;
}
.survey-progress-wrap:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,.25), 0 0 0 1px rgba(139,92,246,.04);
}
.survey-progress-label {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0 0 14px;
  text-align: center;
  letter-spacing: 0.02em;
}
.survey-progress-label strong { color: var(--text-soft); }
.survey-progress-bar {
  height: 10px;
  background: rgba(30,28,38,.8);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 14px;
}
.survey-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primaryGrad) 0%, #a78bfa 100%);
  background-size: 200% 100%;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}
.survey-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.15) 50%, transparent 100%);
  animation: progressShine 2.5s ease-in-out infinite;
}
@keyframes progressShine {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}
.survey-progress-stats {
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.survey-counter {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}
.survey-progress-target {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-left: 4px;
}

/* Entrance animations */
.animate-on-load {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeSlideUp 0.6s ease-out forwards;
}
.survey-progress-wrap.animate-on-load { animation-delay: 0.15s; }
.survey-form-card.animate-on-load { animation-delay: 0.3s; }
.share-section.animate-on-load { animation-delay: 0.45s; }
@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Giveaway CTA box (above submit) */
.giveaway-cta-box {
  padding: 20px 22px;
  background: rgba(124,58,237,.04);
  border: 1px solid var(--border);
  border-radius: var(--radiusSm);
  margin-top: 4px;
  text-align: left;
}
.giveaway-cta-headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.giveaway-cta-desc {
  font-size: 0.875rem;
  color: var(--text-soft);
  margin: 0 0 12px;
  line-height: 1.5;
}
.giveaway-cta-list {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
}
.giveaway-cta-list li {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 6px;
}
.giveaway-cta-list li:last-child { margin-bottom: 0; }

.btn-submit {
  margin-top: 12px;
}

/* Share section */
.share-section {
  margin-top: 40px;
  padding: 28px 40px;
  background: linear-gradient(180deg, rgba(12,11,16,.9) 0%, rgba(8,7,12,.85) 100%);
  border: 1px dashed rgba(139,92,246,.2);
  border-radius: var(--radius);
  text-align: center;
  transition: border-color 0.3s, background 0.3s;
}
.share-section:hover {
  border-color: rgba(139,92,246,.35);
  background: linear-gradient(180deg, rgba(12,11,16,.95) 0%, rgba(8,7,12,.9) 100%);
}
.share-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-soft);
  margin: 0 0 16px;
  letter-spacing: 0.01em;
}
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-soft);
  background: rgba(30,28,38,.8);
  border: 1px solid var(--border);
  border-radius: var(--radiusSm);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.share-btn:hover {
  color: var(--text);
  background: rgba(139,92,246,.12);
  border-color: rgba(139,92,246,.3);
  transform: translateY(-1px);
}
.share-btn svg {
  flex-shrink: 0;
}
.share-copy:hover { border-color: rgba(139,92,246,.4); }
.share-facebook:hover { border-color: rgba(24,119,242,.4); background: rgba(24,119,242,.08); }
.share-instagram:hover { border-color: rgba(225,48,108,.4); background: rgba(225,48,108,.08); }
.share-snapchat:hover { border-color: rgba(255,252,0,.4); background: rgba(255,252,0,.06); }
.share-whatsapp:hover { border-color: rgba(37,211,102,.4); background: rgba(37,211,102,.08); }
.share-feedback {
  font-size: 0.8125rem;
  margin: 12px 0 0;
  min-height: 20px;
}
.thankyou-share {
  margin-top: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ section (SEO) */
.survey-faq { margin-top: 48px; margin-bottom: 24px; }
.faq-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-soft);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.faq-item { margin-bottom: 12px; }
.faq-item:last-child { margin-bottom: 0; }

/* Prize draw terms (footer) */
.prize-draw-terms {
  margin-bottom: 24px;
  padding: 18px 20px;
  background: rgba(12,11,16,.6);
  border: 1px solid var(--border);
  border-radius: var(--radiusSm);
}
.prize-draw-terms summary {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted-strong);
  cursor: pointer;
  list-style: none;
  letter-spacing: 0.01em;
}
.prize-draw-terms summary::-webkit-details-marker { display: none; }
.prize-draw-terms summary::after {
  content: " ›";
  color: var(--primary3);
  margin-left: 4px;
}
.prize-draw-terms[open] summary::after { content: " ▼"; }
.prize-draw-terms p {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 14px 0 0;
  padding: 0;
}
.prize-draw-terms p + p { margin-top: 10px; }

/* Thank you page */
.thankyou-card { position: relative; }
.thankyou-check {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--success);
  background: rgba(16,185,129,.15);
  border: 2px solid rgba(16,185,129,.4);
  border-radius: 50%;
}
.thankyou-prize-note {
  padding: 16px 20px;
  margin-bottom: 24px;
  background: rgba(124,58,237,.06);
  border: 1px solid var(--border);
  border-radius: var(--radiusSm);
  text-align: left;
}
.thankyou-prize-note p { margin: 0; }
.thankyou-prize-note strong { color: var(--text); }
.badge-success {
  background: rgba(16,185,129,.12);
  border-color: rgba(16,185,129,.3);
  color: #34d399;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  background: var(--panel);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.footer-legal a { color: var(--muted-strong); text-decoration: none; }
.footer-legal a:hover { text-decoration: underline; }
