/* ============================================
   BYZFUNDER - CD Baby Style Landing Page
   Color Palette: Dark Green Gradient Theme
   ============================================ */

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

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

:root {
  /* Byzfunder Colors */
  --lily-pad-green: #0b3124;
  --light-lily-pad-green: #204236;
  --byz-lime: #81e863;
  --green: #1a400f;
  --light-green: #e6f0d1;
  --contrast-tint: #f0f3e8;
  
  /* Extended palette */
  --dark-bg: #061a12;
  --medium-bg: #0d2a1e;
  --hero-gradient-start: #061a12;
  --hero-gradient-end: #1a4a35;
  
  /* Text colors */
  --text-white: #ffffff;
  --text-light: rgba(255, 255, 255, 0.9);
  --text-muted: rgba(255, 255, 255, 0.7);
  --text-dark: #1a1a1a;
  --text-body: #4a5568;
  
  /* Font - Using Inter as primary font */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-dark);
  background: #f0f3e8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hide reCAPTCHA badge */
.grecaptcha-badge {
  visibility: hidden;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  background: linear-gradient(180deg, 
    var(--hero-gradient-start) 0%, 
    var(--lily-pad-green) 40%,
    var(--light-lily-pad-green) 80%,
    var(--hero-gradient-end) 100%
  );
  position: relative;
  padding-bottom: 220px; /* More space at bottom for overlap effect */
}

/* Decorative gradient overlay */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse at 80% 20%, rgba(129, 232, 99, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

/* Header */
.site-header {
  padding: 2rem 0;
  position: relative;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.logo-text {
  font-size: 1.75rem;
  font-weight: 700;
  font-style: italic;
  color: var(--text-white);
  letter-spacing: -0.5px;
  cursor: default;
  user-select: none;
}

/* Hero Content */
.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem 6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 650px;
}

.hero-left {
  color: var(--text-white);
}

/* Mobile subheader - hidden on desktop */
.mobile-subheader {
  display: none;
}

.hero-title {
  font-size: clamp(2.5rem, 4.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.75rem;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 480px;
}

.hero-cta-btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: var(--byz-lime);
  color: var(--lily-pad-green);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(129, 232, 99, 0.3);
}

.hero-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(129, 232, 99, 0.4);
  background: #6fd94e;
  color: var(--lily-pad-green);
}

/* Mobile CTA Button - Glowing effect */
.mobile-cta-btn {
  display: none;
  padding: 1rem 2.5rem;
  background: var(--byz-lime);
  color: var(--lily-pad-green);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 
    0 0 0 3px rgba(129, 232, 99, 0.4),
    0 0 20px rgba(129, 232, 99, 0.4),
    0 0 40px rgba(129, 232, 99, 0.2),
    0 4px 20px rgba(0, 0, 0, 0.2);
  animation: glowPulse 2s ease-in-out infinite;
}

.mobile-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 0 0 4px rgba(129, 232, 99, 0.5),
    0 0 30px rgba(129, 232, 99, 0.5),
    0 0 60px rgba(129, 232, 99, 0.3),
    0 6px 30px rgba(0, 0, 0, 0.25);
  background: #6fd94e;
  color: var(--lily-pad-green);
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 
      0 0 0 3px rgba(129, 232, 99, 0.4),
      0 0 20px rgba(129, 232, 99, 0.4),
      0 0 40px rgba(129, 232, 99, 0.2),
      0 4px 20px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 
      0 0 0 5px rgba(129, 232, 99, 0.5),
      0 0 30px rgba(129, 232, 99, 0.5),
      0 0 60px rgba(129, 232, 99, 0.3),
      0 4px 20px rgba(0, 0, 0, 0.2);
  }
}

/* ============================================
   HERO FORM
   ============================================ */
.hero-right {
  display: flex;
  justify-content: center;
}

/* Form pulse attention animation */
@keyframes formPulseAttention {
  0% {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  }
  25% {
    box-shadow: 0 0 0 4px rgba(129, 232, 99, 0.6), 0 0 30px rgba(129, 232, 99, 0.4), 0 20px 60px rgba(0, 0, 0, 0.15);
  }
  50% {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  }
  75% {
    box-shadow: 0 0 0 4px rgba(129, 232, 99, 0.6), 0 0 30px rgba(129, 232, 99, 0.4), 0 20px 60px rgba(0, 0, 0, 0.15);
  }
  100% {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  }
}

