/* PTE Bazaar */
:root {
  --brand-blue: #0056d2;
  --brand-orange: #ff9100;
  --purple: #0056d2;
  --purple-dark: #0044a8;
  --blue: #0056d2;
  --bg-hero: #f3f2f8;
  --bg-subtle: #f8f8fa;
  --text: #1a1a1a;
  --text-muted: #5c5c6a;
  --white: #ffffff;
  --green-bg: #e6f4ea;
  --green-text: #1e7e34;
  --border: #e0e0e8;
  --radius-pill: 50px;
  --radius-card: 16px;
  --shadow: 0 4px 24px rgba(43, 89, 195, 0.1);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header — match logo white background */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  height: 96px;
  padding: 0 24px;
  gap: 20px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
}

.logo-link:focus,
.logo-link:focus-visible {
  outline: none;
  box-shadow: none;
}

/* Header logo — no frame; blends with header white */
.logo-link--header {
  align-self: stretch;
  height: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.logo-img {
  display: block;
  border: none !important;
  outline: none;
  box-shadow: none;
  background: transparent;
  vertical-align: middle;
}

.logo-img--header {
  height: 85%;
  width: auto;
  max-width: min(408px, 49vw);
  object-fit: contain;
  object-position: left center;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.logo-img--footer {
  height: auto;
  max-height: 75px;
  max-width: 238px;
  width: auto;
  margin-bottom: 12px;
  background: transparent;
  padding: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.logo-link--footer {
  background: transparent;
  line-height: 0;
  border: none;
  box-shadow: none;
}

.nav-main {
  display: flex;
  gap: 32px;
  align-items: center;
  align-self: center;
}

.nav-main a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--purple);
}

.nav-main .chevron::after {
  content: "";
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  display: inline-block;
  padding: 2px;
  transform: rotate(45deg);
  margin-top: -2px;
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  align-self: center;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: inherit;
}

.btn-outline {
  background: transparent;
  border-color: var(--text);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--text);
  color: var(--white);
}

.btn-primary {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
}

.btn-primary:hover {
  background: var(--purple-dark);
  border-color: var(--purple-dark);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-ghost-dark {
  background: transparent;
  border: 2px solid var(--text);
  color: var(--text);
}

.btn-ghost-dark:hover {
  background: var(--text);
  color: var(--white);
}

/* Exams section (home) */
.exams-section {
  padding: 80px 0;
  background: var(--white);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  margin: 0 0 12px;
  text-align: center;
}

.section-lead {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 20px;
  font-size: 1.05rem;
}

.pearson-slot-inline {
  text-align: center;
  margin: 0 0 40px;
}

.pearson-slot-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--text);
  text-decoration: none;
  background: var(--white);
  border: 2px solid var(--text);
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.pearson-slot-btn:hover {
  background: var(--text);
  color: var(--white);
  border-color: var(--text);
}

.pearson-slot-btn-arrow {
  font-size: 1.1em;
  line-height: 1;
}

.checkout-pearson-slot {
  margin: 20px 0 24px;
  text-align: center;
}

.checkout-pearson-slot .pearson-slot-inline {
  margin: 0;
}

.exam-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 12px;
}

.exam-features {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.exam-features li {
  padding: 6px 0 6px 20px;
  position: relative;
}

.exam-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--purple);
  font-weight: 700;
}

/* Hero */
.hero {
  background: var(--bg-hero);
  padding: 64px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 32px;
  max-width: 420px;
}

.hero-visual {
  position: relative;
}

.hero-image-wrap {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-image-wrap img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.hero-decor {
  position: absolute;
  pointer-events: none;
}

.hero-decor.stat-card {
  width: 132px;
  height: 132px;
  bottom: -24px;
  right: -12px;
  z-index: 2;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--purple) 0%, var(--blue) 100%);
  box-shadow: 0 12px 28px rgba(91, 61, 158, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 12px;
  text-align: center;
  color: #fff;
}

.hero-stat-icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 2px;
}

.hero-stat-value {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero-stat-label {
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.25;
  opacity: 0.92;
  max-width: 88px;
}

.hero-decor.badge {
  width: 64px;
  height: 64px;
  background: var(--white);
  border-radius: 12px;
  top: 20px;
  right: 40px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  z-index: 2;
}

.hero-decor.trophy {
  width: 56px;
  height: 56px;
  background: var(--purple);
  border-radius: 50%;
  bottom: 40px;
  left: -16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 2;
}

/* Features grid */
.features {
  padding: 80px 0;
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 64px;
}

.feature-item {
  max-width: 480px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--white);
  font-size: 1.25rem;
}

.feature-item h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.3;
}

.feature-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.feature-item strong {
  color: var(--text);
  font-weight: 700;
}

.price-badge {
  display: inline-block;
  background: var(--green-bg);
  color: var(--green-text);
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  margin: 8px 0 12px;
}

