/* ============================================================
   MATH TUTORING WEBSITE — styles.css
   ============================================================ */

/* Ensure the HTML hidden attribute always works */
[hidden] { display: none !important; }

/* ===================== CSS VARIABLES ===================== */
:root {
  --primary:        #F72585;
  --primary-dark:   #C9184A;
  --primary-light:  #FFCCD5;
  --navy:           #2A0A1F;
  --navy-mid:       #C9184A;
  --navy-light:     #FF6B35;
  --accent:         #F59E0B;
  --accent-dark:    #D97706;
  --purple:         #7B1FA2;
  --success:        #10B981;
  --success-light:  #ECFDF5;
  --error:          #EF4444;
  --error-light:    #FEF2F2;
  --bg:             #FFF0F6;
  --bg-alt:         #FFF8FB;
  --text:           #1E293B;
  --text-light:     #64748B;
  --text-muted:     #94A3B8;
  --border:         #E2E8F0;
  --border-focus:   #F472B6;
  --white:          #FFFFFF;
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:      0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg:      0 16px 48px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
  --radius-sm:      6px;
  --radius:         12px;
  --radius-lg:      20px;
  --radius-xl:      28px;
  --transition:     0.2s ease;
  --transition-md:  0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
}

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
}

.playfair {
  font-family: 'Nunito', sans-serif;
}

/* ===================== LAYOUT ===================== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===================== REUSABLE COMPONENTS ===================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--transition-md);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(233, 30, 140, 0.35);
}

.btn-accent {
  background: var(--accent);
  color: var(--navy);
  border-color: var(--accent);
  font-weight: 700;
}
.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.btn-submit {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all var(--transition-md);
  position: relative;
  overflow: hidden;
  border: none;
}
.btn-submit:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(233, 30, 140, 0.35);
}
.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}
.btn-submit.loading .btn-text {
  opacity: 0;
}
.btn-submit.loading .btn-spinner {
  display: block;
}
.btn-spinner {
  display: none;
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* Section headers */
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

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

.section-title {
  font-family: 'Abril Fatface', cursive;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--navy);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* Scroll fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ===================== NAVBAR ===================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all var(--transition-md);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
  padding: 0.875rem 0;
}

.nav-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--white);
  transition: color var(--transition);
  text-decoration: none;
}

.navbar.scrolled .nav-logo {
  color: var(--navy);
}

.logo-symbol {
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 1;
  font-family: 'Abril Fatface', cursive;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  transition: all var(--transition);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.navbar.scrolled .nav-link {
  color: var(--text);
}

.navbar.scrolled .nav-link:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
  margin-left: 0.5rem;
}

.nav-cta:hover {
  background: var(--accent-dark) !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: none;
  border: none;
}

.bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition-md);
}

.navbar.scrolled .bar {
  background: var(--navy);
}

.hamburger.open .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* ===================== HERO ===================== */
.hero {
  min-height: 100vh;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 55%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 1.5rem 4rem;
}

/* Floating background symbols */
.hero-symbols {
  position: absolute;
  inset: 0;
  pointer-events: none;
  user-select: none;
}

.sym {
  position: absolute;
  font-size: 3rem;
  color: rgba(255,255,255,0.06);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  animation: floatAnim linear infinite;
  will-change: transform;
}

/* Individual symbol positions and animation timing */
.sym-1  { top: 8%;   left: 5%;  font-size: 4rem;  animation-duration: 18s; animation-delay: 0s;    }
.sym-2  { top: 15%;  left: 20%; font-size: 3.5rem; animation-duration: 22s; animation-delay: -3s;   }
.sym-3  { top: 60%;  left: 8%;  font-size: 2.5rem; animation-duration: 16s; animation-delay: -6s;   }
.sym-4  { top: 75%;  left: 25%; font-size: 5rem;   animation-duration: 25s; animation-delay: -9s;   }
.sym-5  { top: 20%;  right: 10%; font-size: 3rem;  animation-duration: 20s; animation-delay: -2s;   }
.sym-6  { top: 50%;  right: 5%;  font-size: 4.5rem; animation-duration: 19s; animation-delay: -5s;  }
.sym-7  { top: 80%;  right: 18%; font-size: 3.5rem; animation-duration: 23s; animation-delay: -8s;  }
.sym-8  { top: 35%;  left: 50%; font-size: 1.8rem; animation-duration: 21s; animation-delay: -11s;  }
.sym-9  { top: 5%;   right: 35%; font-size: 3rem;  animation-duration: 17s; animation-delay: -4s;   }
.sym-10 { top: 88%;  left: 55%; font-size: 2.5rem; animation-duration: 24s; animation-delay: -13s;  }
.sym-11 { top: 45%;  left: 2%;  font-size: 2.8rem; animation-duration: 19s; animation-delay: -7s;   }
.sym-12 { top: 92%;  right: 40%; font-size: 2rem;  animation-duration: 15s; animation-delay: -10s;  }

