
:root {
  /* Bnan Academy color palette - mapped from site CSS */
  --bn-primary: #21c1d7;
  --bn-primary-dark: #149aab;
  --bn-primary-light: #6cd0de;
  --bn-accent: #ef476f;
  --bn-yellow: #ffbb12;
  --bn-text: #1a202c;
  --bn-text-muted: #4a5568;
  --bn-text-light: #718096;
  --bn-bg: #ffffff;
  --bn-bg-light: #f8fafb;
  --bn-bg-lighter: #fafafa;
  --bn-border: #e2e8f0;
  --bn-border-light: #f7fafc;
}

.landing-quran,
.landing-quran * { 
  box-sizing: border-box; 
}

.landing-quran {
  margin: 0;
  padding: 0;
  min-height: 100%;
  width: 100%;
  font-family: 'Fustat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--bn-text);
  background: var(--bn-bg);
  overflow-x: hidden;
  direction: ltr;
  text-align: left;
}

.landing-quran h1,
.landing-quran h2,
.landing-quran h3,
.landing-quran h4,
.landing-quran h5,
.landing-quran h6 {
  font-family: 'Playfair Display', 'Fustat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.landing-quran .page-wrapper {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

.landing-quran .page {
  display: none;
  min-height: 100%;
}

.landing-quran .page.active {
  display: block;
}

/* Header */
.header {
  background: rgba(255, 255, 255, 0.98);
  padding: 20px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 26px;
  font-weight: 700;
  color: var(--bn-primary);
  letter-spacing: -0.02em;
}

.header-cta {
  background: var(--bn-primary);
  color: white;
  border: none;
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(33, 193, 215, 0.2);
  font-family: 'Fustat', system-ui, sans-serif;
}

.header-cta:hover {
  background: var(--bn-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(33, 193, 215, 0.3);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(33, 193, 215, 0.1) 0%, #ffffff 100%);
  padding: 100px 32px 120px;
  position: relative;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: start;
}


.hero-text {
  padding-top: 20px;
}

.hero-text h1 {
  font-size: 52px;
  font-weight: 700;
  color: var(--bn-text);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero-text .subheadline {
  font-size: 20px;
  color: var(--text-muted, #374151) !important; /* WCAG-compliant color */
  margin-bottom: 40px;
  line-height: 1.65;
  font-weight: 400;
}

.hero-bullets {
  list-style: none;
  margin-bottom: 48px;
}

.hero-bullets li {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 17px;
  color: var(--text-muted, #374151) !important; /* WCAG-compliant color */
  font-weight: 500;
}

.icon-wrapper {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.icon-svg {
  width: 24px;
  height: 24px;
  stroke: var(--bn-primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Trust Bar */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 48px;
  border-top: 1px solid var(--bn-border);
}

.trust-item {
  text-align: center;
}

.trust-item .icon-wrapper {
  width: 56px;
  height: 56px;
  background: rgba(33, 193, 215, 0.1);
  margin: 0 auto 14px;
  border-radius: 14px;
  box-shadow: none;
}

.trust-item .label {
  font-size: 14px;
  font-weight: 600;
  color: var(--bn-text-muted);
  line-height: 1.4;
}

/* Hero Form */
.hero-form-card {
  background: white;
  padding: 36px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--bn-border);
  position: relative;
}

.hero-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--bn-primary) 0%, var(--bn-primary-light) 100%);
  border-radius: 20px 20px 0 0;
}

.form-badge {
  display: inline-block;
  background: rgba(255, 187, 18, 0.2);
  color: #92400e;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-form-card h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--bn-text);
  letter-spacing: -0.02em;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--bn-text-muted);
  margin-bottom: 10px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--bn-border);
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: var(--bn-bg-lighter);
  color: var(--bn-text);
  font-family: 'Fustat', system-ui, sans-serif;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--bn-primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(33, 193, 215, 0.1);
}

.cta-primary {
  background: #0e7490 !important; /* darker teal for better contrast */
  background-image: linear-gradient(135deg, #0e7490 0%, #149aab 100%) !important;
  color: #ffffff !important;
  border: none;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(14, 116, 144, 0.3);
  font-family: 'Fustat', system-ui, sans-serif;
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(33, 193, 215, 0.4);
}

.cta-microcopy {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted, #374151) !important; /* Use WCAG-compliant muted color */
  margin-top: 14px;
  line-height: 1.4;
}

/* Section */
.section {
  padding: 100px 32px;
}

/* Tighten spacing between Hero and the first section */
.landing-quran .hero + .section {
  padding-top: 56px; /* desktop/tablet */
}

.section-content {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-header h2 {
  font-size: 42px;
  font-weight: 700;
  color: var(--bn-text);
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.section-header p {
  font-size: 19px;
  color: var(--text-muted, #374151) !important; /* WCAG-compliant color */
  font-weight: 400;
  margin: 0;
  line-height: 1.6;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.card {
  background: white;
  padding: 40px 32px;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 1px solid var(--bn-border-light);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.card .icon-wrapper {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--bn-primary) 0%, var(--bn-primary-light) 100%);
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(33, 193, 215, 0.25);
}

.card .icon-svg {
  width: 32px;
  height: 32px;
  stroke: white;
}

.card h3 {
  font-size: 21px;
  font-weight: 700;
  color: var(--bn-text);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 16px;
  color: var(--bn-text-muted);
  line-height: 1.65;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  position: relative;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--bn-primary) 0%, var(--bn-primary-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 32px;
  font-weight: 700;
  color: white;
  box-shadow: 0 4px 16px rgba(33, 193, 215, 0.3);
}

.step h3 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--bn-text);
  letter-spacing: -0.01em;
}

.step p {
  font-size: 16px;
  color: var(--bn-text-muted);
  line-height: 1.65;
}

/* Learning Blocks */
.learning-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.learning-block {
  background: white;
  padding: 36px;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--bn-border-light);
  transition: all 0.3s ease;
}

.learning-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.learning-block .icon-wrapper {
  width: 56px;
  height: 56px;
  background: rgba(255, 187, 18, 0.2);
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: none;
}

.learning-block .icon-svg {
  stroke: #d97706;
}

.learning-block h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--bn-text);
  letter-spacing: -0.01em;
}