.hero-form.pulse-attention {
  animation: formPulseAttention 1s ease-in-out;
}

.hero-form {
  background: #ffffff;
  border-radius: 20px;
  padding: 2.75rem;
  width: 100%;
  max-width: 520px;
  box-shadow: 
    0 0 0 3px rgba(129, 232, 99, 0.3),
    0 0 40px rgba(129, 232, 99, 0.15),
    0 25px 50px -12px rgba(0, 0, 0, 0.4);
  /* Smooth height transitions when form content changes */
  min-height: 380px;
  transition: min-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-progress {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e5e7eb;
}

.progress-dots {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

/* Connecting line behind dots */
.progress-dots::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 16px;
  right: 16px;
  height: 3px;
  background: #e5e7eb;
  transform: translateY(-50%);
  z-index: 0;
  border-radius: 2px;
}

/* Progress fill line */
.progress-dots::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 16px;
  height: 3px;
  background: linear-gradient(90deg, var(--lily-pad-green), var(--byz-lime));
  transform: translateY(-50%);
  z-index: 1;
  border-radius: 2px;
  width: 0%;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-dots[data-step="1"]::after { width: 0%; }
.progress-dots[data-step="2"]::after { width: 25%; }
.progress-dots[data-step="3"]::after { width: 50%; }
.progress-dots[data-step="4"]::after { width: 75%; }
.progress-dots[data-step="5"]::after { width: 100%; }

.progress-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #9ca3af;
  position: relative;
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-dot::before {
  content: attr(data-step);
}

.progress-dot.active {
  background: var(--byz-lime);
  border-color: var(--byz-lime);
  color: var(--lily-pad-green);
  box-shadow: 0 0 0 4px rgba(129, 232, 99, 0.25), 0 4px 12px rgba(129, 232, 99, 0.3);
  transform: scale(1.1);
}

.progress-dot.completed {
  background: var(--lily-pad-green);
  border-color: var(--lily-pad-green);
  color: #ffffff;
}

.progress-dot.completed::before {
  content: '✓';
  font-size: 0.9rem;
}

.progress-text {
  font-size: 0.85rem;
  color: var(--text-body);
  font-weight: 600;
  text-align: center;
}

.progress-text span {
  color: var(--lily-pad-green);
  font-weight: 700;
}

/* Form Tabs */
.tab {
  display: none;
  transition: opacity 0.3s ease-out;
}

.tab.tab-1 {
  display: block;
}

.form-question {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--lily-pad-green);
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.hero-form .form-select,
.hero-form .form-control {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1rem;
  font-family: var(--font-primary);
  background: #ffffff;
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
}

.hero-form .form-select:focus,
.hero-form .form-control:focus {
  outline: none;
  border-color: var(--byz-lime);
  box-shadow: 0 0 0 3px rgba(129, 232, 99, 0.15);
}

.hero-form .form-control::placeholder {
  color: #9ca3af;
}

.text-danger {
  display: none;
  font-size: 0.75rem;
  color: #dc2626;
  margin-bottom: 0.5rem;
}

/* Form Navigation */
.form-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.btn-next,
.btn-submit {
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--byz-lime);
  color: var(--lily-pad-green);
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-primary);
  box-shadow: 0 4px 15px rgba(129, 232, 99, 0.4);
}

.btn-next:hover,
.btn-submit:hover {
  background: #6fd94e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(129, 232, 99, 0.5);
}

.btn-prev {
  background: transparent;
  border: none;
  color: var(--text-body);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.5rem;
  font-family: var(--font-primary);
  transition: color 0.3s ease;
  align-self: flex-start;
  text-align: left;
}

.btn-prev:hover {
  color: var(--lily-pad-green);
}

/* Form Row */
.form-row {
  display: flex;
  gap: 0.75rem;
}

.form-field {
  margin-bottom: 0.5rem;
}

.form-field.half {
  flex: 1;
}

/* Consent */
.form-consent {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
}

.consent-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-body);
  cursor: pointer;
  margin-bottom: 0.25rem;
}

.consent-label input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--lily-pad-green);
}

