/* ============================================================
   R&B CLOTHING MICROSITE — COMPLETE DESIGN SYSTEM
   css/style.css
   
   Token hierarchy:
   1. :root — all design tokens (colors, spacing, type, shadows)
   2. Base reset + global styles
   3. Layout utilities
   4. Component library (nav, hero, form, OTP, survey, modal)
   5. Animations & keyframes
   6. Responsive breakpoints
   ============================================================ */

/* ---- GOOGLE FONTS ----------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---- DESIGN TOKENS ---------------------------------------- */
:root {
  /* Core Dark Palette */
  --rnb-ink:        #0A0A0F;
  --rnb-onyx:       #111118;
  --rnb-charcoal:   #1C1C26;
  --rnb-smoke:      #2E2E3A;

  /* Brand Platinum (Van Heusen) - keeping var names for compatibility */
  --rnb-gold:       #E2E8F0;
  --rnb-gold-light: #F1F5F9;
  --rnb-gold-dark:  #94A3B8;
  --rnb-gold-pale:  rgba(226, 232, 240, 0.12);
  --rnb-gold-glow:  rgba(226, 232, 240, 0.35);
  --rnb-gold-glow2: rgba(226, 232, 240, 0.15);

  /* White Scale */
  --rnb-white:        #FAFAF8;
  --rnb-white-80:     rgba(250, 250, 248, 0.80);
  --rnb-white-60:     rgba(250, 250, 248, 0.60);
  --rnb-white-30:     rgba(250, 250, 248, 0.30);
  --rnb-white-15:     rgba(250, 250, 248, 0.15);
  --rnb-white-10:     rgba(250, 250, 248, 0.07);
  --rnb-white-border: rgba(250, 250, 248, 0.10);

  /* Utility */
  --rnb-error:   #E5534B;
  --rnb-success: #3FB950;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Spacing */
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  32px;
  --space-xl:  48px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Radii */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm:   0 2px 8px  rgba(0, 0, 0, 0.4);
  --shadow-md:   0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-lg:   0 20px 60px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 0 40px var(--rnb-gold-glow);
  --shadow-gold-sm: 0 4px 24px var(--rnb-gold-glow2);

  /* Transitions */
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1);
  --transition:   all 0.3s var(--ease-out);
  --transition-slow: all 0.6s var(--ease-out);

  /* Nav */
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--rnb-ink);
  color: var(--rnb-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

img, video { max-width: 100%; display: block; }
button { font-family: inherit; }
input, textarea, select { font-family: inherit; }
a { text-decoration: none; color: inherit; }

/* ---- SCROLLBAR -------------------------------------------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--rnb-onyx); }
::-webkit-scrollbar-thumb { background: var(--rnb-smoke); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--rnb-gold-dark); }

/* ---- SELECTION -------------------------------------------- */
::selection {
  background: var(--rnb-gold-pale);
  color: var(--rnb-gold-light);
}

/* ============================================================
   NAV COMPONENT
   ============================================================ */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-2xl);
  background: rgba(10, 10, 15, 0.65);
  border-bottom: 1px solid var(--rnb-white-border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: background 0.4s ease, border-color 0.4s ease;
}

#site-nav.scrolled {
  background: rgba(10, 10, 15, 0.92);
  border-bottom-color: rgba(201, 168, 76, 0.15);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--rnb-gold) 0%, var(--rnb-gold-light) 100%);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  color: var(--rnb-ink);
  letter-spacing: -0.5px;
  box-shadow: var(--shadow-gold-sm);
}

.nav-logo-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--rnb-white);
}

.nav-logo-name span {
  color: var(--rnb-gold);
}

.nav-tagline {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--rnb-white-30);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--nav-h) var(--space-lg) 0;
}

/* Background layers */
.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('../assets/hero-bg.png');
  background-size: cover;
  background-position: center 20%;
  opacity: 0.6;
  z-index: -2;
  animation: cinematicZoom 25s linear infinite alternate;
}