.learning-block p {
  font-size: 16px;
  color: var(--bn-text-muted);
  line-height: 1.65;
}

/* Book Section */
.book-section {
  background: var(--bn-bg-light);
  padding: 80px 32px;
}

.book-content {
  max-width: 1100px;
  margin: 0 auto;
}

.book-header {
  text-align: center;
  margin-bottom: 56px;
}

.book-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--bn-text);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.book-proof {
  font-size: 17px;
  color: var(--bn-primary);
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.5;
}

.book-header p {
  font-size: 17px;
  color: var(--text-muted, #374151) !important; /* WCAG-compliant color */
}

.book-preview-area {
  background: white;
  padding: 48px;
  border-radius: 20px;
  margin-bottom: 36px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--bn-border);
}

.book-mockup-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin-bottom: 48px;
}

.book-cover-3d {
  width: 260px;
  height: 340px;
  border-radius: 8px;
  box-shadow: 
    0 20px 40px rgba(33, 193, 215, 0.3),
    -8px 0 20px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transform: perspective(1200px) rotateY(-12deg);
  transition: transform 0.4s ease;
  overflow: hidden;
  background: var(--bn-bg-lighter);
}

.book-cover-3d picture,
.book-cover-3d img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-cover-3d:hover {
  transform: perspective(1200px) rotateY(-8deg) translateY(-4px);
}

.book-cover-3d::before {
  content: '';
  position: absolute;
  top: 0;
  left: -10px;
  width: 10px;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.08));
  border-radius: 2px 0 0 2px;
}

.book-cover-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.book-cover-subtitle {
  font-size: 16px;
  opacity: 0.95;
  line-height: 1.5;
}

.book-mockup-info {
  max-width: 420px;
}