@keyframes floatAnim {
  0%   { transform: translateY(0px)   rotate(0deg)   scale(1);   }
  25%  { transform: translateY(-18px) rotate(3deg)   scale(1.02); }
  50%  { transform: translateY(-8px)  rotate(-2deg)  scale(0.98); }
  75%  { transform: translateY(-22px) rotate(2deg)   scale(1.01); }
  100% { transform: translateY(0px)   rotate(0deg)   scale(1);   }
}

.hero-content {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.45rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  backdrop-filter: blur(8px);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulseDot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.7; }
}

.hero-title {
  font-family: 'Abril Fatface', cursive;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em;
}

.hero-italic {
  font-style: italic;
  color: var(--accent);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: rgba(255,255,255,0.8);
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

/* Hero stats bar */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 1.25rem 2rem;
  backdrop-filter: blur(8px);
  flex-wrap: wrap;
  gap: 1.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.stat-num {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.stat-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.15);
}


/* ===================== SUBJECTS ===================== */
.subjects {
  background: var(--bg);
  padding: 6rem 0;
}

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

.subject-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-md);
  cursor: default;
}

/* Top gradient border on hover */
.subject-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-md);
  border-radius: 3px 3px 0 0;
}

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

.subject-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

/* Featured card — dark navy, always shows border */
.subject-card--featured {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.subject-card--featured::before {
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transform: scaleX(1);
}

.subject-card--featured:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
}

.subject-card--featured .card-title {
  color: var(--white);
}

.subject-card--featured .card-desc {
  color: rgba(255,255,255,0.7);
}

.subject-card--featured .card-topics li {
  color: rgba(255,255,255,0.65);
  border-bottom-color: rgba(255,255,255,0.1);
}

.subject-card--featured .card-topics li::before {
  background: var(--accent);
}

.featured-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--accent);
  color: var(--navy);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 100px;
}

.card-icon {
  font-size: 2.25rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1;
}

.subject-card--featured .card-icon {
  color: var(--accent);
}

.card-title {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.625rem;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.card-topics {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.card-topics li {
  font-size: 0.8375rem;
  color: var(--text-light);
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-topics li:last-child {
  border-bottom: none;
}

.card-topics li::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}


/* ===================== ABOUT ===================== */
.about {
  background: var(--white);
  padding: 6rem 0;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 5rem;
  align-items: center;
}

/* Photo */
.about-photo-wrap {
  position: relative;
}

.about-photo-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 8%;
  display: block;
  border-radius: var(--radius-lg);
}

/* Formula overlay */
.photo-formula-overlay {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: rgba(199, 24, 74, 0.92);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  max-width: 240px;
}

.photo-formula-overlay code {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.7rem;
  color: #FFE4EE;
  line-height: 1.6;
  display: block;
  white-space: nowrap;
}

.photo-formula-overlay sub {
  font-size: 0.65em;
}

/* About text */
.about-title {
  margin-bottom: 1.25rem;
}

.text-accent {
  color: var(--primary);
}

.about-lead {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about-body {
  font-size: 0.9875rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* Checklist */
.about-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
}

.check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--success);
  border-radius: 50%;
  color: white;
  flex-shrink: 0;
}


/* ===================== HOW IT WORKS ===================== */
.how-it-works {
  background: var(--bg);
  padding: 6rem 0;
}

.steps-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.step {
  flex: 1;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  border: 1px solid var(--border);
  transition: all var(--transition-md);
  position: relative;
}

.step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.step-number {
  font-size: 2.75rem;
  font-weight: 800;
  font-family: 'Nunito', sans-serif;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1.25rem;
}

.step-icon {
  color: var(--primary);
  margin-bottom: 1rem;
}

.step-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

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

.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  padding-top: 3rem;
  flex-shrink: 0;
}


/* ===================== BOOK A SESSION ===================== */
.book-section {
  background: var(--white);
  padding: 6rem 0;
}

.form-wrapper {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-md);
}

/* Form layout */
.booking-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

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

.required {
  color: var(--error);
  margin-left: 2px;
}

.optional {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.8125rem;
}

/* Inputs */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 0.9375rem;
  color: var(--text);
  transition: all var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:hover {
  border-color: var(--text-muted);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.15);
}

.form-input.input-error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

/* Select wrapper */
.select-wrap {
  position: relative;
}