@keyframes cinematicZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(10,10,15,0.5) 0%, rgba(10,10,15,0.2) 40%, rgba(10,10,15,0.7) 80%, rgba(10,10,15,1) 100%),
    linear-gradient(135deg, rgba(10,10,15,0.8) 0%, transparent 60%);
}

/* Ambient particles canvas */
#hero-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

/* Hero inner content */
.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  width: 100%;
  padding: var(--space-2xl) 0;
}

/* Eyebrow label */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--rnb-gold);
  border: 1px solid rgba(201, 168, 76, 0.25);
  background: var(--rnb-gold-pale);
  padding: 6px 20px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-lg);
  animation: fadeInDown 0.8s var(--ease-out) 0.1s both;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--rnb-gold);
  opacity: 0.5;
}

/* Main headline */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 9vw, 110px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -2px;
  color: var(--rnb-white);
  margin-bottom: var(--space-md);
  animation: fadeInUp 0.9s var(--ease-out) 0.25s both;
}

.hero-title .title-line {
  display: block;
}

.hero-title .title-accent {
  display: block;
  font-style: italic;
  background: linear-gradient(135deg, var(--rnb-gold) 0%, var(--rnb-gold-light) 50%, var(--rnb-gold) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 4s ease infinite;
}

/* Sub headline */
.hero-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 300;
  color: var(--rnb-white-60);
  max-width: 560px;
  margin: 0 auto var(--space-xl);
  letter-spacing: 0.3px;
  line-height: 1.8;
  animation: fadeInUp 0.9s var(--ease-out) 0.4s both;
}

/* Gold decorative divider */
.hero-divider {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--rnb-gold), transparent);
  margin: 0 auto var(--space-xl);
  animation: fadeIn 1s ease 0.5s both;
}

/* Stats bar */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  animation: fadeInUp 0.9s var(--ease-out) 0.55s both;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--rnb-gold);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rnb-white-30);
}

.hero-stat-sep {
  width: 1px;
  height: 40px;
  background: var(--rnb-white-border);
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--rnb-white-30);
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: fadeIn 1.2s ease 1.2s both;
  z-index: 2;
}

.scroll-cue-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--rnb-white-30), transparent);
  animation: scrollLineMove 2s ease-in-out infinite;
}

/* ============================================================
   LOGIN / OTP MODAL OVERLAY
   ============================================================ */
#auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

#auth-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

/* Auth Card */
#auth-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--rnb-onyx);
  border: 1px solid var(--rnb-white-border);
  border-radius: var(--radius-md);
  padding: var(--space-2xl) var(--space-2xl) var(--space-xl);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 1px rgba(226, 232, 240, 0.2) inset;
  background: rgba(17, 17, 24, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  animation: slideUpModal 0.45s var(--ease-spring) both;
}

#auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rnb-gold), transparent);
}

/* Step containers */
.auth-step {
  display: none;
}

.auth-step.active {
  display: block;
  animation: fadeInUp 0.4s var(--ease-out) both;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-xl);
}
.auth-logo img {
  height: 60px;
  width: auto;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--rnb-white);
  text-align: center;
  margin-bottom: var(--space-xs);
  line-height: 1.2;
}

.auth-sub {
  font-size: 14px;
  color: var(--rnb-white-60);
  text-align: center;
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.auth-masked-email {
  color: var(--rnb-gold);
  font-weight: 600;
}

/* Form inputs */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rnb-white-60);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: var(--rnb-white-10);
  border: 1px solid var(--rnb-white-border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 15px;
  color: var(--rnb-white);
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.form-input::placeholder {
  color: var(--rnb-white-30);
}

.form-input:focus {
  border-color: var(--rnb-gold);
  background: var(--rnb-gold-pale);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.form-input.error {
  border-color: var(--rnb-error);
  box-shadow: 0 0 0 3px rgba(229, 83, 75, 0.1);
}

.form-error {
  font-size: 12px;
  color: var(--rnb-error);
  margin-top: 6px;
  display: none;
}

.form-error.visible {
  display: block;
  animation: fadeInUp 0.3s ease both;
}

/* OTP Inputs */
.otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.otp-box {
  width: 52px;
  height: 60px;
  background: var(--rnb-white-10);
  border: 1px solid var(--rnb-white-border);
  border-radius: var(--radius-sm);
  text-align: center;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--rnb-gold);
  outline: none;
  transition: var(--transition);
  caret-color: var(--rnb-gold);
}

.otp-box:focus {
  border-color: var(--rnb-gold);
  background: var(--rnb-gold-pale);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12), var(--shadow-gold-sm);
  transform: scale(1.05);
}