.consent-text {
  font-size: 0.7rem;
  color: #9ca3af;
  line-height: 1.4;
}

.consent-text a {
  color: var(--lily-pad-green);
}

/* Secure Badge */
.form-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.75rem;
  color: #9ca3af;
}

.form-secure svg {
  color: var(--byz-lime);
}

/* Form Badges */
.form-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.form-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
}

.form-badge svg {
  color: var(--byz-lime);
  flex-shrink: 0;
}

/* Authorization text below submit button */
.authorization-text {
  font-size: 0.7rem;
  color: #6b7280;
  text-align: center;
  line-height: 1.5;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
}

.authorization-text a {
  color: #3b82f6;
  text-decoration: underline;
}

.authorization-text a:hover {
  color: #1d4ed8;
}

/* ============================================
   OVERLAPPING FEATURES CARD
   ============================================ */
.features-card {
  position: relative;
  z-index: 20;
  max-width: 950px;
  margin: 0 auto;
  padding: 0 2rem;
  margin-top: -80px; /* Pull up to overlap hero section */
}

.features-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-item {
  text-align: center;
  padding: 0.5rem;
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(129, 232, 99, 0.12);
  border-radius: 14px;
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  color: var(--byz-lime);
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--lily-pad-green);
  margin-bottom: 0.75rem;
}

.feature-text {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* Diagonal stripe removed */

/* ============================================
   PRODUCTS/PRICING SECTION
   ============================================ */
.products-section {
  background: #f0f3e8;
  padding: 5rem 2rem 4rem;
  position: relative;
}

.products-container {
  max-width: 1100px;
  margin: 0 auto;
}

.products-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 0.5rem;
}

.products-subtitle {
  font-size: 1rem;
  color: var(--text-body);
  text-align: center;
  margin-bottom: 2.5rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* Product Card */
.product-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
              0 10px 15px -3px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  position: relative;
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
              0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

.product-card.featured {
  border: 2px solid var(--byz-lime);
  box-shadow: 0 10px 15px -3px rgba(129, 232, 99, 0.1),
              0 20px 25px -5px rgba(129, 232, 99, 0.05);
}

.product-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--byz-lime);
  color: var(--lily-pad-green);
  padding: 0.3rem 0.875rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 0 0 6px 6px;
}

.product-header {
  background: linear-gradient(135deg, var(--lily-pad-green) 0%, var(--light-lily-pad-green) 100%);
  padding: 1.25rem;
  text-align: center;
}

.product-card.featured .product-header {
  padding-top: 1.75rem;
}

.product-label {
  color: var(--text-white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.product-body {
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.product-amount {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--lily-pad-green);
  margin-bottom: 1.25rem;
}

.product-features {
  list-style: none;
  text-align: left;
  margin-bottom: 1.5rem;
}

.product-features li {
  padding: 0.5rem 0;
  font-size: 0.85rem;
  color: var(--text-body);
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.product-features li::before {
  content: none;
}

.product-features li:last-child {
  border-bottom: none;
}

.product-features li strong {
  color: var(--text-dark);
}

/* Check and X icons for comparison */
.check-icon {
  color: var(--byz-lime);
  font-weight: 700;
  flex-shrink: 0;
  margin-right: 0.25rem;
}

.x-icon {
  color: #ef4444;
  font-weight: 700;
  flex-shrink: 0;
  margin-right: 0.25rem;
}

/* Traditional lenders card (negative styling) */
.traditional-card {
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
}

.traditional-card .product-header {
  background: #f1f5f9;
}

.traditional-card .product-label {
  color: var(--text-dark);
}

.traditional-card .product-body {
  padding-top: 1.25rem;
}

.negative-list li {
  color: #6b7280;
  font-weight: 400;
}

/* ByzFunder cards - bolder text */
.product-card.featured .product-features li,
.product-card.term-card .product-features li {
  font-weight: 600;
  color: var(--text-dark);
}

/* Term loan card styling */
.term-card {
  background: var(--light-green);
  border: 1px solid rgba(129, 232, 99, 0.3);
}

.product-cta {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: var(--byz-lime);
  color: var(--lily-pad-green);
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-align: center;
  font-size: 0.9rem;
}

.product-cta:hover {
  background: #6fd94e;
  color: var(--lily-pad-green);
}

/* ============================================
   BENEFITS SECTION
   ============================================ */
.benefits-section {
  background: linear-gradient(135deg, var(--lily-pad-green) 0%, var(--light-lily-pad-green) 100%);
  padding: 4rem 2rem;
}

.benefits-container {
  max-width: 1100px;
  margin: 0 auto;
}

.benefits-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-white);
  text-align: center;
  margin-bottom: 2.5rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.benefit-item {
  text-align: center;
  padding: 1.25rem;
}

.benefit-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-icon svg {
  width: 24px;
  height: 24px;
  color: var(--byz-lime);
}

.benefit-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 0.375rem;
}

.benefit-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ============================================
   FOOTER CTA
   ============================================ */
.footer-cta {
  background: var(--dark-bg);
  padding: 3.5rem 2rem;
  text-align: center;
}

.footer-cta-content {
  max-width: 550px;
  margin: 0 auto;
}

.footer-cta h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.75rem;
}