/* Split section */
.split-section {
  padding: 80px 0;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-grid.reverse .split-image {
  order: -1;
}

.split-image img {
  border-radius: var(--radius-card);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.split-content h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  margin: 0 0 20px;
  line-height: 1.2;
}

.split-content p {
  color: var(--text-muted);
  margin: 0 0 28px;
  font-size: 1.05rem;
}

/* How it works */
.how-it-works {
  padding: 80px 0 100px;
  background: var(--bg-subtle);
}

.how-it-works h2 {
  text-align: center;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  margin: 0 0 56px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.step {
  text-align: center;
}

.step-num {
  width: 56px;
  height: 56px;
  background: var(--purple);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  margin: 0 auto 20px;
}

.step h4 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Page hero (inner pages) */
.page-hero {
  background: var(--bg-hero);
  padding: 48px 0 56px;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  margin: 0 0 12px;
}

.page-hero p {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.1rem;
  max-width: 560px;
}

/* Voucher cards */
.vouchers-section {
  padding: 64px 0 100px;
}

.voucher-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.voucher-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.voucher-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--purple);
}

.voucher-card.featured {
  border-color: var(--purple);
  box-shadow: var(--shadow);
  position: relative;
}

.voucher-card .tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--purple);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.voucher-card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.voucher-card .price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--purple);
  margin: 16px 0;
}

.voucher-card .price small {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* MRP + discounted price (from DB) */
.product-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 12px;
  margin: 16px 0;
}

.product-price--card .price-mrp {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.product-price--card .price-sale {
  font-size: 2rem;
  font-weight: 800;
  color: var(--purple);
}

.product-price--inline {
  justify-content: flex-end;
  margin: 0;
  gap: 8px;
}

.product-price--inline .price-mrp {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-price--inline .price-sale {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--purple);
}

.voucher-card ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.voucher-card li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.voucher-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--purple);
  font-weight: 700;
}

.voucher-card .btn {
  width: 100%;
}

/* Book exam form */
.book-section {
  padding: 64px 0 100px;
}

.book-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
}

.form-card h2 {
  margin: 0 0 24px;
  font-size: 1.35rem;
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(76, 55, 164, 0.15);
}

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

.summary-card {
  background: var(--bg-hero);
  border-radius: var(--radius-card);
  padding: 28px;
  position: sticky;
  top: 96px;
}

.summary-card h3 {
  margin: 0 0 20px;
  font-size: 1.1rem;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.summary-line-exam {
  align-items: flex-start;
  gap: 12px;
}

.summary-exam-name {
  font-weight: 600;
  color: var(--text);
  padding-top: 2px;
}

.summary-prices {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 4px 10px;
  text-align: right;
  flex-shrink: 0;
  max-width: 58%;
}

.summary-price-mrp {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

.summary-price-sale {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--purple);
  white-space: nowrap;
}

.summary-line.total {
  border-bottom: none;
  font-weight: 800;
  font-size: 1.15rem;
  padding-top: 16px;
  margin-top: 8px;
}

/* Auth */
.auth-page {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: var(--bg-hero);
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
}

.auth-card .subtitle {
  color: var(--text-muted);
  margin: 0 0 28px;
  font-size: 0.95rem;
}

.auth-card .btn {
  width: 100%;
  margin-top: 8px;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--purple);
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.85);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo-link {
  display: inline-block;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin: 0;
  max-width: 280px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 16px;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  padding: 6px 0;
  opacity: 0.8;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  font-size: 0.85rem;
  opacity: 0.7;
  text-align: center;
}

/* Mobile menu toggle (prototype) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 900px) {
  .hero-grid,
  .split-grid,
  .book-layout {
    grid-template-columns: 1fr;
  }

  .split-grid.reverse .split-image {
    order: 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .voucher-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .header-inner {
    height: 80px;
    padding: 0 16px;
  }

  .logo-img--header {
    max-width: min(238px, 53vw);
  }

  .nav-main {
    display: none;
  }

  .header-actions {
    align-self: center;
  }

  .menu-toggle {
    display: block;
    align-self: center;
  }
}

/* FAQ */
.faq-hero h1 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  max-width: 720px;
}

.faq-section {
  padding: 0 0 100px;
  background: var(--white);
}

.faq-container {
  max-width: 800px;
}

.faq-item {
  padding: 28px 0;
  border-bottom: 1px solid #e2e2e8;
}

.faq-item:first-child {
  padding-top: 8px;
}

.faq-question {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 14px;
  line-height: 1.4;
  color: #1a2b4a;
}

.faq-num {
  margin-right: 4px;
}

.faq-answer {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.65;
}

.faq-answer p {
  margin: 0 0 12px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-steps {
  margin: 16px 0;
  padding-left: 1.25rem;
}

.faq-steps li {
  margin-bottom: 10px;
  padding-left: 4px;
}

.faq-steps a {
  color: var(--purple);
  font-weight: 600;
}

.faq-answer a {
  color: var(--purple);
  font-weight: 600;
}

/* Flash messages */
.flash {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 500;
}
.flash-error {
  background: #fde8e8;
  color: #9b1c1c;
  border: 1px solid #f5c6c6;
}
.flash-success {
  background: var(--green-bg);
  color: var(--green-text);
  border: 1px solid #b8dfc4;
}

@media (max-width: 600px) {
  .header-actions .btn-outline {
    display: none;
  }

  .steps {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
