/* PRS-educ Styles — Minimal & Modern */
:root {
  --bg: #0b0e14;
  --panel: #0f1320;
  --text: #e6edf3;
  --muted: #9aa7b2;
  --line: #263042;
  --accent: #0ea5e9;
  --accent-2: #22d3ee;
  --ok: #10b981;
  --warn: #f59e0b;
  --radius: 16px;
  --shadow: 0 10px 25px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

/* Site background layers (clean, subtle, mobile-friendly) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(50vw 40vh at 80% -10%, rgba(14,165,233,0.10), rgba(14,165,233,0.00) 60%),
    radial-gradient(60vw 45vh at 10% 120%, rgba(59,130,246,0.06), rgba(59,130,246,0.00) 60%),
    linear-gradient(180deg, #0b0e14 0%, #070b12 100%);
}

/* Soft vignette to avoid harsh edges */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(120% 100% at 50% 120%, rgba(0,0,0,0.35), transparent 50%);
}

@media (max-width: 900px) {
  body::before {
    background:
      radial-gradient(80vw 40vh at 50% -20%, rgba(14,165,233,0.10), rgba(14,165,233,0.00) 60%),
      radial-gradient(100vw 60vh at 50% 120%, rgba(59,130,246,0.06), rgba(59,130,246,0.00) 60%),
      linear-gradient(180deg, #0b0e14 0%, #070b12 100%);
  }
  body::after {
    background: radial-gradient(150% 120% at 50% 120%, rgba(0,0,0,0.35), transparent 55%);
  }
}

.section { padding: clamp(56px, 8vw, 96px) 16px; }
.section.alt { background: none; }
/* Tighter vertical spacing between key sections */
#about { padding-top: clamp(28px, 4vw, 48px); }
#about + .section { padding-top: clamp(28px, 4vw, 48px); }
#subjects { padding-top: clamp(28px, 4vw, 48px); }
#contact { padding-top: clamp(28px, 4vw, 48px); }
/* Slimmer CTA (“Ready to Get Started?”) */
#booking { padding: clamp(36px, 6vw, 60px) 16px; }
.cta-content { padding: 1.25rem 0; }
@media (max-width: 600px) {
  .cta-content { padding: .9rem 0; }
}

.wrap { max-width: 1120px; margin: 0 auto; }
.wrap.narrow { max-width: 820px; }

.brand-title {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2), #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  position: relative;
  animation: brandGlow 3s ease-in-out infinite alternate;
}

.brand-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  opacity: 0.8;
  animation: underlineGlow 2s ease-in-out infinite alternate;
}

@keyframes brandGlow {
  0% { filter: brightness(1); }
  100% { filter: brightness(1.1); }
}

@keyframes underlineGlow {
  0% { opacity: 0.6; transform: scaleX(1); }
  100% { opacity: 1; transform: scaleX(1.1); }
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6rem; }
h1 { font-size: clamp(28px, 5vw, 44px); letter-spacing: .2px; }
h2 { font-size: clamp(22px, 3.2vw, 32px); margin-bottom: 1rem; }
h3 { font-size: clamp(18px, 2.6vw, 24px); }

p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.hero-text .hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 8px; }
.badges { display: flex; gap: 12px; list-style: none; padding: 0; margin: 16px 0 0; flex-wrap: wrap; }
.badges li { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.hero-media .img-ph {
  height: 280px; border-radius: var(--radius);
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(14,165,233,.15), rgba(34,211,238,.05));
  border: 1px solid var(--line);
  color: var(--muted);
}
.hero-media .hero-img {
  height: 320px; width: 100%; border-radius: var(--radius);
  object-fit: cover; object-position: 50% 15%;
  display: block; border: 1px solid var(--line);
  background: #0b1220;
}


