/* ============================================================
   ACCESSIBILITY TOOLBAR
============================================================ */
#a11y-toolbar {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0;
}

#a11y-toggle {
  writing-mode: vertical-rl;
  background: var(--green-600);
  color: white;
  padding: 0.75rem 0.45rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: none;
  font-family: 'Heebo', sans-serif;
  transition: background 0.2s;
}

#a11y-toggle:hover {
  background: var(--green-700);
}

#a11y-panel {
  display: none;
  flex-direction: column;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

#a11y-panel.open {
  display: flex;
}

.a11y-btn {
  background: white;
  border: none;
  border-bottom: 1px solid var(--gray-100);
  padding: 0.6rem 1rem;
  font-size: 0.78rem;
  font-family: 'Heebo', sans-serif;
  color: var(--gray-700);
  text-align: right;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.a11y-btn:hover {
  background: var(--green-50);
  color: var(--green-700);
}

.a11y-btn:last-child {
  border-bottom: none;
}

/* ============================================================
   HERO STAT CARDS & BADGES
============================================================ */
.hero-img-badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: rgba(17, 24, 39, 0.9);
  backdrop-filter: blur(8px);
  border: 1.5px solid var(--green-400);
  color: #ecfdf5;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  z-index: 2;
  animation: badge-pulse 2.5s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.45);
  }
}

.hero-stat-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 175px;
  animation: float-card 4s ease-in-out infinite;
}

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

.card-1 {
  bottom: -1.5rem;
  left: -1.5rem;
}

.card-2 {
  top: -1.5rem;
  right: -1.5rem;
  animation-delay: 2s;
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--green-50);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--gray-500);
  font-weight: 500;
}

.stat-value {
  font-size: 1rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
}

/* ============================================================
   QUIZ / FUNNEL
============================================================ */
#eligibility {
  background: var(--gray-50);
}

.quiz-wrapper {
  max-width: 680px;
  margin: 0 auto;
}

.quiz-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.quiz-header {
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  padding: 1.5rem 2rem;
  color: white;
}

.quiz-step-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.quiz-step-label {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.85;
}

.quiz-step-count {
  font-size: 0.85rem;
  font-weight: 700;
}

.progress-bar-track {
  background: rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  height: 6px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--green-400);
  border-radius: var(--radius-full);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
}

.quiz-body {
  padding: 2rem;
}

.quiz-question {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.quiz-description {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.quiz-options {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.quiz-options.two-cols {
  grid-template-columns: 1fr 1fr;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.25rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s;
  background: white;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-700);
  text-align: right;
}

.quiz-option:hover {
  border-color: var(--green-400);
  background: var(--green-50);
  color: var(--green-800);
}

.quiz-option.selected {
  border-color: var(--green-500);
  background: var(--green-50);
  color: var(--green-800);
  font-weight: 700;
}

.option-radio {
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-300);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.quiz-option.selected .option-radio {
  border-color: var(--green-500);
  background: var(--green-500);
}

.quiz-option.selected .option-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

.quiz-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
}

.tip-avatar {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.tip-text {
  font-size: 0.85rem;
  color: var(--green-800);
  line-height: 1.55;
}

.tip-text strong {
  font-weight: 700;
}

.quiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
}

.btn-quiz-next {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: 'Heebo', sans-serif;
  transition: all 0.2s;
  box-shadow: var(--shadow-green);
}

.btn-quiz-next:hover {
  transform: translateY(-2px);
}

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

.btn-quiz-back {
  font-size: 0.9rem;
  color: var(--gray-500);
  background: none;
  border: none;
  font-family: 'Heebo', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}

.btn-quiz-back:hover {
  color: var(--gray-800);
}

/* ============================================================
   FORM COMPONENTS
============================================================ */
.form-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
}

.form-input {
  padding: 0.85rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: 'Heebo', sans-serif;
  color: var(--gray-900);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  direction: rtl;
}

.form-input:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-input.error {
  border-color: #ef4444;
}

.form-input::placeholder {
  color: var(--gray-400);
}

.form-submit-btn {
  width: 100%;
  padding: 1.1rem;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-green);
  font-family: 'Heebo', sans-serif;
}

.form-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(5, 150, 105, 0.4);
}

.form-trust-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  justify-content: center;
}

.form-trust-tag {
  font-size: 0.78rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.form-trust-tag .check {
  color: var(--green-600);
  font-weight: 700;
}

.quiz-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 2rem;
  gap: 1rem;
}

.quiz-success.active {
  display: flex;
}

.success-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--green-400), var(--green-600));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: var(--shadow-green);
  animation: success-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes success-pop {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.success-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--gray-900);
}

.success-text {
  font-size: 0.95rem;
  color: var(--gray-600);
  max-width: 400px;
  line-height: 1.7;
}

.success-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: var(--radius-full);
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green-700);
}