.otp-box.filled {
  border-color: rgba(201, 168, 76, 0.5);
  background: var(--rnb-gold-pale);
}

.otp-box.error {
  border-color: var(--rnb-error);
  animation: shake 0.4s ease;
}

/* OTP timer */
.otp-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--rnb-white-30);
  margin-bottom: var(--space-md);
}

.otp-timer-value {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--rnb-gold);
  font-size: 14px;
  min-width: 32px;
  text-align: center;
}

.otp-timer-value.expired {
  color: var(--rnb-error);
}

#otp-resend-btn {
  background: none;
  border: none;
  color: var(--rnb-gold);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: none;
  padding: 0;
  transition: color 0.2s ease;
}

#otp-resend-btn:hover { color: var(--rnb-gold-light); }
#otp-resend-btn.visible { display: inline; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.35s var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.btn:active::after { opacity: 1; }

/* Gold / Primary */
.btn-gold {
  background: linear-gradient(135deg, var(--rnb-gold-dark) 0%, var(--rnb-gold) 50%, var(--rnb-gold-light) 100%);
  background-size: 200% auto;
  color: var(--rnb-ink);
  box-shadow: 0 4px 24px var(--rnb-gold-glow2);
}

.btn-gold:hover {
  background-position: right center;
  transform: translateY(-3px);
  box-shadow: 0 8px 40px var(--rnb-gold-glow);
}

.btn-gold:active { transform: translateY(-1px); }

/* Ghost / Secondary */
.btn-ghost {
  background: transparent;
  color: var(--rnb-white);
  border: 1px solid var(--rnb-white-30);
}

.btn-ghost:hover {
  border-color: var(--rnb-gold);
  color: var(--rnb-gold);
  box-shadow: 0 0 20px var(--rnb-gold-glow2);
  transform: translateY(-2px);
}

/* Full width */
.btn-full { width: 100%; }

/* Spinner inside button */
.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(10, 10, 15, 0.3);
  border-top-color: var(--rnb-ink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

.btn-gold .btn-spinner {
  border: 2px solid rgba(10, 10, 15, 0.3);
  border-top-color: var(--rnb-ink);
}

.btn.loading .btn-spinner { display: block; }
.btn.loading .btn-label { opacity: 0.7; }
.btn:disabled { opacity: 0.5; pointer-events: none; }

/* Hero CTA cluster */
.hero-cta-group {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.9s var(--ease-out) 0.65s both;
}

.hero-cta-note {
  font-size: 11px;
  color: var(--rnb-white-30);
  letter-spacing: 0.5px;
  margin-top: var(--space-sm);
  animation: fadeIn 1s ease 1s both;
}

/* ============================================================
   SURVEY SECTION (see Google Forms layout at end of file)
   ============================================================ */
/* #survey-section rules moved to GF layout section */


.survey-card {
  width: 100%;
  max-width: 560px;
  background: var(--rnb-onyx);
  border: 1px solid var(--rnb-white-border);
  border-radius: var(--radius-md);
  padding: var(--space-2xl);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: slideUpModal 0.45s var(--ease-spring) both;
}

.survey-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rnb-gold), transparent);
}

/* Progress bar */
.survey-progress-track {
  width: 100%;
  height: 2px;
  background: var(--rnb-white-10);
  border-radius: 1px;
  margin-bottom: var(--space-2xl);
  overflow: hidden;
}