/* Buttons */
.btn {
  appearance: none; border: 1px solid var(--line); background: transparent; color: var(--text);
  padding: 10px 16px; border-radius: 999px; cursor: pointer;
  transition: transform .06s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { border-color: rgba(255,255,255,.25); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(90deg, var(--accent), var(--accent-2)); border: none; color: #001018; font-weight: 600; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px;
}
.cards.pricing .card {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  background: linear-gradient(135deg, rgba(255,255,255,.03) 0%, rgba(255,255,255,.01) 100%);
  border: 1px solid rgba(255,255,255,.1);
}
.cards.pricing .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
  border-color: var(--accent);
}
.cards.pricing .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cards.pricing .card:hover::before {
  opacity: 1;
}
.cards.pricing .card h4 {
  margin-bottom: .5rem;
  margin-top: 0;
  font-size: 1.2rem;
  color: var(--accent-2);
}
.cards.pricing .card .sub-note { display: block; margin: -.5rem 0 0; height: 1rem; line-height: 1rem; font-size: .9rem; color: var(--muted); font-style: italic; }
.cards.pricing .card .sub-note + .price { margin-top: 0; }

.cards.pricing .card .price {
  margin: .5rem 0;
  font-weight: 700;

  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--accent); /* Fallback for browsers that don't support background-clip */
}
.cards.pricing .card .price .currency,
.cards.pricing .card .price .per-hour {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--accent); /* Fallback */
}


/* ——— Correctly scoped (fix for nested block) ——— */
/* Add color + structure to About panels */
#about .wrap.narrow,
#about + .section .wrap.narrow {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px; /* internal padding only; preserves section spacing */
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  overflow: hidden;
}
#about .wrap.narrow::before,
#about + .section .wrap.narrow::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: .8;
}
#about .wrap.narrow::after,
#about + .section .wrap.narrow::after {
  content: ""; position: absolute; right: -20%; top: -30%; width: 40%; height: 70%;
  background: radial-gradient(60% 60% at 50% 50%, rgba(14,165,233,0.08), transparent 70%);
  filter: blur(10px); pointer-events: none;
}

/* Checklist with accent ticks */
.checklist { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 8px; }
.checklist li { position: relative; padding: 10px 12px 10px 38px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,0.02); }
.checklist li::before { content: "✓"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .8rem; color: #001018; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 2px 6px rgba(14,165,233,.35); }

/* FAQ folder emojis on group headers only */
#faq details.faq.group > summary { display: flex; align-items: center; gap: 8px; }
#faq details.faq.group > summary::before { font-size: 1.1rem; }
#faq details.faq.group:nth-of-type(1) > summary::before { content: "❓"; }
#faq details.faq.group:nth-of-type(2) > summary::before { content: "💳"; }
#faq details.faq.group:nth-of-type(3) > summary::before { content: "📅"; }
#faq details.faq.group:nth-of-type(4) > summary::before { content: "📝"; }
#faq details.faq.group:nth-of-type(5) > summary::before { content: "⭐"; }


.cards.pricing .card ul {
  flex-grow: 1;
  margin: 1.5rem 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  width: 100%;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
}
.cards.pricing .card ul li {
  margin: 0;
  padding: 4px 8px 4px 0;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: rgba(255,255,255,0.9);
  transition: color 0.2s ease;
}
.cards.pricing .card ul li::before {
  content: '✓';
  color: var(--accent);
  font-weight: bold;
  flex-shrink: 0;
  font-size: 1.2em;
  text-shadow: 0 0 4px rgba(0, 255, 255, 0.3);
  text-shadow: 0 0 4px rgba(0,255,255,0.3);
}
.cards.pricing .card .btn {
  margin-top: auto;
  align-self: center;
  transition: all 0.3s ease;
}
.cards.pricing .card:hover .btn {
  transform: scale(1.05);
}
.session-category {
  color: var(--accent-2); margin: 2rem 0 1rem; font-size: 1.5rem;
  text-align: center; border-bottom: 1px solid var(--line); padding-bottom: 8px;
}
.session-category:first-of-type { margin-top: 1.5rem; }
.session-desc {
  color: var(--muted); font-size: .9rem; margin-bottom: 1rem;
  font-style: italic; text-align: center;
}
.price { font-size: 34px; margin: .25rem 0 .75rem; }
.price .currency { opacity: .8; font-size: .7em; margin-right: 4px; }
.price .per-hour { opacity: .8; font-size: .5em; margin-left: 2px; }

.testimonial-featured, .testimonial-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  font-style: italic;
  line-height: 1.7;
}
.testimonial-featured footer, .testimonial-card footer {
  margin-top: 12px;
  font-style: normal;
  color: var(--muted);
  text-align: right;
}

