/* Premium Dog Archetype Landing Page Design System */

:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* HSL Color Palette */
  --bg-main: 222 47% 7%; /* Deep Slate Black */
  --bg-surface: 223 47% 11%; /* Charcoal Card */
  --bg-surface-hover: 223 47% 15%;
  --border-color: 223 30% 20%;
  
  --primary: 38 92% 50%; /* Warm Glowing Amber */
  --primary-hover: 38 92% 42%;
  --primary-glow: 38 92% 50% / 0.3;
  
  --secondary: 161 90% 43%; /* Soft Emerald Green for success/trust */
  --secondary-hover: 161 90% 35%;
  
  --accent: 263 90% 64%; /* Modern Indigo/Violet for archetype energy */
  --accent-glow: 263 90% 64% / 0.25;

  --text-primary: 210 40% 98%;
  --text-muted: 215 20% 75%;
  
  --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 25px var(--primary-glow);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: hsl(var(--bg-main));
  color: hsl(var(--text-primary));
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Background Gradients & Ambient Glows */
body::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -5%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, hsl(var(--accent) / 0.15) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: "";
  position: absolute;
  top: 40%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, hsl(var(--primary) / 0.08) 0%, transparent 75%);
  z-index: -1;
  pointer-events: none;
}

.ambient-glow-3 {
  position: absolute;
  bottom: 10%;
  right: -5%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, hsl(var(--secondary) / 0.08) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header */
header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}

.logo span {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-icon {
  font-size: 1.6rem;
}

/* Hero Section */
.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem 2rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  position: relative;
}

@media (max-width: 968px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 2rem;
    gap: 3rem;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (max-width: 968px) {
  .hero-content {
    align-items: center;
  }
}

.badge {
  background: hsl(var(--accent) / 0.15);
  border: 1px solid hsl(var(--accent) / 0.3);
  color: hsl(var(--accent));
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-headline {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero-headline span {
  background: linear-gradient(135deg, #ffffff 50%, hsl(var(--text-muted)) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-headline em {
  font-style: normal;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subheadline {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: hsl(var(--text-muted));
  margin-bottom: 2rem;
  font-weight: 400;
  max-width: 620px;
}

.hero-body {
  font-size: 1rem;
  color: hsl(var(--text-muted) / 0.85);
  margin-bottom: 2.5rem;
  max-width: 580px;
}

/* Call to Action Button */
.cta-button {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-hover)));
  color: hsl(var(--bg-main));
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  padding: 1.2rem 2.5rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px hsl(var(--primary-glow)), 0 4px 10px rgba(0,0,0,0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-transform: uppercase;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px hsl(var(--primary-glow) / 1.5), 0 6px 12px rgba(0,0,0,0.4);
}

.cta-button:active {
  transform: translateY(-1px);
}

.cta-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: 0.75s;
  animation: shine 3s infinite linear;
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

.trust-container {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.trust-statement {
  font-size: 0.85rem;
  color: hsl(var(--text-muted));
}

.stars {
  color: hsl(var(--primary));
  font-size: 0.95rem;
}

/* Hero Visual / Mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid hsl(var(--border-color));
  background: hsl(var(--bg-surface));
  box-shadow: var(--shadow-premium);
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: transform 0.5s ease;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1.1;
}

.hero-image-wrapper:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Floating Card / Interactive archetype badge */
.archetype-badge-floating {
  position: absolute;
  bottom: 20px;
  left: -20px;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid hsl(var(--border-color));
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-premium);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.floating-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: hsl(var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.floating-info h4 {
  font-size: 0.9rem;
  font-weight: 700;
}

.floating-info p {
  font-size: 0.75rem;
  color: hsl(var(--secondary));
  font-weight: 600;
}

/* Benefits Checklist */
.benefits-checklist {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.benefits-checklist li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: hsl(var(--text-muted));
  font-weight: 500;
}

.check-icon {
  background: hsl(var(--secondary) / 0.15);
  color: hsl(var(--secondary));
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  font-weight: bold;
}

/* Social Proof Banner */
.social-proof-bar {
  border-top: 1px solid hsl(var(--border-color));
  border-bottom: 1px solid hsl(var(--border-color));
  background: hsl(var(--bg-surface) / 0.3);
  padding: 2rem;
}

.social-proof-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

@media (max-width: 768px) {
  .social-proof-container {
    justify-content: center;
  }
}

.social-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--text-muted) / 0.6);
  font-weight: 600;
}

.brand-logos {
  display: flex;
  gap: 3rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.brand-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: hsl(var(--text-muted) / 0.4);
  letter-spacing: -0.03em;
}

/* What You Get Inside Section */
.features-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: hsl(var(--text-muted));
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: hsl(var(--bg-surface));
  border: 1px solid hsl(var(--border-color));
  border-radius: 20px;
  padding: 2.5rem 2rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  transition: background 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  background: hsl(var(--bg-surface-hover));
  border-color: hsl(var(--accent) / 0.3);
  box-shadow: var(--shadow-premium);
}

.feature-card:hover::before {
  background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--accent)));
}