.survey-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--rnb-gold-dark), var(--rnb-gold-light));
  border-radius: 1px;
  transition: width 0.5s var(--ease-out);
  box-shadow: 0 0 8px var(--rnb-gold-glow2);
}

.survey-step-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rnb-gold);
  margin-bottom: var(--space-xs);
}

.survey-question {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: var(--rnb-white);
  line-height: 1.3;
  margin-bottom: var(--space-lg);
}

/* Survey option cards */
.survey-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: var(--space-lg);
}

.survey-option {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 14px 20px;
  background: var(--rnb-white-10);
  border: 1px solid var(--rnb-white-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
  position: relative;
}

.survey-option:hover {
  border-color: rgba(201, 168, 76, 0.3);
  background: var(--rnb-gold-pale);
  transform: translateX(4px);
}

.survey-option.selected {
  border-color: var(--rnb-gold);
  background: var(--rnb-gold-pale);
  box-shadow: 0 0 20px var(--rnb-gold-glow2);
}

.survey-option-dot {
  width: 18px;
  height: 18px;
  border: 2px solid var(--rnb-white-30);
  border-radius: 50%;
  flex-shrink: 0;
  transition: var(--transition);
  position: relative;
}

.survey-option.selected .survey-option-dot {
  border-color: var(--rnb-gold);
  background: var(--rnb-gold-pale);
}

.survey-option.selected .survey-option-dot::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--rnb-gold);
  border-radius: 50%;
  animation: popIn 0.2s var(--ease-spring) both;
}

.survey-option-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--rnb-white-80);
}

.survey-option.selected .survey-option-text {
  color: var(--rnb-white);
}

/* Rating stars */
.survey-rating {
  display: flex;
  gap: 10px;
  margin-bottom: var(--space-lg);
}

.rating-star {
  font-size: 32px;
  cursor: pointer;
  transition: transform 0.2s var(--ease-spring), filter 0.2s ease;
  filter: grayscale(1) brightness(0.4);
  user-select: none;
}

.rating-star:hover,
.rating-star.active {
  filter: none;
  transform: scale(1.25);
}

/* Text area */
.survey-textarea {
  width: 100%;
  background: var(--rnb-white-10);
  border: 1px solid var(--rnb-white-border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--rnb-white);
  outline: none;
  resize: vertical;
  min-height: 100px;
  transition: var(--transition);
  margin-bottom: var(--space-md);
}

.survey-textarea::placeholder { color: var(--rnb-white-30); }

.survey-textarea:focus {
  border-color: var(--rnb-gold);
  background: var(--rnb-gold-pale);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.survey-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

/* ============================================================
   THANK YOU STATE
   ============================================================ */
.thankyou-inner {
  text-align: center;
}

.thankyou-icon {
  width: 80px;
  height: 80px;
  background: var(--rnb-gold-pale);
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto var(--space-md);
  box-shadow: 0 0 40px var(--rnb-gold-glow2), 0 0 80px rgba(201,168,76,0.08);
  animation: popIn 0.6s cubic-bezier(0.34,1.56,0.64,1) 0.1s both,
             pulseGold 2.5s ease 1s infinite;
}

@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 40px var(--rnb-gold-glow2), 0 0 0 0 rgba(201,168,76,0.35); }
  50%       { box-shadow: 0 0 60px rgba(201,168,76,0.3),  0 0 0 16px rgba(201,168,76,0); }
}


.thankyou-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--rnb-white);
  margin-bottom: var(--space-xs);
}

.thankyou-sub {
  font-size: 15px;
  color: var(--rnb-white-60);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

/* ============================================================
   SUCCESS BADGE (Verified indicator in hero)
   ============================================================ */
.verified-badge {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--rnb-success);
  border: 1px solid rgba(63, 185, 80, 0.25);
  background: rgba(63, 185, 80, 0.08);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
}