.pdf-badge {
  display: inline-block;
  background: rgba(255, 187, 18, 0.2);
  color: #92400e;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.book-mockup-info h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--bn-text);
  margin-bottom: 16px;
}

.book-mockup-info p {
  font-size: 15px;
  color: var(--bn-text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.landing-quran .book-benefits {
  list-style: disc;
  list-style-position: outside;
  padding-left: 18px;
  margin-left: 0;
}

.landing-quran .book-benefits li {
  display: list-item;
  margin: 0 0 10px 0;
  padding-left: 0;
  font-size: 15px;
  color: var(--bn-text-muted);
  line-height: 1.6;
}

.landing-quran .book-benefits li::marker {
  color: var(--bn-primary);
  font-weight: 700;
}

.preview-carousel-wrapper {
  border-top: 1px solid var(--bn-border);
  padding-top: 40px;
}

.preview-carousel-label {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--bn-text-muted);
  margin-bottom: 24px;
}

.preview-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e0 var(--bn-border-light);
}

.preview-carousel::-webkit-scrollbar {
  height: 8px;
}

.preview-carousel::-webkit-scrollbar-track {
  background: var(--bn-border-light);
  border-radius: 4px;
}

.preview-carousel::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 4px;
}

.preview-carousel::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

.preview-thumbnail {
  flex-shrink: 0;
  width: 180px;
  scroll-snap-align: start;
  cursor: pointer;
  position: relative;
}

.preview-image {
  width: 180px;
  height: 240px;
  background: var(--bn-bg-lighter);
  border: 2px solid var(--bn-border);
  border-radius: 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.preview-image picture,
.preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-color: var(--bn-primary);
}

.preview-image::after {
  content: '🔍 Click to enlarge';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(33, 193, 215, 0.95);
  color: white;
  padding: 8px;
  font-size: 11px;
  font-weight: 600;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.preview-image:hover::after {
  transform: translateY(0);
}

.preview-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-text {
  font-size: 13px;
  line-height: 1.4;
}

.preview-label {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--bn-text-muted);
}

.book-cta-wrapper {
  text-align: center;
}

.book-cta-button {
  background: white;
  color: var(--bn-primary);
  border: 2px solid var(--bn-primary);
  padding: 18px 40px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 12px rgba(33, 193, 215, 0.15);
  font-family: 'Fustat', system-ui, sans-serif;
}

.book-cta-button:hover {
  background: rgba(33, 193, 215, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(33, 193, 215, 0.25);
}

/* Book Toast Notification */
.book-toast {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 360px;
  width: calc(100% - 48px);
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 95;
  padding: 24px;
  border: 1px solid var(--bn-border);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.book-toast.active {
  display: block;
  animation: toastSlideIn 0.6s ease forwards;
}

.book-toast.hiding {
  animation: toastSlideOut 0.4s ease forwards;
}

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

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

.book-toast-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted, #374151) !important; /* WCAG-compliant color */
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.book-toast-close:hover {
  background: var(--bn-border-light);
  color: var(--bn-text-muted);
}

.book-toast-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 187, 18, 0.2);
  color: #92400e;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

.book-toast-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--bn-text);
  margin-bottom: 10px;
  padding-right: 24px;
  line-height: 1.3;
}