.feature-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: hsl(var(--accent) / 0.1);
  color: hsl(var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon-box {
  transform: scale(1.1) rotate(5deg);
}

.feature-card:nth-child(even) .feature-icon-box {
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.feature-card p {
  color: hsl(var(--text-muted));
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Guarantee Card specific styling */
.feature-card.guarantee {
  border-color: hsl(var(--secondary) / 0.3);
  background: linear-gradient(135deg, hsl(var(--bg-surface)), hsl(var(--bg-surface) / 0.8));
}

.feature-card.guarantee .feature-icon-box {
  background: hsl(var(--secondary) / 0.1);
  color: hsl(var(--secondary));
}

/* Bottom CTA & Testimonials section */
.testimonials-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 8rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 868px) {
  .testimonials-section {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.testimonial-card {
  background: linear-gradient(135deg, hsl(var(--bg-surface)), hsl(var(--bg-main)));
  border: 1px solid hsl(var(--border-color));
  border-radius: 24px;
  padding: 3rem;
  position: relative;
  box-shadow: var(--shadow-premium);
}

.testimonial-card::after {
  content: "“";
  position: absolute;
  top: 10px;
  left: 25px;
  font-size: 8rem;
  color: hsl(var(--border-color) / 0.4);
  font-family: serif;
  line-height: 1;
  pointer-events: none;
}

.testimonial-text {
  font-size: 1.1rem;
  color: hsl(var(--text-primary));
  font-style: italic;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-user img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.user-name {
  font-weight: 700;
  font-size: 1rem;
}

.user-title {
  font-size: 0.8rem;
  color: hsl(var(--text-muted));
}

.outro-cta-card {
  background: radial-gradient(circle at 100% 100%, hsl(var(--accent) / 0.1), transparent), hsl(var(--bg-surface));
  border: 1px solid hsl(var(--border-color));
  border-radius: 24px;
  padding: 4rem 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.outro-cta-card h2 {
  font-size: 2rem;
  line-height: 1.2;
}

/* Interactive Quiz Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 10, 19, 0.85);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: hsl(var(--bg-surface));
  border: 1px solid hsl(var(--border-color));
  width: 100%;
  max-width: 580px;
  border-radius: 24px;
  padding: 3rem 2.5rem;
  box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 50px hsl(var(--accent-glow));
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.close-modal {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: hsl(var(--bg-main));
  border: 1px solid hsl(var(--border-color));
  color: hsl(var(--text-muted));
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.close-modal:hover {
  background: hsl(var(--bg-surface-hover));
  color: #fff;
  border-color: hsl(var(--text-muted) / 0.5);
}

/* Quiz UI Components */
.quiz-header {
  margin-bottom: 2rem;
}

.quiz-progress-container {
  width: 100%;
  height: 6px;
  background: hsl(var(--border-color));
  border-radius: 3px;
  margin-top: 1rem;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  width: 25%;
  background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--accent)));
  border-radius: 3px;
  transition: width 0.4s ease;
}

.quiz-step-indicator {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--accent));
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
  animation: fadeInStep 0.4s ease forwards;
}

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

.quiz-question {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.quiz-option {
  background: hsl(var(--bg-main));
  border: 1px solid hsl(var(--border-color));
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  color: hsl(var(--text-primary));
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.quiz-option:hover {
  background: hsl(var(--bg-surface-hover));
  border-color: hsl(var(--primary) / 0.5);
  transform: translateY(-2px);
}

.quiz-option.selected {
  background: hsl(var(--primary) / 0.1);
  border-color: hsl(var(--primary));
  box-shadow: 0 0 12px hsl(var(--primary-glow));
}

.quiz-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid hsl(var(--border-color));
  display: inline-block;
  flex-shrink: 0;
  position: relative;
}

.quiz-option.selected .quiz-radio {
  border-color: hsl(var(--primary));
}

.quiz-option.selected .quiz-radio::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  background: hsl(var(--primary));
  border-radius: 50%;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quiz-back-btn {
  background: transparent;
  border: none;
  color: hsl(var(--text-muted));
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  transition: color 0.2s ease;
}

.quiz-back-btn:hover {
  color: #fff;
}

.quiz-next-btn {
  background: hsl(var(--accent));
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s ease;
}

.quiz-next-btn:hover {
  background: hsl(var(--accent) / 0.85);
}

.quiz-next-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Email Capture Slide */
.email-capture-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.email-capture-title {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.email-capture-desc {
  color: hsl(var(--text-muted));
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.email-input-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.email-input {
  background: hsl(var(--bg-main));
  border: 1px solid hsl(var(--border-color));
  padding: 1.25rem;
  border-radius: 12px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  width: 100%;
  transition: all 0.2s ease;
}

.email-input:focus {
  outline: none;
  border-color: hsl(var(--accent));
  box-shadow: 0 0 15px hsl(var(--accent-glow));
}

.email-submit-btn {
  background: linear-gradient(135deg, hsl(var(--secondary)), hsl(var(--secondary-hover)));
  color: hsl(var(--bg-main));
  border: none;
  padding: 1.25rem;
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  transition: all 0.3s ease;
  width: 100%;
}

.email-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px hsl(var(--secondary) / 0.25);
}

/* Success State */
.success-state {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 0;
  animation: fadeInStep 0.5s ease forwards;
}

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: hsl(var(--secondary) / 0.15);
  color: hsl(var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.success-title {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.success-desc {
  color: hsl(var(--text-muted));
  font-size: 1rem;
  max-width: 400px;
  margin-bottom: 2rem;
}

.archetype-result-box {
  background: hsl(var(--bg-main));
  border: 1px solid hsl(var(--border-color));
  padding: 1.5rem;
  border-radius: 16px;
  width: 100%;
  margin-bottom: 2rem;
  text-align: left;
}

.result-badge {
  background: hsl(var(--accent) / 0.15);
  color: hsl(var(--accent));
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.result-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.result-text {
  font-size: 0.9rem;
  color: hsl(var(--text-muted));
}

/* Footer */
footer {
  border-top: 1px solid hsl(var(--border-color));
  background: hsl(var(--bg-main));
  padding: 3rem 2rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;
  }
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: hsl(var(--text-muted));
}

.footer-links a:hover {
  color: #fff;
}

.copyright {
  font-size: 0.85rem;
  color: hsl(var(--text-muted) / 0.6);
}

/* Custom styles for Dog Name Step & Loading State */
.quiz-input-wrapper {
  margin: 2rem 0;
  display: flex;
  justify-content: center;
}

.dog-name-input {
  background: hsl(var(--bg-main));
  border: 2px solid hsl(var(--border-color));
  padding: 1.25rem;
  border-radius: 12px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.25rem;
  width: 100%;
  max-width: 400px;
  text-align: center;
  transition: all 0.3s ease;
}

.dog-name-input:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 20px hsl(var(--primary-glow));
}

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 0;
  animation: fadeInStep 0.5s ease forwards;
}

.loading-spinner-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 2rem;
}

.loading-spinner {
  width: 120px;
  height: 120px;
  border: 4px solid hsl(var(--border-color));
  border-top: 4px solid hsl(var(--primary));
  border-bottom: 4px solid hsl(var(--accent));
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
}

.loading-percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.loading-title {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.loading-subtitle {
  color: hsl(var(--text-muted));
  font-size: 1rem;
}

}

/* Lead Capture Form Styles */
.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  display: inline-block;
  animation: bounce 2s infinite;
}

.form-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff, hsl(var(--text-muted)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.form-subtitle {
  color: hsl(var(--text-muted));
  font-size: 0.95rem;
  max-width: 320px;
  margin: 0 auto;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: hsl(var(--text-primary));
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  color: hsl(var(--text-muted));
  font-size: 1.1rem;
  pointer-events: none;
}

.form-input, .form-select {
  width: 100%;
  background: hsl(var(--bg-main));
  border: 1px solid hsl(var(--border-color));
  padding: 0.9rem 1rem 0.9rem 2.8rem;
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 15px hsl(var(--primary-glow));
}

/* Custom Select Dropdown Styling */
.form-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
}

.form-select option {
  background: hsl(var(--bg-surface));
  color: #fff;
}

/* Gender Selection Cards */
.gender-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.gender-card {
  cursor: pointer;
  position: relative;
}

.gender-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.gender-card-content {
  background: hsl(var(--bg-main));
  border: 1px solid hsl(var(--border-color));
  padding: 0.75rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.3s ease;
  text-align: center;
}

.gender-card:hover .gender-card-content {
  border-color: hsl(var(--border-color) / 1.5);
  background: hsl(var(--bg-surface-hover));
}

.gender-radio:checked + .gender-card-content {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.1);
  box-shadow: 0 0 15px hsl(var(--primary-glow));
}

.gender-emoji {
  font-size: 1.5rem;
}

.gender-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: hsl(var(--text-muted));
}

.gender-radio:checked + .gender-card-content .gender-text {
  color: #fff;
  font-weight: 600;
}

/* Bounce animation */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