/* ============================================================
   SERVICES / WHY TILTAN CARDS
============================================================ */
#why-tiltan {
  background: white;
}

.intro-text {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.8;
}

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

.service-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-500), var(--green-400));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--green-200);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card-icon {
  width: 52px;
  height: 52px;
  background: var(--green-50);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background 0.3s;
}

.service-card:hover .service-card-icon {
  background: var(--green-100);
}

.service-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.4rem;
}

.service-card-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-600);
  margin-bottom: 0.85rem;
  font-style: italic;
}

.service-card-text {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ============================================================
   HOW IT WORKS (STEP CARDS & GRID)
============================================================ */
#how-it-works {
  background: linear-gradient(135deg, var(--green-50) 0%, white 50%, var(--green-50) 100%);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  transform: translateY(-50%);
  right: calc(100% / 6);
  left: calc(100% / 6);
  height: 2px;
  background: linear-gradient(90deg, var(--green-200), var(--green-400), var(--green-200));
  z-index: 0;
}

.step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  color: white;
  box-shadow: var(--shadow-green);
  position: relative;
}

.step-number::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--green-200);
}

.step-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gray-900);
}

.step-text {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ============================================================
   ABOUT SECTION COMPONENTS
============================================================ */
#about {
  background: var(--white);
}

.about-lead {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--green-800);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.about-closer {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-700);
  margin-top: 1.25rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.about-features-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-card {
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.about-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: #f0fdf4;
}

.about-card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.about-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--green-800);
  margin-bottom: 0.25rem;
}

.about-card-desc {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.about-legal-callout {
  background: #fffbeb;
  border: 1.5px solid #fef3c7;
  border-right: 4px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.callout-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  line-height: 1;
}

.callout-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 0.4rem;
}

.callout-body {
  font-size: 0.88rem;
  color: #78350f;
  line-height: 1.75;
}

.statutory-warning-box {
  background: #fef2f2;
  border: 1px solid #fecdd3;
  border-right: 4px solid #ef4444;
  border-radius: var(--radius-md);
  padding: 0.9rem 1.25rem;
  font-size: 0.86rem;
  color: #991b1b;
  line-height: 1.6;
  margin: 1.25rem 0;
}

.statutory-warning-box strong {
  font-weight: 800;
}

.form-disclaimer-note {
  font-size: 0.76rem;
  color: var(--gray-500);
  text-align: center;
  margin-top: 0.5rem;
}

/* ============================================================
   RESPONSIVE (COMPONENTS)
============================================================ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps-grid::before {
    display: none !important;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  /* Quiz / Funnel */
  .quiz-wrapper {
    padding: 0;
  }

  .quiz-card {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
  }

  .quiz-header {
    padding: 1.25rem 1rem;
  }

  .quiz-body {
    padding: 1.25rem 1rem;
  }

  .quiz-question {
    font-size: 1.15rem;
    line-height: 1.35;
    margin-bottom: 0.35rem;
  }

  .quiz-description {
    font-size: 0.84rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
  }

  .quiz-options.two-cols {
    grid-template-columns: 1fr;
  }

  .quiz-option {
    padding: 0.85rem 1rem;
    font-size: 0.92rem;
    min-height: 52px;
  }

  .quiz-tip {
    padding: 0.75rem 0.85rem;
    font-size: 0.8rem;
    line-height: 1.45;
    margin-top: 1rem;
  }

  .tip-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .form-input {
    font-size: 16px; /* Avoids iOS Safari auto-zoom */
    height: 48px;
    padding: 0 0.85rem;
  }

  .form-trust-tags {
    gap: 0.4rem;
    font-size: 0.75rem;
  }

  .form-disclaimer-note {
    font-size: 0.72rem;
    line-height: 1.4;
  }

  .btn-quiz-next,
  .btn-form-submit {
    font-size: 0.98rem;
    padding: 0.85rem 1.5rem;
  }

  /* About Section */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .about-brand-badge img {
    height: 44px;
  }

  .about-features-cards {
    gap: 0.75rem;
  }

  /* Services / Why Tiltan */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .service-card {
    padding: 1.5rem 1.25rem;
    text-align: right;
  }

  /* Steps Grid ("How It Works") */
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .steps-grid::before {
    display: none !important;
  }

  .step-card {
    padding: 1.25rem 1rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--gray-100);
  }

  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
  }

  .step-title {
    font-size: 1.05rem;
  }

  .step-text {
    font-size: 0.86rem;
  }

  .statutory-warning-box {
    font-size: 0.78rem;
    padding: 0.75rem;
    line-height: 1.5;
    margin: 1.25rem auto 0;
  }

  /* A11y Toolbar */
  #a11y-toolbar {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .quiz-header {
    padding: 1rem 0.85rem;
  }

  .quiz-body {
    padding: 1rem 0.85rem;
  }

  .quiz-option {
    padding: 0.75rem 0.85rem;
    font-size: 0.88rem;
  }
}