.testimonial-carousel {
  position: relative;
  transition: height 0.3s ease;
  padding-bottom: 24px; /* Make room for dots */
}
.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  grid-auto-rows: min-content;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 16px;
  scroll-behavior: smooth;
  align-items: start;
}
.carousel-track .testimonial-card {
  scroll-snap-align: start;
  max-width: 100%;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 999px;
  border: none; background: rgba(255,255,255,.15);
  color: var(--text); cursor: pointer;
  font-size: 18px; font-weight: bold;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.carousel-btn.prev { left: -50px; }
.carousel-btn.next { right: -50px; }
.carousel-btn:hover {
  background: rgba(255,255,255,.25);
  transform: translateY(-50%) scale(1.1);
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
}
.carousel-dots .dot { width: 8px; height: 8px; border-radius: 999px; border: none; background: rgba(255,255,255,.25); cursor: pointer; }
.carousel-dots .dot.active { background: var(--accent); }
@media (max-width: 640px) {
  .carousel-btn { display: none; }
  .carousel-dots { display: none; }

  /* Show all testimonials stacked on mobile */
  .testimonial-carousel {
    height: auto !important;
    min-height: auto !important;
    padding-bottom: 0;
  }

  .carousel-track {
    display: block !important;
    overflow-x: visible !important;
    scroll-snap-type: none !important;
    gap: 20px;
  }

  .carousel-track .testimonial-card {
    scroll-snap-align: none;
    margin-bottom: 20px;
    height: auto;
    min-height: auto;
  }

  .carousel-track .testimonial-card:last-child {
    margin-bottom: 0;
  }
}
.testimonial-stack .testimonial-card { margin-bottom: 20px; }
.testimonial-stack .testimonial-card:last-child { margin-bottom: 0; }


.cards.testimonials .card { font-style: italic; }

/* Subjects */
.cards.subjects { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.subject-card {
  text-align: center; transition: transform .2s ease, box-shadow .2s ease;
  background: linear-gradient(135deg, rgba(14,165,233,.08), rgba(34,211,238,.03));
  border: 1px solid rgba(14,165,233,.2);
}
.subject-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(14,165,233,.15), var(--shadow);
  border-color: rgba(14,165,233,.4);
}
.subject-icon {
  font-size: 2.5rem; margin-bottom: 12px; display: block;
  filter: drop-shadow(0 2px 8px rgba(14,165,233,.3));
}
.subject-card h3 {
  color: var(--accent-2); margin-bottom: 8px;
  text-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.subject-card p {
  color: var(--muted); font-size: .9rem; margin-bottom: 16px; line-height: 1.5;
}
.subject-topics {
  list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px;
}
.subject-topics li {
  background: rgba(14,165,233,.1); color: var(--text);
  padding: 6px 12px; border-radius: 20px; font-size: .85rem;
  border: 1px solid rgba(14,165,233,.2);
}

/* Booking CTA */
.booking-cta {
  text-align: center; padding: 2rem 0;
}
.booking-cta .btn {
  margin-bottom: 1rem;
}

/* Forms */
label { display: grid; gap: 6px; }
label > span { color: var(--muted); font-size: .9rem; }
input, select, textarea {
  width: 100%; background: #0c1220; color: var(--text);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid .wide { grid-column: 1 / -1; }
.booking-form .form-actions, .contact-form .form-actions { display: flex; align-items: center; gap: 12px; margin-top: 10px; }

/* Contact form specific styles */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form .grid {
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.contact-form .wide {
  grid-column: 1 / -1;
}

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

.contact-form button[type="submit"] {
  min-width: 120px;
  position: relative;
}

.contact-form button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}



/* Toast notifications */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(12, 18, 32, 0.95);
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  font-weight: 500;
  max-width: 400px;
  text-align: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-success {
  border-color: #10b981;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(12, 18, 32, 0.95));
  color: #10b981;
}

.toast-error {
  border-color: #f87171;
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.1), rgba(12, 18, 32, 0.95));
  color: #f87171;
}

/* FAQ */
details.faq {
  background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 12px;
  margin: 10px 0; padding: 12px 14px;
}
details.faq[open] { background: rgba(34,211,238,.05); border-color: rgba(34,211,238,.2); }
details.faq summary {
  cursor: pointer;
  font-weight: 600;
  margin: -6px -6px 6px -6px;
  padding: 6px;
  list-style: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Add chevron indicator */
details.faq summary::after {
  content: "›";
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--muted);
  transition: transform 0.2s ease;
  transform: rotate(0deg); /* Point right when closed */
  margin-left: auto;
  flex-shrink: 0;
}

/* Rotate chevron when open */
details.faq[open] summary::after {
  transform: rotate(90deg); /* Point down when open */
  color: var(--accent);
}

/* Ensure sub-questions also rotate when open */
details.faq.sub[open] summary::after {
  transform: rotate(90deg); /* Point down when open */
  color: var(--accent);
}

/* FAQ groups */
.faq.group { padding: 0; }
.faq.group > summary {
  font-size: 1.1rem;
  padding: 10px 12px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Ensure group summary chevrons are properly positioned */
.faq.group > summary::after {
  margin-left: auto;
}
.faq-list { padding: 6px 0 8px 0; }
.faq.sub { margin: 8px 0; padding: 10px 12px; }
.faq.sub > summary {
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq.sub > div { color: var(--muted); }

/* Smaller chevrons for sub-questions */
.faq.sub > summary::after {
  font-size: 1rem;
}

/* Footer */
.footer { padding: 24px 16px; border-top: 1px solid var(--line); color: var(--muted); }
.footer .wrap { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* Dot rail (right side) */
.dot-rail {
  position: fixed; right: 12px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 10px; z-index: 50;
}
.dot-rail .dot {
  width: 12px; height: 12px; border-radius: 50%; display: inline-block; background: #2b3648;
  border: 1px solid var(--line); position: relative;
}
.dot-rail .dot.active { background: var(--accent); border-color: transparent; }
.dot-rail .dot::after {
  content: attr(data-title);
  position: absolute; right: 150%; top: 50%; transform: translateY(-50%);
  background: #0c1220; color: var(--text); border: 1px solid var(--line); padding: 4px 8px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .2s ease;
  white-space: nowrap; box-shadow: var(--shadow);
}
.dot-rail .dot:hover::after { opacity: 1; }

/* Bottom nav */
.bottom-nav {
  position: fixed; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; padding: 6px; background: rgba(12,18,32,.7); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 999px; z-index: 50;
}
.bottom-nav a {
  color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 999px;
}
.bottom-nav a.active, .bottom-nav a:hover { color: var(--text); background: rgba(255,255,255,.06); }

/* Floating action button */
.fab {
  position: fixed; right: 16px; bottom: 70px; z-index: 60;
  padding: 12px 16px; border-radius: 999px; border: none;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #001018; font-weight: 700; box-shadow: var(--shadow);
}

/* Modal */
dialog { border: none; padding: 0; background: transparent; }
.modal {
  width: min(520px, 92vw);
  background: #0c1220; color: var(--text); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow);
}
.modal-header, .modal-footer { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.modal-footer { border-top: 1px solid var(--line); border-bottom: none; }
.modal-body { padding: 14px; }
.icon-btn { background: transparent; color: var(--muted); border: none; font-size: 22px; cursor: pointer; }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .dot-rail { display: none; }
  .fab { bottom: 76px; }
}

/* Mobile modal improvements */
@media (max-width: 640px) {
  .modal-content {
    margin: 2% auto;
    width: 95%;
    max-height: 95vh;
  }

  .modal-header {
    padding: 1rem 1.25rem 0.75rem;
  }

  .modal-body {
    padding: 1rem 1.25rem;
    max-height: calc(95vh - 140px); /* Account for header and footer */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  }

  .modal-footer {
    padding: 0.75rem 1.25rem 1rem;
    flex-direction: column;
    gap: 0.75rem;
  }

  .modal-footer .btn {
    width: 100%;
    justify-content: center;
  }

  /* Enhanced FAQ chevrons for mobile */
  details.faq summary::after {
    font-size: 1.4rem;
    min-width: 24px;
    text-align: center;
  }

  .faq.sub > summary::after {
    font-size: 1.2rem;
    min-width: 20px;
  }

  /* Ensure mobile sub-questions rotate when open */
  details.faq.sub[open] summary::after {
    transform: rotate(90deg);
    color: var(--accent);
  }
}

/* Modal Styles */
  /* Ensure footer text not hidden behind fixed bottom nav on mobile */
  .footer { padding-bottom: 72px; }
@media (min-width: 641px) {
  .footer { padding-bottom: 24px; }
}
@media (max-width: 640px) {
  .footer { padding-top: 30px; }
}



.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
  backdrop-filter: blur(10px);
}

.modal-content {
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  margin: 5% auto;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  width: 90%;
  max-width: 520px;
  max-height: 90vh;
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  background: linear-gradient(135deg, rgba(14,165,233,0.1) 0%, rgba(59,130,246,0.05) 100%);
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
}

.modal-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.modal-header h3 {
  margin: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.4rem;
  font-weight: 700;
}

.close {
  color: rgba(255,255,255,0.6);
  font-size: 1.2rem;
  font-weight: 400;
  cursor: pointer;
  background: rgba(255,255,255,0.1);
  border: none;
  padding: 0;
  line-height: 1;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  font-family: Arial, sans-serif;
}

.close:hover {
  background: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  transform: scale(1.1);
}

.modal-body {
  padding: 1.5rem;
  background: rgba(255,255,255,0.02);
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Hide scrollbar for modal body */
.modal-body::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
  background: transparent;
}

/* For Firefox */
.modal-body {
  scrollbar-width: none;
}

.modal-body p {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

.checkbox-container label {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  flex: 1;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
}

.checkbox-container:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
}

/* Custom Checkbox */
.checkbox-container input[type="checkbox"] {
  display: none;
}

.custom-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
}

.checkbox-container:hover .custom-checkbox {
  border-color: var(--accent);
  background: rgba(14,165,233,0.1);
}

.checkbox-container input[type="checkbox"]:checked + .custom-checkbox {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: var(--accent);
  transform: scale(1.1);
}

.custom-checkbox::after {
  content: '✓';
  color: white;
  font-size: 16px;
  font-weight: bold;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

.checkbox-container input[type="checkbox"]:checked + .custom-checkbox::after {
  opacity: 1;
  transform: scale(1);
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.02);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.modal-footer .btn {
  flex: 1;
  text-align: center;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.95);
  transform: translateY(-2px);
}

.modal-footer .btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  box-shadow: 0 4px 15px rgba(14,165,233,0.3);
}

.modal-footer .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14,165,233,0.4);
}