.verified-badge.show {
  display: inline-flex;
  animation: fadeInUp 0.5s var(--ease-spring) both;
}

.verified-dot {
  width: 7px;
  height: 7px;
  background: var(--rnb-success);
  border-radius: 50%;
  animation: pulseGreen 2s ease infinite;
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
#toast-container {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--rnb-charcoal);
  border: 1px solid var(--rnb-white-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  font-size: 14px;
  color: var(--rnb-white);
  animation: slideInRight 0.4s var(--ease-spring) both;
  pointer-events: all;
  min-width: 260px;
  max-width: 360px;
}

.toast.toast-success { border-left: 3px solid var(--rnb-success); }
.toast.toast-error   { border-left: 3px solid var(--rnb-error); }
.toast.toast-info    { border-left: 3px solid var(--rnb-gold); }

.toast-icon { font-size: 18px; flex-shrink: 0; }
.toast-text { flex: 1; line-height: 1.5; }

.toast.removing {
  animation: slideOutRight 0.35s var(--ease-in-out) both;
}

/* ============================================================
   ANIMATIONS & KEYFRAMES
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideUpModal {
  from { opacity: 0; transform: translateY(40px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideOutRight {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(32px); }
}

@keyframes goldShimmer {
  0%   { background-position: 0% center; }
  50%  { background-position: 100% center; }
  100% { background-position: 0% center; }
}

@keyframes scrollLineMove {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

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

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

@keyframes pulseGreen {
  0%, 100% { box-shadow: 0 0 0 0 rgba(63, 185, 80, 0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(63, 185, 80, 0); }
}

/* Intersection observer reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE — TABLET (max 768px)
   ============================================================ */
@media (max-width: 768px) {
  #site-nav {
    padding: 0 var(--space-md);
  }

  .nav-tagline { display: none; }

  .hero-stats {
    gap: var(--space-lg);
  }

  .hero-stat-sep { display: none; }

  #auth-card {
    padding: var(--space-xl) var(--space-lg);
  }

  .survey-card {
    padding: var(--space-xl) var(--space-lg);
  }

  .otp-box {
    width: 44px;
    height: 54px;
    font-size: 20px;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 480px)
   ============================================================ */
@media (max-width: 480px) {
  :root { --nav-h: 60px; }

  #site-nav {
    padding: 0 var(--space-sm);
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-md);
  }

  .hero-stat-sep { display: none; }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  #auth-card {
    padding: var(--space-lg) var(--space-md);
    border-radius: var(--radius-sm);
  }

  .survey-card {
    padding: var(--space-lg) var(--space-md);
  }

  .otp-inputs {
    gap: 7px;
  }

  .otp-box {
    width: 40px;
    height: 50px;
    font-size: 18px;
  }

  #toast-container {
    bottom: 20px;
    right: 16px;
    left: 16px;
  }

  .toast {
    min-width: unset;
    width: 100%;
  }

  .survey-nav {
    flex-direction: column-reverse;
  }

  .survey-nav .btn {
    width: 100%;
  }
}

/* ============================================================
   SURVEY CHIPS (multi-select)
   ============================================================ */
.survey-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--space-lg);
}

.survey-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: var(--rnb-white-10);
  border: 1px solid var(--rnb-white-border);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--rnb-white-60);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.survey-chip:hover {
  border-color: rgba(201, 168, 76, 0.35);
  color: var(--rnb-white);
  background: var(--rnb-gold-pale);
}

.survey-chip.selected {
  border-color: var(--rnb-gold);
  background: var(--rnb-gold-pale);
  color: var(--rnb-gold-light);
  box-shadow: 0 0 16px var(--rnb-gold-glow2);
}

.chip-check {
  font-size: 11px;
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s var(--ease-spring);
}

.survey-chip.selected .chip-check {
  opacity: 1;
  transform: scale(1);
}

/* ============================================================
   RATING LABEL
   ============================================================ */