.select-wrap .form-select {
  padding-right: 2.75rem;
  cursor: pointer;
}

.select-arrow {
  position: absolute;
  right: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

/* Field hints & errors */
.field-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.field-error {
  font-size: 0.8125rem;
  color: var(--error);
  font-weight: 500;
  min-height: 1.1em;
  display: block;
}

/* Date and time native styling */
input[type="date"],
input[type="time"] {
  color-scheme: light;
}

/* Success state */
.form-success {
  text-align: center;
  padding: 3rem 2rem;
}

.success-icon {
  width: 72px;
  height: 72px;
  background: var(--success-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--success);
}

.success-title {
  font-family: 'Abril Fatface', cursive;
  font-size: 1.75rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.success-message {
  font-size: 0.9875rem;
  color: var(--text-light);
  line-height: 1.75;
  max-width: 440px;
  margin: 0 auto 2rem;
}

/* Error box state */
.form-error-box {
  background: var(--error-light);
  border: 1px solid #FECACA;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-top: 1rem;
  color: var(--error);
}

.error-box-icon {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--error);
}

.error-box-msg {
  font-size: 0.9rem;
  font-weight: 600;
  color: #B91C1C;
  margin-bottom: 0.25rem;
}

.error-box-fallback {
  font-size: 0.875rem;
  color: #B91C1C;
}

.error-link {
  text-decoration: underline;
  color: #B91C1C;
  font-weight: 600;
}

.error-link:hover {
  color: var(--error);
}


/* ===================== CONTACT SECTION ===================== */
.contact-section {
  background: var(--bg);
  padding: 5rem 0;
}

.contact-card {
  max-width: 580px;
  margin: 0 auto;
  border: 2px solid var(--primary);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  background: var(--white);
  text-align: center;
  box-shadow: 0 4px 32px rgba(247, 37, 133, 0.12);
}

.contact-title {
  margin-bottom: 0.75rem;
}

.contact-subtitle {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9875rem;
  font-weight: 600;
  color: var(--primary-dark);
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border: 1.5px solid var(--primary-light);
  border-radius: 100px;
  background: var(--primary-light);
  transition: all var(--transition-md);
  width: 100%;
  max-width: 360px;
  justify-content: center;
}

.contact-item:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(247, 37, 133, 0.3);
}

.contact-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ===================== SESSION TYPE PILLS ===================== */
.session-type-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.session-type-option {
  cursor: pointer;
}

.session-type-option input[type="radio"] {
  display: none;
}

.session-type-option span {
  display: block;
  padding: 0.6rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
  background: var(--white);
  transition: all var(--transition);
  cursor: pointer;
  user-select: none;
}

.session-type-option span:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.session-type-option input:checked + span {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* ===================== FOOTER ===================== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.9);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.25fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
}

.footer-heading {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-link {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--white);
}

.footer-meet {
  cursor: default;
}

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
}

.footer-sub {
  font-style: italic;
}


/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .subjects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-layout {
    gap: 3rem;
  }
}

@media (max-width: 768px) {

  /* Navbar mobile */
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(42, 10, 31, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.25rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-md);
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .navbar.scrolled .nav-links {
    background: rgba(255,255,255,0.97);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }

  .nav-cta {
    margin-left: 0 !important;
    text-align: center;
  }

  /* Hero */
  .hero {
    padding: 7rem 1.25rem 3.5rem;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
  }

  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
  }

  .stat-divider {
    display: none;
  }

  /* Subjects */
  .subjects-grid {
    grid-template-columns: 1fr;
  }

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

  .about-photo-wrap {
    max-width: 320px;
    margin: 0 auto;
  }

  /* Steps */
  .steps-row {
    flex-direction: column;
    align-items: stretch;
  }

  .step-connector {
    padding: 0;
    transform: rotate(90deg);
    align-self: center;
  }

  /* Form */
  .form-wrapper {
    padding: 2rem 1.25rem;
    border-radius: var(--radius-lg);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    justify-content: center;
  }

  .stat-item {
    min-width: 80px;
  }

  .section-tag {
    font-size: 0.7rem;
  }

  .form-wrapper {
    padding: 1.5rem 1rem;
  }

  .btn {
    padding: 0.75rem 1.375rem;
    font-size: 0.875rem;
  }
}

/* ===================== ACCESSIBILITY ===================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Skip to main content (screen reader helper) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 9999;
  background: var(--accent);
  color: var(--navy);
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  left: 1rem;
}

/* ===================== PRINT STYLES ===================== */
@media print {
  .navbar,
  .hero-symbols,
  .hamburger,
  .footer {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 2rem;
  }

  body {
    font-size: 12pt;
    color: black;
  }
}