.book-toast-body {
  font-size: 14px;
  color: var(--bn-text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.book-toast-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.book-toast-cta {
  background: linear-gradient(135deg, var(--bn-primary) 0%, var(--bn-primary-light) 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(33, 193, 215, 0.25);
  width: 100%;
  font-family: 'Fustat', system-ui, sans-serif;
}

.book-toast-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(33, 193, 215, 0.35);
}

.book-toast-dismiss {
  background: transparent;
  color: var(--text-muted, #374151) !important; /* WCAG-compliant color */
  border: none;
  padding: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
  text-align: center;
  font-family: 'Fustat', system-ui, sans-serif;
}

.book-toast-dismiss:hover {
  color: var(--bn-text-muted);
}

/* Book Popup Modal */
.book-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.book-popup-overlay.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.book-popup-content {
  background: white;
  padding: 40px;
  border-radius: 20px;
  max-width: 540px;
  width: 100%;
  max-height: 90%;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease;
}

.book-popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bn-border-light);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  color: var(--bn-text-muted);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.book-popup-close:hover {
  background: var(--bn-border);
  transform: rotate(90deg);
}

.book-popup-header {
  margin-bottom: 28px;
  padding-right: 40px;
}

.book-popup-badge {
  display: inline-block;
  background: rgba(255, 187, 18, 0.2);
  color: #92400e;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}

.book-popup-header h3 {
  font-size: 26px;
  font-weight: 700;
  color: var(--bn-text);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.book-popup-header p {
  font-size: 15px;
  color: var(--bn-text-muted);
  line-height: 1.6;
}

.cta-secondary {
  background: white;
  color: var(--bn-primary);
  border: 2px solid var(--bn-primary);
  padding: 15px 30px;
  border-radius: 11px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  font-family: 'Fustat', system-ui, sans-serif;
}

.cta-secondary:hover {
  background: rgba(33, 193, 215, 0.1);
  transform: translateY(-1px);
}

.service-note {
  font-size: 13px;
  color: var(--text-muted, #374151) !important; /* WCAG-compliant color */
  text-align: center;
  margin-top: 14px;
  line-height: 1.4;
}

.opt-ins {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--bn-border);
}

.checkbox-group {
  display: flex;
  align-items: start;
  gap: 10px;
  margin-bottom: 14px;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--bn-primary);
}

.checkbox-group label {
  font-size: 14px;
  color: var(--bn-text-muted);
  cursor: pointer;
  line-height: 1.5;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.testimonial {
  background: white;
  padding: 36px;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--bn-border-light);
}

.stars {
  color: #fbbf24;
  font-size: 20px;
  margin-bottom: 18px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 16px;
  color: var(--bn-text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

.testimonial-author {
  font-weight: 700;
  color: var(--bn-text);
  margin-bottom: 6px;
  font-size: 15px;
}

.testimonial-meta {
  font-size: 14px;
  color: var(--text-muted, #374151) !important; /* WCAG-compliant color */
}

/* FAQ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  padding: 28px;
  border-radius: 14px;
  margin-bottom: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--bn-border-light);
}

.faq-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--bn-text);
  font-size: 17px;
}

.faq-toggle {
  font-size: 28px;
  color: var(--bn-primary);
  transition: transform 0.3s ease;
  font-weight: 300;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--bn-text-muted);
  font-size: 15px;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  margin-top: 18px;
}

/* Final CTA */
.final-cta {
  background: linear-gradient(135deg, var(--bn-primary) 0%, var(--bn-primary-light) 100%);
  padding: 100px 32px;
  text-align: center;
  color: white;
}

.final-cta h2 {
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.final-cta p {
  font-size: 21px;
  margin-bottom: 48px;
  opacity: 0.97;
}

.final-form {
  max-width: 620px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.final-form .form-group label {
  color: var(--bn-text-muted);
}

.final-form .cta-primary {
  background: linear-gradient(135deg, var(--bn-primary) 0%, var(--bn-primary-light) 100%);
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 16px 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 90;
  border-top: 1px solid var(--bn-border);
}

.mobile-sticky-cta button {
  width: 100%;
  background: linear-gradient(135deg, var(--bn-primary) 0%, var(--bn-primary-light) 100%);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(33, 193, 215, 0.3);
  font-family: 'Fustat', system-ui, sans-serif;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 40px;
  backdrop-filter: blur(4px);
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  background: white;
  padding: 60px;
  border-radius: 20px;
  max-width: 600px;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bn-border-light);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  color: var(--bn-text-muted);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.lightbox-close:hover {
  background: var(--bn-border);
  transform: rotate(90deg);
}

.lightbox-preview {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.lightbox-preview .preview-content {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-preview .preview-content picture,
.lightbox-preview .preview-content img {
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.lightbox-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--bn-text);
  margin-bottom: 8px;
}

.lightbox-description {
  font-size: 15px;
  color: var(--text-muted, #374151) !important; /* WCAG-compliant color */
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .book-toast {
    bottom: 90px;
    right: 16px;
    left: 16px;
    max-width: none;
    width: auto;
    padding: 14px 16px !important;
  }

  /* Compact book-toast on mobile */
  .book-toast-title {
    font-size: 16px !important;
    margin-bottom: 8px !important;
    line-height: 1.3 !important;
  }

  .book-toast-body {
    display: none !important;
  }

  .book-toast-actions {
    gap: 8px !important;
    margin-top: 8px !important;
  }

  .book-toast-cta {
    padding: 10px 16px !important;
    font-size: 14px !important;
  }

  .book-toast-badge {
    font-size: 12px !important;
    padding: 4px 8px !important;
    margin-bottom: 8px !important;
  }
  
  .header-content {
    padding: 0 20px;
  }
  
  .logo {
    font-size: 22px;
  }
  
  .header-cta {
    font-size: 14px;
    padding: 11px 20px;
  }
  
  .hero {
    padding: 60px 20px 80px;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .hero-text {
    padding-top: 0;
  }
  
  .hero-text h1 {
    font-size: 34px;
    margin-bottom: 20px;
  }
  
  .hero-text .subheadline {
    font-size: 17px;
    margin-bottom: 32px;
  }
  
  .hero-bullets {
    margin-bottom: 40px;
  }
  
  .hero-bullets li {
    font-size: 15px;
    margin-bottom: 16px;
  }
  
  .icon-wrapper {
    width: 44px;
    height: 44px;
  }
  
  .icon-svg {
    width: 22px;
    height: 22px;
  }
  
  .trust-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding-top: 40px;
  }
  
  .trust-item .icon-wrapper {
    width: 52px;
    height: 52px;
  }
  
  .hero-form-card {
    padding: 28px 24px;
  }
  
  .hero-form-card h3 {
    font-size: 22px;
    margin-bottom: 24px;
  }
  
  .form-group {
    margin-bottom: 18px;
  }
  
  .section {
    padding: 70px 20px;
  }
  
  .landing-quran .hero + .section {
    padding-top: 28px; /* mobile */
  }
  
  .section-header {
    margin-bottom: 50px;
  }
  
  .section-header h2 {
    font-size: 32px;
    line-height: 1.3;
  }
  
  .section-header p {
    font-size: 16px;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .card {
    padding: 32px 28px;
  }
  
  .steps {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .learning-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .book-section {
    padding: 60px 20px;
  }
  
  .book-header {
    margin-bottom: 40px;
  }
  
  .book-header h2 {
    font-size: 28px;
    line-height: 1.3;
  }
  
  .book-proof {
    font-size: 15px;
  }
  
  .book-header p {
    font-size: 15px;
  }
  
  .book-preview-area {
    padding: 32px 24px;
  }
  
  .book-mockup-section {
    flex-direction: column;
    gap: 32px;
    margin-bottom: 36px;
  }
  
  .book-cover-3d {
    width: 220px;
    height: 300px;
    padding: 32px 24px;
    transform: perspective(1000px) rotateY(-10deg);
  }
  
  .book-cover-title {
    font-size: 24px;
  }
  
  .book-cover-subtitle {
    font-size: 14px;
  }
  
  .book-mockup-info {
    max-width: 100%;
  }
  
  .book-mockup-info h3 {
    font-size: 20px;
  }
  
  .book-benefits li {
    font-size: 14px;
  }
  
  .preview-thumbnail {
    width: 150px;
  }
  
  .preview-image {
    width: 150px;
    height: 210px;
    padding: 16px;
  }
  
  .preview-content {
    font-size: 36px;
  }
  
  .book-cta-button {
    font-size: 16px;
    padding: 16px 32px;
  }
  
  .book-popup-content {
    padding: 32px 24px;
    max-height: 85%;
  }
  
  .book-popup-header h3 {
    font-size: 22px;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .testimonial {
    padding: 28px 24px;
  }
  
  .final-cta {
    padding: 70px 20px;
  }
  
  .final-cta h2 {
    font-size: 32px;
  }
  
  .final-cta p {
    font-size: 17px;
    margin-bottom: 36px;
  }
  
  .final-form {
    padding: 32px 24px;
  }
  
  .mobile-sticky-cta {
    display: block;
  }
  
  .lightbox-content {
    padding: 40px 24px;
    margin: 20px;
  }
  
  .lightbox-preview {
    max-width: 100%;
    height: 400px;
    padding: 32px 20px;
  }
  
  .lightbox-preview .preview-content {
    font-size: 60px;
  }
  
  .lightbox-preview .preview-text {
    font-size: 16px;
  }
}

/* Free Library Modal WhatsApp Input Fix for Quran Kids Landing */
.landing-quran .free-dl-phone {
  display: flex !important;
  gap: 12px !important;
  align-items: stretch !important;
  margin-bottom: 4px !important;
}

.landing-quran .free-dl-country {
  width: 170px !important;
  min-width: 150px !important;
  border-radius: 12px !important;
  border: 2px solid #e5e7eb !important;
  padding: 12px 14px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  background: #f8f9fa !important;
  transition: all 0.3s ease !important;
  height: auto !important;
}

.landing-quran .free-dl-country:focus {
  outline: none !important;
  border-color: #21c1d7 !important;
  background: white !important;
  box-shadow: 0 0 0 4px rgba(33, 193, 215, 0.1) !important;
}

.landing-quran .free-dl-phone-input {
  flex: 1 !important;
  min-width: 0 !important;
  border-radius: 12px !important;
  border: 2px solid #e5e7eb !important;
  padding: 12px 16px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  background: #f8f9fa !important;
  transition: all 0.3s ease !important;
  height: auto !important;
}

.landing-quran .free-dl-phone-input:focus {
  outline: none !important;
  border-color: #21c1d7 !important;
  background: white !important;
  box-shadow: 0 0 0 4px rgba(33, 193, 215, 0.1) !important;
}

.landing-quran .free-dl-phone-input::placeholder {
  color: #6b7280 !important; /* WCAG-compliant placeholder color */
  opacity: 1 !important;
}

/* Mobile responsive */
@media (max-width: 576px) {
  .landing-quran .free-dl-phone {
    flex-direction: column !important;
  }
  
  .landing-quran .free-dl-country {
    width: 100% !important;
    min-width: 100% !important;
  }
  
  .landing-quran .free-dl-phone-input {
    width: 100% !important;
  }
}

/* RTL support */
[dir="rtl"] .landing-quran .free-dl-phone {
  flex-direction: row-reverse !important;
}

@media (max-width: 576px) {
  [dir="rtl"] .landing-quran .free-dl-phone {
    flex-direction: column !important;
  }
}

/* Trial Form WhatsApp Input (same as Free Library modal) */
.landing-quran .wa-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 4px;
}

.landing-quran .wa-country {
  width: 170px;
  min-width: 150px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 500;
  background: #f8f9fa;
  transition: all 0.3s ease;
  height: auto;
}

.landing-quran .wa-country:focus {
  outline: none;
  border-color: #21c1d7;
  background: white;
  box-shadow: 0 0 0 4px rgba(33, 193, 215, 0.1);
}

.landing-quran .wa-local {
  flex: 1;
  min-width: 0;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 500;
  background: #f8f9fa;
  transition: all 0.3s ease;
  height: auto;
}

.landing-quran .wa-local:focus {
  outline: none;
  border-color: #21c1d7;
  background: white;
  box-shadow: 0 0 0 4px rgba(33, 193, 215, 0.1);
}

.landing-quran .wa-local::placeholder {
  color: #999;
}

.landing-quran .wa-help {
  display: block;
  margin-top: 6px;
  color: var(--text-muted, #374151) !important; /* WCAG-compliant color */
  font-size: 12px;
  line-height: 1.4;
}

.landing-quran .wa-error {
  display: block;
  margin-top: 6px;
  color: #dc3545;
  font-size: 13px;
  line-height: 1.4;
}

.landing-quran .wa-error.d-none {
  display: none;
}

/* Mobile responsive */
@media (max-width: 576px) {
  .landing-quran .wa-row {
    flex-direction: column;
  }
  
  .landing-quran .wa-country {
    width: 100%;
    min-width: 100%;
  }
  
  .landing-quran .wa-local {
    width: 100%;
  }
}

/* RTL support */
[dir="rtl"] .landing-quran .wa-row {
  flex-direction: row-reverse;
}

@media (max-width: 576px) {
  [dir="rtl"] .landing-quran .wa-row {
    flex-direction: column;
  }
}

/* Searchable country dropdown styles */
.landing-quran .wa-country-wrapper {
  position: relative;
  width: 170px;
  min-width: 150px;
  flex-shrink: 0;
}

@media (max-width: 576px) {
  .landing-quran .wa-country-wrapper {
    width: 100%;
    min-width: 100%;
  }
}

.landing-quran .wa-country-search {
  color: var(--bn-text);
}

.landing-quran .wa-country-search::placeholder {
  color: #999;
  opacity: 0.7;
}

.landing-quran .wa-country-dropdown {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e0 #f7fafc;
}

.landing-quran .wa-country-dropdown::-webkit-scrollbar {
  width: 6px;
}

.landing-quran .wa-country-dropdown::-webkit-scrollbar-track {
  background: #f7fafc;
}

.landing-quran .wa-country-dropdown::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 3px;
}

.landing-quran .wa-country-dropdown::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

.landing-quran .wa-country-option:hover {
  background: #f8f9fa !important;
}

.landing-quran .wa-country-option:active {
  background: #e9ecef !important;
}

/* Accessibility: Focus-visible styling for carousel dots */
.landing-quran .owl-dots button.owl-dot:focus-visible {
  outline: 2px solid #0ea5e9;
  outline-offset: 3px;
}

/* Accessibility: Screen reader only class for visually hidden labels */
.landing-quran .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ===== Accessibility: Contrast Fixes ===== */

/* A) Fix low-contrast muted text */
.landing-quran {
  --text-main: #0f172a;   /* strong readable */
  --text-body: #1f2937;   /* readable body */
  --text-muted: #374151;  /* readable muted - WCAG AA compliant */
  --text-soft: #4b5563;   /* secondary - WCAG AA compliant */
}

.landing-quran p,
.landing-quran .subtitle,
.landing-quran .helper,
.landing-quran .tip,
.landing-quran .muted,
.landing-quran .text-muted {
  color: var(--text-soft) !important;
}

/* Fix specific helper/tip text */
.landing-quran .wa-help,
.landing-quran .form-tip,
.landing-quran .input-tip {
  color: var(--text-muted) !important;
}

/* Fix cta-microcopy (small text under buttons) */
.landing-quran .cta-microcopy {
  color: var(--text-muted) !important;
}

/* B) Fix placeholder contrast */
.landing-quran input::placeholder,
.landing-quran textarea::placeholder,
.landing-quran input[type="text"]::placeholder,
.landing-quran input[type="tel"]::placeholder,
.landing-quran input[type="email"]::placeholder,
.landing-quran .free-dl-phone-input::placeholder {
  color: #6b7280 !important; /* darker placeholder - WCAG AA compliant */
  opacity: 1 !important;
}

/* C) Fix CTA button text contrast - darken background for better white text contrast */
.landing-quran .cta-primary,
.landing-quran .btn-primary,
.landing-quran .trial-submit,
.landing-quran button.cta-primary {
  background: #0e7490 !important; /* darker teal for better contrast with white text */
  background-image: linear-gradient(135deg, #0e7490 0%, #149aab 100%) !important;
  color: #ffffff !important;
}
  