.rating-label {
  font-family: var(--font-display);
  font-size: 16px;
  font-style: italic;
  color: var(--rnb-gold);
  margin-left: 12px;
  min-width: 80px;
  transition: var(--transition);
}

.rating-star.hover {
  filter: none;
  transform: scale(1.15);
}

/* ============================================================
   CHAR COUNTER
   ============================================================ */
.char-counter {
  font-size: 11px;
  color: var(--rnb-white-30);
  text-align: right;
  letter-spacing: 0.5px;
  margin-top: -8px;
  margin-bottom: var(--space-md);
}

/* ============================================================
   GOLD DIVIDER
   ============================================================ */
.gold-divider {
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rnb-gold), transparent);
  margin: var(--space-md) 0;
}

/* ============================================================
   CARD SHAKE (validation error)
   ============================================================ */
.survey-card.shake {
  animation: shake 0.4s ease;
}

/* ============================================================
   OTP ATTEMPTS COUNTER
   ============================================================ */
.otp-attempts-wrap {
  text-align: center;
  margin-bottom: var(--space-xs);
}

#otp-attempts {
  font-size: 11px;
  color: var(--rnb-white-30);
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

/* ============================================================
   SURVEY HINT TEXT
   ============================================================ */
.survey-question-hint {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--rnb-white-30);
  margin-bottom: var(--space-lg);
}

/* ============================================================
   BACK BUTTON (subtle)
   ============================================================ */
.btn-back {
  background: transparent;
  border: none;
  color: var(--rnb-white-30);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 0;
  cursor: pointer;
  transition: color 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

/* ============================================================
   AUTH CLOSE BUTTON
   ============================================================ */
.auth-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  background: var(--rnb-white-10);
  border: 1px solid var(--rnb-white-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--rnb-white-30);
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.auth-close:hover {
  background: var(--rnb-gold-pale);
  border-color: rgba(201, 168, 76, 0.3);
  color: var(--rnb-gold);
}

/* ============================================================
   SURVEY QUESTION HINT (inline)
   ============================================================ */
#survey-question-hint {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--rnb-white-30);
  font-weight: 600;
  margin-bottom: var(--space-md);
  display: none;
}

/* ============================================================
   GLASS CARD (About section pillars)
   ============================================================ */
.glass-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--rnb-white-border);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 32px;
  transition: var(--transition-slow);
}

.glass-card:hover {
  border-color: rgba(201, 168, 76, 0.25);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 40px rgba(201, 168, 76, 0.06);
  transform: translateY(-4px);
}

/* ============================================================
   GOOGLE FORMS STYLE SURVEY LAYOUT
   ============================================================ */

/* Full-screen backdrop */
#survey-section {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 8000;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px 40px;
  background: rgba(10, 10, 15, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow-y: auto;
}

#survey-section.visible {
  display: flex;
}

/* Column of cards, max 660px (matches Google Forms width) */
.gf-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 660px;
  margin-top: 16px;
}