/* Session Prep Modal Styles */
.email-subject {
  background: rgba(255,255,255,0.1);
  padding: 0.75rem;
  border-radius: 8px;
  border-left: 4px solid var(--accent);
  margin: 0.75rem 0;
  font-family: 'Courier New', monospace;
  color: var(--accent);
  font-size: 0.9rem;
}

.prep-note {
  background: rgba(255,165,0,0.1);
  border: 1px solid rgba(255,165,0,0.3);
  border-radius: 8px;
  padding: 0.75rem;
  margin: 1rem 0;
}

.prep-note p {
  margin: 0;
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  line-height: 1.4;
}

.download-section {
  text-align: center;
  margin: 1rem 0;
}

.btn-download {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(16,185,129,0.3);
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16,185,129,0.4);
  background: linear-gradient(135deg, #059669, #047857);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn:disabled:hover {
  transform: none !important;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, rgba(14,165,233,0.1) 0%, rgba(59,130,246,0.05) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 0;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-content > p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text);
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  min-width: 180px;
}

.cta-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.cta-note::before,
.cta-note::after {
  content: '';
  height: 1px;
  background: var(--line);
  flex: 1;
  max-width: 50px;
}

@media (max-width: 600px) {
  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-large {
    width: 100%;
    max-width: 280px;
  }

  .cta-note {
    flex-direction: column;
    gap: 0.5rem;
  }

  .cta-note::before,
  .cta-note::after {
    display: none;
  }
}