.footer-cta p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.footer-cta-btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: var(--byz-lime);
  color: var(--lily-pad-green);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.footer-cta-btn:hover {
  background: #6fd94e;
  transform: translateY(-2px);
  color: var(--lily-pad-green);
}

/* ============================================
   SITE FOOTER
   ============================================ */
.site-footer {
  background: var(--dark-bg);
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-content p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--byz-lime);
}

/* ============================================
   LOADING OVERLAY
   ============================================ */
#loadHolder {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
}

#loadHolder.show {
  display: flex;
  justify-content: center;
  align-items: center;
}

.loading-container {
  text-align: center;
}

.loading {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--byz-lime);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

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

#loading-text {
  color: var(--text-white);
  font-size: 0.85rem;
  font-weight: 500;
}

.masterContainerToBlur {
  filter: blur(4px);
}

/* ============================================
   SELECTIZE OVERRIDES
   ============================================ */
.selectize-control.form-select {
  padding: 0 !important;
  height: auto !important;
  border: none !important;
  background: none !important;
}

.selectize-control.single .selectize-input {
  padding: 0.75rem 2.25rem 0.75rem 1rem !important;
  border: 2px solid #e5e7eb !important;
  border-radius: 8px !important;
  font-size: 0.95rem !important;
  min-height: auto !important;
  box-shadow: none !important;
  background: #ffffff !important;
}

.selectize-control.single .selectize-input.focus,
.selectize-control.single .selectize-input.dropdown-active {
  border-color: var(--byz-lime) !important;
  box-shadow: 0 0 0 3px rgba(129, 232, 99, 0.15) !important;
}

.selectize-dropdown {
  border: 2px solid var(--byz-lime) !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
  margin-top: 4px !important;
}

.selectize-dropdown .option {
  padding: 0.625rem 1rem !important;
  font-size: 0.9rem !important;
}

.selectize-dropdown .option:hover,
.selectize-dropdown .option.active {
  background: var(--contrast-tint) !important;
  color: var(--lily-pad-green) !important;
}

.selectize-control.single .selectize-input::after {
  border-color: var(--lily-pad-green) transparent transparent transparent !important;
  right: 10px !important;
}

.selectize-control.error .selectize-input {
  border-color: #dc2626 !important;
}

/* ============================================
   VALIDATION STYLES
   ============================================ */