/* ── HEADER CARD ─────────────────────────── */
.gf-header-card {
  background: var(--rnb-charcoal);
  border: 1px solid var(--rnb-white-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  animation: slideUpModal 0.4s ease both;
}

.gf-accent-bar {
  height: 10px;
  background: linear-gradient(90deg, #E2E8F0 0%, #94A3B8 100%);
}

.gf-header-body {
  padding: 28px 32px 24px;
}

.gf-logo {
  display: block;
  height: 44px;
  width: auto;
  margin-bottom: 20px;
}

.gf-survey-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 700;
  color: var(--rnb-white);
  margin-bottom: 8px;
  line-height: 1.2;
}

.gf-survey-desc {
  font-size: 14px;
  color: var(--rnb-white-60);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Progress bar in header: R&B blue fill */
.gf-progress-track {
  background: var(--rnb-white-10) !important;
  border-radius: 99px;
  height: 4px !important;
  overflow: hidden;
}

.gf-progress-track .survey-progress-fill {
  background: linear-gradient(90deg, #E2E8F0, #94A3B8) !important;
  box-shadow: 0 0 10px rgba(226, 232, 240, 0.4) !important;
}

/* ── QUESTION CARD ───────────────────────── */
.gf-question-card {
  background: var(--rnb-charcoal);
  border: 1px solid var(--rnb-white-border);
  border-left: 3px solid rgba(226, 232, 240, 0.3);
  border-radius: var(--radius-sm);
  animation: slideUpModal 0.4s ease 0.05s both;
  overflow: hidden;
}

.gf-question-inner {
  padding: 32px;
}

.gf-step-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #E2E8F0;
  margin-bottom: 14px;
}

.gf-question-card .survey-question {
  font-size: clamp(18px, 2.8vw, 24px);
  margin-bottom: 24px;
  color: var(--rnb-white);
}

.gf-question-card .survey-option.selected {
  border-color: #E2E8F0;
  box-shadow: 0 0 0 1px rgba(226, 232, 240, 0.25), 0 0 20px rgba(226, 232, 240, 0.07);
}

.gf-question-card .survey-option-dot {
  width: 18px;
  height: 18px;
  border: 2px solid var(--rnb-white-30);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.gf-question-card .survey-option.selected .survey-option-dot {
  background: #E2E8F0;
  border-color: #E2E8F0;
  box-shadow: 0 0 0 3px rgba(226, 232, 240, 0.2);
}

.gf-question-card .survey-chip.selected {
  border-color: #E2E8F0;
  background: rgba(226, 232, 240, 0.1);
  color: #E2E8F0;
  box-shadow: 0 0 12px rgba(226, 232, 240, 0.15);
}

.gf-question-card .rating-star.selected,
.gf-question-card .rating-star.hover {
  color: #E2E8F0 !important;
  text-shadow: 0 0 16px rgba(226, 232, 240, 0.5);
}

.gf-question-card .survey-textarea:focus {
  border-color: rgba(226, 232, 240, 0.5);
  box-shadow: 0 0 0 2px rgba(226, 232, 240, 0.12);
}

/* ── NAV ──────────────────────────────────── */
.gf-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
}

.gf-nav-right {
  margin-left: auto;
}

.gf-next-btn { min-width: 130px; }

/* Blue button in GF layout */
.gf-next-btn.btn-gold {
  background: linear-gradient(135deg, #E2E8F0 0%, #94A3B8 100%);
  box-shadow: 0 4px 20px rgba(226, 232, 240, 0.3);
  color: #0A0A0F;
}

.gf-next-btn.btn-gold:hover {
  background: linear-gradient(135deg, #CBD5E1, #64748B);
  box-shadow: 0 6px 28px rgba(226, 232, 240, 0.5);
}

/* Thank-you pulse in blue */
.gf-question-card .thankyou-icon {
  background: rgba(226, 232, 240, 0.1);
  border-color: rgba(226, 232, 240, 0.35);
  box-shadow: 0 0 40px rgba(226, 232, 240, 0.2);
  animation: popIn 0.6s cubic-bezier(0.34,1.56,0.64,1) 0.1s both,
             pulseBlue 2.5s ease 1s infinite;
}

@keyframes pulseBlue {
  0%, 100% { box-shadow: 0 0 30px rgba(226, 232, 240, 0.2), 0 0 0 0 rgba(226, 232, 240, 0.3); }
  50%       { box-shadow: 0 0 50px rgba(226, 232, 240, 0.3), 0 0 0 16px rgba(226, 232, 240, 0); }
}

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 700px) {
  .gf-header-body   { padding: 20px 20px 18px; }
  .gf-question-inner { padding: 24px 20px; }
  .gf-logo          { height: 36px; }
}

@media (max-width: 480px) {
  #survey-section { padding: 12px 8px 32px; }
  .gf-wrapper     { gap: 8px; margin-top: 8px; }
  .gf-nav         { flex-direction: column-reverse; gap: 12px; }
  .gf-next-btn    { width: 100%; }
}