label.error.fail-alert {
  display: block !important;
  color: #dc2626;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

input.error,
select.error {
  border-color: #dc2626 !important;
}

input.valid,
select.valid {
  border-color: var(--byz-lime) !important;
}

/* Mobile rate badge - hidden on desktop */
.mobile-rate-badge {
  display: none;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1024px) {
  /* Mobile rate badge */
  .mobile-rate-badge {
    display: inline-block;
    background: linear-gradient(135deg, #81e863 0%, #5fd43a 100%);
    color: #0b3124;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(129, 232, 99, 0.25);
  }
  
  /* Mobile hero - no full viewport height, form shows immediately */
  .hero-section {
    min-height: auto;
    display: block;
    padding-bottom: 120px;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 1rem;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }
  
  .hero-left {
    text-align: center;
    order: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: auto;
    padding: 1.5rem 0 1rem;
  }
  
  .hero-title {
    max-width: 320px;
  }
  
  /* Hide subtitle on mobile */
  .hero-subtitle {
    display: none;
  }
  
  /* Hide both CTA buttons on mobile */
  .hero-cta-btn {
    display: none;
  }
  
  .mobile-cta-btn {
    display: none;
  }
  
  .hero-right {
    order: 2;
    width: 100%;
    padding: 1rem 0;
  }
  
  .hero-form {
    max-width: 100%;
    margin: 0 -0.5rem;
    width: calc(100% + 1rem);
  }
  
  .features-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
  }
  
  .products-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }
  
  /* Move traditional loans card to the end on mobile */
  .traditional-card {
    order: 3;
  }
  
  .product-card.featured {
    order: 1;
  }
  
  .product-card.term-card {
    order: 2;
  }
  
  .product-card.featured {
    order: -1;
  }
  
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 1rem;
  }
  
  .header-inner {
    justify-content: center;
  }
  
  .logo-text {
    font-size: 1.2rem;
  }
  
  .mobile-subheader {
    display: block;
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    width: 100%;
    padding: 0 0.5rem;
  }
  
  .hero-right {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-title {
    font-size: 1.75rem;
    max-width: 280px;
    line-height: 1.2;
    margin-bottom: 0.75rem;
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
    max-width: 300px;
  }
  
  .hero-content {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 0.75rem !important;
    width: 100% !important;
  }
  
  .hero-right {
    width: 100% !important;
    padding: 0 !important;
  }
  
  .hero-form {
    padding: 1.25rem 1rem;
    max-width: 100% !important;
    width: 100% !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    background: #ffffff;
  }
  
  .form-question {
    font-size: 1rem;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  /* Stack features vertically on mobile */
  .features-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 12px;
  }
  
  .feature-item .feature-icon {
    margin: 0 0 0.5rem 0;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
  }
  
  .feature-item h3 {
    margin-bottom: 0.25rem !important;
    font-size: 1rem !important;
  }
  
  .feature-item p {
    font-size: 0.85rem !important;
    margin: 0;
  }
  
  .form-field.half {
    width: 100%;
  }
  
  /* Full width features section on mobile - no container */
  .features-card {
    margin-top: 0 !important;
    padding: 2rem 1rem !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #f0f3e8 !important;
  }
  
  .features-card h2 {
    font-size: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  .diagonal-stripe {
    height: 40px;
    margin-top: -20px;
  }
  
  .products-section {
    padding: 3rem 1rem;
  }
  
  .products-title {
    font-size: 1.5rem;
  }
  
  .benefits-section {
    padding: 3rem 1rem;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .benefits-title {
    font-size: 1.35rem;
    margin-bottom: 2rem;
  }
  
  .footer-cta {
    padding: 2.5rem 1.5rem;
  }
  
  .footer-cta h2 {
    font-size: 1.35rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-form {
    padding: 1rem;
    border-radius: 12px;
  }
  
  .form-progress {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
  
  .progress-text {
    display: none;
  }
  
  .hero-form .form-select,
  .hero-form .form-control {
    padding: 0.625rem 0.875rem;
    font-size: 0.9rem;
  }
  
  .btn-next,
  .btn-submit {
    padding: 0.625rem;
  }
  
  .product-amount {
    font-size: 1.5rem;
  }
  
  .feature-text {
    font-size: 0.8rem;
  }
}

/* ============================================
   ANIMATION HELPERS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab.tab-entering {
  animation: slideInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab.tab-entering-back {
  animation: slideInLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Stagger animation for form fields in contact step */
.tab-5.tab-entering .form-field,
.tab-5.tab-entering .form-row {
  opacity: 0;
  animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.tab-5.tab-entering .form-field:nth-of-type(1) { animation-delay: 0.05s; }
.tab-5.tab-entering .form-row:nth-of-type(1) { animation-delay: 0.1s; }
.tab-5.tab-entering .form-field:nth-of-type(2) { animation-delay: 0.15s; }
.tab-5.tab-entering .form-field:nth-of-type(3) { animation-delay: 0.2s; }

.tab-5.tab-entering .form-nav {
  opacity: 0;
  animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 0.25s;
}

.tab-5.tab-entering .form-consent {
  opacity: 0;
  animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 0.3s;
}
