/* ============================================
   Books Landing Page — IELTS Power Journey
   Layout: Flex/Grid (no zoom hack, no abs layout)
   ============================================ */

@font-face {
  font-family: 'SVN-Gilroy';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/SVN-Gilroy/Gilroy-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'SVN-Gilroy';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/SVN-Gilroy/Gilroy-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'SVN-Gilroy';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/SVN-Gilroy/SVN-GilroyBold.woff2') format('woff2');
}

/* --- CSS Variables --- */
:root {
  --bj-red: #db1f1f;
  --bj-red-dark: #9d0b0f;
  --bj-ink: #252525;
  --bj-muted: #999;
  --bj-border: #e9ecef;
  --bj-card-border: #e8e8e8;
  --bj-bg: #f5f5f5;
  --bj-pink: rgba(219, 31, 31, 0.10);
  --bj-pink-bg: rgba(219, 31, 31, 0.05);
  --bj-purple: #883e9f;
  --bj-blue: #4a65af;
  --bj-font: "SVN-Gilroy", "Inter", system-ui, sans-serif;
}

/* ============================================
   PAGE SHELL
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

.bp-page {
  width: 100%;
  margin: 0 auto;
  position: relative;
  background: #fff;
  overflow: hidden;
  font-family: var(--bj-font);
  font-weight: 500;
  color: var(--bj-ink);
  -webkit-font-smoothing: auto;
}

/* --- Background image (decorative) --- */
.bp-bg {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}
.bp-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

/* --- Content wrapper (flow above bg) --- */
.bp-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

/* ============================================
   HERO SECTION (flow)
   ============================================ */
.bp-hero-img {
  width: 100%;
  height: 0;
  padding-bottom: 43%;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  margin-top: 50px;
  cursor: pointer;
}
.bp-hero-img-desktop { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
.bp-hero-img-mobile { display: none; }
.bp-hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 17.5%;
  gap: 12px;
}
.bp-hero-subtitle {
  text-align: center;
  font-size: 18px; font-weight: 500;
  line-height: 28px; letter-spacing: -0.3px;
  max-width: 1248px;
  width: 100%;
  padding-top: 26px;
}
.bp-hero-subtitle strong {
  font-weight: 700;
  letter-spacing: -0.6px;
}
.bp-hero-checklist {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 7px;
}
.bp-hero-pill {
  border-radius: 8px;
  background: var(--bj-pink);
  padding: 4px 8px;
  font-size: 18px; font-weight: 500;
  white-space: nowrap;
}
.bp-hero-check {
  display: flex; align-items: center; gap: 10px;
  white-space: nowrap;
}
.bp-hero-check .bp-icon-check { margin-top: 0; }
.bp-hero-check span { font-weight: 500; }
.bp-hero-cta {
  text-align: center;
  font-size: 20px; font-weight: 700;
  line-height: 30px; letter-spacing: -0.38px;
  max-width: 1006px;
  padding: 40px;
}
.bp-hero-divider {
  width: 65%; max-width: 1248px; height: 1px;
  border-top: 1px solid var(--bj-ink);
  margin: 0 auto;
  padding-top: 10px;
}

/* ============================================
   INTRO + ILLUSTRATION (flex side-by-side)
   ============================================ */
.bp-intro-illustration-row {
  display: flex;
  align-items: flex-start;
  padding: 74px 17.5% 0;
  gap: 0;
  position: relative;
}
.bp-intro {
  width: 45%;
  min-width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
}
.bp-intro-heading {
  width: 100%;
  margin-bottom: 20px;
  text-align: center;
}
.bp-intro-heading .bp-line1 {
  font-size: 28px; font-weight: 700;
  line-height: 40px;
  color: var(--bj-ink);
}
.bp-intro-heading .bp-line2 {
  font-size: 32px; font-weight: 700;
  line-height: 44px;
  background: linear-gradient(180deg, var(--bj-red) 0%, var(--bj-red-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bp-intro-divider-fade {
  width: 372px; height: 1px;
  position: relative;
  margin: -1px 0 0;
  overflow: hidden;
  padding: 1px 0 0;
}
.bp-intro-divider-fade::after {
  content: "";
  position: absolute; inset: 0;
  border-top: 1px solid transparent;
  mask-image: linear-gradient(#fff 0 0), linear-gradient(#fff 0 0);
  mask-origin: padding-box, border-box;
  mask-clip: padding-box, border-box;
  mask-composite: exclude;
  background-image: linear-gradient(90deg, transparent 0%, #000 50%, transparent 100%);
}
.bp-intro-body {
  display: flex; flex-direction: column; gap: 32px;
  width: 100%;
}
.bp-intro-issue {
  display: flex; flex-direction: column; gap: 20px;
}
.bp-intro-issue-row {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  max-width: 458px;
}
.bp-intro-issue-icon { width: 20px; height: 20px; flex-shrink: 0; }
.bp-intro-issue-icon svg { width: 100%; height: 100%; }
.bp-intro-dashed {
  border-top: 1px dashed rgba(37, 37, 37, 0.4);
  width: 100%;
  margin: -1px 0 0;
}
.bp-intro-solution {
  display: flex; flex-direction: column; gap: 24px;
}
.bp-intro-solution-label {
  font-size: 18px; font-weight: 700;
  letter-spacing: -0.65px;
}
.bp-intro-solution-label strong { letter-spacing: 0%; }
.bp-intro-stat-cards {
  display: flex; gap: 12px;
  width: 100%;
  flex-wrap: wrap;
}
.bp-intro-stat-card {
  flex: 1;
  min-width: 150px;
  border-radius: 16px;
  background: #f4f0ed;
  padding: 16px 8px;
  display: flex; flex-direction: column;
  align-items: center; gap: 9px;
  text-align: center;
}
.bp-intro-stat-card-icon { width: 40px; height: 40px; }
.bp-intro-stat-card-title { font-size: 18px; font-weight: 700; }
.bp-intro-stat-card-line {
  width: 128px; height: 1px;
  border-top: 1px solid rgba(37, 37, 37, 0.2);
}
.bp-intro-stat-card-desc {
  font-size: 16px; font-weight: 500;
  max-width: 183px;
}
.bp-intro-arrow-row {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
}
.bp-intro-arrow-circle {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--bj-ink);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bp-intro-arrow-circle svg { width: 16px; height: 16px; transform: rotate(180deg); }
.bp-intro-arrow-text {
  font-size: 18px; font-weight: 500;
  letter-spacing: -0.36px;
}

.bp-intro-illustration {
  position: absolute;
  right: -110%;
  top: 0;
  width: 55%;
  max-width: 701px;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}
.bp-intro-illustration img {
  height: 100%;
  max-height: 701px;
  width: auto;
  object-fit: cover;
}

/* ============================================
   BOOKS SECTION (flow)
   ============================================ */
.bp-books {
  padding: 100px 17.5% 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bp-books-row {
  display: flex; gap: 18px;
  width: 100%;
}
.bp-book-card {
  flex: 1;
  min-width: 280px;
  max-width: 404px;
  border-radius: 17px;
  border: 1px solid var(--bj-border);
  background: #fff;
  padding: 24px 16px;
  display: flex; flex-direction: column;
  align-items: center; gap: 16px;
  position: relative;
  text-decoration: none;
  color: inherit;
}
.bp-book-card--active {
  border-color: var(--bj-red);
  background: var(--bj-pink-bg);
}
.bp-book-card-img {
  width: 179px; height: 276px;
  border-radius: 8px;
  border: 1px solid var(--bj-red);
  overflow: hidden;
}
.bp-book-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.bp-book-card-info {
  display: flex; flex-direction: column; gap: 12px;
  width: 100%;
}
.bp-book-card-title {
  font-size: 20px; font-weight: 700;
  line-height: 28px; letter-spacing: -0.64px;
  width: 100%;
  color: var(--bj-ink);
}
.bp-book-card-meta {
  display: flex; align-items: center; gap: 4px;
  white-space: nowrap;
  color: var(--bj-ink);
}
.bp-book-card-meta svg { width: 24px; height: 24px; }
.bp-book-card-desc {
  font-size: 16px; font-weight: 500;
  line-height: 24px;
  width: 100%;
  color: var(--bj-ink);
}
.bp-book-card-btn {
  width: 100%;
  border-radius: 8px;
  padding: 8px 16px;
  text-align: center;
  font-size: 16px; font-weight: 700;
  letter-spacing: -0.38px;
  cursor: pointer;
  margin-top: auto;
}
.bp-book-card-btn--ghost {
  border: 1px solid var(--bj-red);
  background: var(--bj-red);
  color: #fff;
}
.bp-book-card-btn--outline {
  border: 1px solid var(--bj-red);
  background: rgba(219, 31, 31, 0.1);
  color: var(--bj-red);
}
.bp-book-card-tab {
  position: absolute;
  left: 25%; right: 25%;
  bottom: 0;
  height: 4px;
  border-radius: 0 0 8px 8px;
  background: var(--bj-red);
}
.bp-books-chevron {
  display: flex; justify-content: center;
  width: 100%;
}
.bp-books-chevron svg { width: 40px; height: 40px; }
.bp-books-divider {
  width: 100%; height: 1px;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  margin: -1px 0 0;
}
.bp-books-detail {
  display: flex; gap: 16px;
  width: 100%;
}
.bp-books-detail-left {
  width: 458px;
  max-width: 100%;
  display: flex; flex-direction: column; gap: 10px;
  flex-shrink: 0;
}
.bp-books-detail-cover {
  width: 100%;
  max-width: 437px;
  height: auto;
  aspect-ratio: 437 / 672.4;
  border-radius: 11.5px;
  border: 2px solid rgba(51, 54, 63, 0.2);
  overflow: hidden;
}
.bp-books-detail-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.bp-books-detail-thumbs {
  position: relative;
  width: 100%; height: 93px;
}
.bp-books-detail-thumbs-row {
  position: absolute;
  left: 21.5px; top: 8.1px;
  display: flex; gap: 8px;
}
.bp-books-detail-thumb {
  width: 78px; height: 78px;
  border-radius: 9.5px;
  border: 1px solid var(--bj-red);
  overflow: hidden;
}
.bp-books-detail-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.bp-books-detail-thumb--inactive { border-color: rgba(37, 37, 37, 0.2); }
.bp-books-detail-thumbs-fade {
  position: absolute;
  right: 0; top: 0;
  width: 62px; height: 93px;
  background: linear-gradient(-90deg, rgba(255, 255, 255, 0) 0%, #fff 26.4%, #fff 100%);
  transform: scaleX(-1);
}
.bp-books-detail-preview {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.bp-books-detail-preview-track {
  display: flex;
  gap: 10px;
  transition: transform 0.3s ease;
}
.bp-books-detail-preview img {
  width: 120px;
  min-width: 120px;
  height: 170px;
  border-radius: 6px;
  border: 1px solid var(--bj-card-border);
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s;
}
.bp-books-detail-preview img:hover {
  transform: scale(1.05);
}
.bp-preview-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bj-red);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  font-size: 18px;
  line-height: 1;
}
.bp-preview-nav:hover { background: var(--bj-red-dark); }
.bp-preview-nav--prev { left: 0; }
.bp-preview-nav--next { right: 0; }
.bp-books-detail-right {
  flex: 1;
  min-width: 0;
  padding: 0 16px;
  display: flex; flex-direction: column; gap: 24px;
}
.bp-books-detail-title {
  font-size: 40px; font-weight: 700;
  line-height: 56px; letter-spacing: -1.35px;
  color: var(--bj-purple);
  min-height: auto;
}
.bp-books-detail-subtitle {
  font-size: 20px; font-weight: 600;
  line-height: 30px; letter-spacing: -0.44px;
}
.bp-books-detail-desc {
  font-size: 18px; font-weight: 500;
  line-height: 28px; letter-spacing: 0.06px;
}
.bp-books-detail-pills { display: flex; gap: 16px; flex-wrap: wrap; }
.bp-pill {
  display: flex; align-items: center; gap: 4px;
  border: 1px solid var(--bj-card-border);
  border-radius: 18px;
  padding: 6px 16px;
  height: 36px;
  font-size: 16px; font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.bp-pill svg { width: 24px; height: 24px; flex-shrink: 0; }
.bp-pill--ebook svg { height: 30px; }
.bp-books-detail-checks {
  display: flex; flex-direction: column; gap: 12px;
}
.bp-books-detail-check {
  display: flex; align-items: flex-start; gap: 10px;
}
.bp-books-detail-check-text {
  font-size: 18px; font-weight: 500;
    width: calc(100% - 20px);
  line-height: 28px;
}
.bp-books-detail-info-dashed {
  border-top: 1px dashed rgba(37, 37, 37, 0.4);
  width: 100%;
  margin: -1px 0 0;
}
.bp-books-detail-info-title {
  font-size: 20px; font-weight: 600;
  line-height: 30px; letter-spacing: -0.47px;
}
.bp-books-detail-info-items {
  display: flex; gap: 36px; flex-wrap: wrap;
}
.bp-books-detail-info-item {
  position: relative;
  padding-left: 16px;
  font-size: 18px; font-weight: 600;
  line-height: 28px;
}
.bp-books-detail-info-item::before {
  content: "";
  position: absolute;
  left: 0; top: 10.5px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: linear-gradient(264.9deg, var(--bj-red) 80.3%, #b01618 100%);
  transform: rotate(-45deg);
}

/* CTA bar */
.bp-books-cta-wrapper {
  display: flex;
  justify-content: flex-end;
  padding: 0;
}
.bp-books-cta {
  width: 100%;
  max-width: 774px;
  height: 58px;
  border: 1px solid var(--bj-red);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.01);
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
}
.bp-books-cta-text {
  font-size: 22px; font-weight: 700;
  line-height: 34px; letter-spacing: -0.35px;
  color: var(--bj-red);
}
.bp-books-cta svg { width: 24px; height: 24px; }

/* ============================================
   REGISTER + FORM (flex side-by-side)
   ============================================ */
.bp-register-wrapper {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 60px 17.5% 60px;
  gap: 87px;
  background: url('/templates/books/images/frame-613.png') center/cover no-repeat;
}

/* Decorative background (absolute, behind content) */
.bp-register-deco {
  position: absolute;
  left: 0; top: -60px;
  width: 100%; height: 853px;
  pointer-events: none;
  z-index: 0;
}

.bp-register {
  width: 50%;
  min-width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.bp-register-heading {
  display: flex; flex-direction: column; gap: 12px;
  width: 100%;
}
.bp-register-heading-row {
  display: flex; align-items: center; gap: 12px;
  white-space: nowrap;
}
.bp-register-accent {
  width: 4px; height: 24px;
  background: var(--bj-red);
  flex-shrink: 0;
}
.bp-register-heading-text {
  font-size: 24px; font-weight: 700;
  line-height: 36px; letter-spacing: -0.3px;
}
.bp-register-subheading {
  display: flex; align-items: center; gap: 12px;
  white-space: nowrap;
}
.bp-register-subheading-circle {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--bj-ink);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bp-register-subheading-circle svg { width: 16px; height: 16px; }
.bp-register-subheading-text {
  font-size: 28px; font-weight: 700;
  line-height: 42px;
}
.bp-register-subheading-gradient {
  font-size: 36px; font-weight: 700;
  line-height: 52px;
  background: linear-gradient(180deg, var(--bj-red) 0%, var(--bj-red-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bp-register-bigtitle {
  font-size: 36px; font-weight: 700;
  line-height: 52px;
  letter-spacing: 0%;
  width: 100%;
  background: linear-gradient(180deg, var(--bj-red) 0%, var(--bj-red-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bp-register-benefits {
  display: flex; flex-direction: column; gap: 16px;
  width: 100%;
}
.bp-register-benefit {
  display: flex; align-items: flex-start; gap: 10px;
}
.bp-register-benefit-text {
  font-size: 18px; font-weight: 500;
  line-height: 28px;
}
.bp-register-benefit-text strong { font-weight: 700; }
.bp-register-solid-divider {
  border-top: 1px solid var(--bj-ink);
  width: 100%;
  margin: -1px 0 0;
}
.bp-register-form-row {
  display: flex; align-items: center; gap: 19px;
  width: 100%;
}
.bp-register-form-icon {
  width: 55px; height: 55px;
  border-radius: 50%;
  background: rgba(219, 31, 31, 0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bp-register-form-icon svg { width: 32px; height: 32px; }
.bp-register-form-text {
  display: flex; flex-direction: column; gap: 4px;
  flex: 1;
}
.bp-register-form-text-main {
  font-size: 20px; font-weight: 500;
  line-height: 24px;
}
.bp-register-form-text-sub {
  font-size: 16px; font-weight: 500;
  line-height: 24px;
}
.bp-register-form-arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bj-ink);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bp-register-form-arrow svg { width: 24px; height: 24px; }

.bp-register-books-img {
  display: flex;
  align-items: flex-end;
  gap: 0;
  width: 100%;
  max-width: 434px;
  height: 253px;
  position: relative;
}
.bp-register-books-img img {
  object-fit: cover;
}

/* ============================================
   FORM CARD
   ============================================ */
.bp-form-card {
  width: 45%;
  min-width: 300px;
  flex-shrink: 0;
  border: 1px solid var(--bj-red);
  border-radius: 20px;
  background: #fff;
  padding: 20px 28px;
  display: flex; flex-direction: column; gap: 24px;
  align-items: center;
  filter: drop-shadow(0 4px 15.1px rgba(219, 31, 31, 0.2));
  position: relative;
  z-index: 1;
  align-self: flex-start;
}
.bp-form-card-title {
  width: 100%;
  text-align: center;
  font-size: 24px; font-weight: 600;
  line-height: 27px; letter-spacing: -0.31px;
}
.bp-form-fields {
  display: flex; flex-direction: column; gap: 16px;
  width: 100%;
}
.bp-form-field {
  width: 100%; height: 48px;
  position: relative;
}
.bp-form-field-bg {
  position: absolute; inset: 0;
  border-radius: 12px;
  background: var(--bj-bg);
}
.bp-form-field label {
  position: absolute;
  left: 15px; top: 50%;
  transform: translateY(-50%);
  font-size: 16px; font-weight: 500;
  color: var(--bj-muted);
  pointer-events: none;
  transition: all 0.2s;
}
.bp-form-field input,
.bp-form-field select {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border-radius: 12px;
  background: var(--bj-bg);
  border: none;
  padding: 0 15px;
  font-size: 16px; font-weight: 500;
  color: var(--bj-ink);
  font-family: var(--bj-font);
}
.bp-form-field input:focus + label,
.bp-form-field input:not(:placeholder-shown) + label {
  top: 8px;
  font-size: 12px;
  color: var(--bj-red);
}
.bp-form-radio-section {
  display: flex; flex-direction: column; gap: 16px;
  width: 100%;
}
.bp-form-radio-label {
  font-size: 18px; font-weight: 600;
  letter-spacing: -0.41px;
}
.bp-form-radio-group {
  display: flex; gap: 124px;
  width: 100%;
}
.bp-form-radio {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer;
}
.bp-form-radio input[type="radio"] {
  width: 24px; height: 24px;
  border: 1px solid var(--bj-border);
  border-radius: 50%;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.bp-form-radio input[type="radio"]:checked { border-color: var(--bj-red); }
.bp-form-radio input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bj-red);
}
.bp-form-radio-text {
  font-size: 18px; font-weight: 500;
  white-space: nowrap;
}
.bp-form-submit {
  width: 100%; height: 48px;
  border-radius: 12px;
  background: var(--bj-red);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
  cursor: pointer;
  border: none;
  font-family: var(--bj-font);
}
.bp-form-submit-text {
  display: inline-block;
  animation: bpSubmitBounce 2s linear infinite;
}
@keyframes bpSubmitBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
.bp-form-submit:hover .bp-form-submit-text {
  animation: none;
}
.bp-form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.bp-form-msg {
  width: 100%;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  display: none;
}
.bp-form-msg.alert-danger { display: block; color: var(--bj-red); }
.bp-form-msg.alert-success { display: block; color: #198754; }

/* ============================================
   SVG ICONS
   ============================================ */
.bp-icon { display: inline-block; }
.bp-icon-check { width: 17px; height: 17px; margin-top: 5px; }
.bp-icon-check svg { width: 100%; height: 100%; display: block; }
.bp-icon-eye { width: 24px; height: 24px; }
.bp-icon-eye svg { width: 100%; height: 100%; display: block; }
.bp-icon-arrow { width: 24px; height: 24px; }
.bp-icon-arrow svg { width: 100%; height: 100%; display: block; }
.bp-icon-circle { width: 24px; height: 24px; }
.bp-icon-circle svg { width: 100%; height: 100%; display: block; }

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet landscape / small desktop */
@media (min-width: 1261px) {
  .bp-intro-illustration { right: -140%; }
}

@media (max-width: 1400px) {
  .bp-hero-text,
  .bp-intro-illustration-row,
  .bp-books,
  .bp-books-cta-wrapper,
  .bp-register-wrapper { padding-left: 5%; padding-right: 5%; }
}

@media (max-width: 1200px) {
  /* Stack intro + illustration */
  .bp-intro-illustration-row {
    flex-direction: column;
    align-items: center;
  }
  .bp-intro { width: 100%; }
  .bp-intro-heading { width: 100%; }
  .bp-intro-illustration { position: static; justify-content: center; max-height: 500px; }
  .bp-intro-illustration img { max-height: 500px; }

  /* Stat cards centered */
  .bp-intro-stat-cards { justify-content: center; }
  .bp-intro-stat-card { margin: 0 auto; }

  /* Book cards centered */
  .bp-books-row { flex-wrap: wrap; justify-content: center; gap: 20px; }
  .bp-book-card { min-width: 280px; margin: 0 auto; }

  /* Book detail stack centered */
  .bp-books-detail { flex-direction: column; align-items: center; }
  .bp-books-detail-left { width: 100%; max-width: 458px; margin: 0 auto; }

  /* Register + form stack */
  .bp-register-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
  .bp-register { width: 100%; max-width: 619px; margin: 0 auto; }
  .bp-form-card { width: 100%; max-width: 545px; margin: 0 auto; }
}

@media (max-width: 800px) {
  .bp-hero-img-desktop { display: none; }
  .bp-hero-img-mobile { display: block; width: 100%; height: auto; position: static; padding-top: 60px; }
  .bp-hero-img { height: auto; padding-bottom: 0; }
  .bp-hero-text { display: none; }
  .bp-hero-subtitle {
    font-size: 14px; line-height: 20px;
    color: #fff; text-align: center;
    padding-top: 0;
  }
  .bp-hero-checklist { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .bp-hero-pill { background: rgba(255,255,255,0.2); color: #fff; font-size: 14px; }
  .bp-hero-check { white-space: normal; font-size: 14px; color: #fff; }
  .bp-hero-cta {
    font-size: 16px; line-height: 22px;
    color: #fff; padding-top: 16px;
    max-width: 100%;
  }
  .bp-hero-divider { display: none; }

  /* Intro */
  .bp-intro-illustration-row { padding: 40px 16px 0; }
  .bp-intro { width: 100%; }
  .bp-intro-heading .bp-line1 { font-size: 20px; line-height: 28px; }
  .bp-intro-heading .bp-line2 { font-size: 22px; line-height: 28px; }
  .bp-intro-issue-row { width: 100%; }
  .bp-intro-stat-cards { flex-direction: row; flex-wrap: nowrap; gap: 8px; }
  .bp-intro-stat-card { flex: 1 1 0; min-width: 0; max-width: none; margin: 0; padding: 12px 6px; }
  .bp-intro-stat-card-icon { width: 32px; height: 32px; }
  .bp-intro-stat-card-title { font-size: 14px; }
  .bp-intro-stat-card-line { width: 100%; }
  .bp-intro-stat-card-desc { font-size: 12px; max-width: none; }
  .bp-intro-illustration { position: static; width: 100%; max-height: 300px; }
  .bp-intro-illustration img { max-height: 300px; }

  /* Books */
  .bp-books { padding: 40px 16px 60px; }
  .bp-books-row { flex-direction: row; flex-wrap: nowrap; gap: 8px; }
  .bp-book-card { flex: 1 1 0; min-width: 0; max-width: none; padding: 12px 8px; }
  .bp-book-card-img { width: 100px; height: 152px; }
  .bp-book-card-info, .bp-book-card-btn { display: none; }

  /* Book detail */
  .bp-books-detail { flex-direction: column; align-items: center; padding: 0 16px; }
  .bp-books-detail-left { width: 100%; max-width: 320px; }
  .bp-books-detail-cover { max-width: 320px; }
  .bp-books-detail-right { padding: 0; width: 100%; }
  .bp-books-detail-title { font-size: 24px; line-height: 32px; min-height: auto; }
  .bp-books-detail-pills { gap: 8px; }
  .bp-pill { padding: 4px 12px; font-size: 13px; height: 28px; }
  .bp-books-detail-check-text { font-size: 15px; line-height: 20px; }
  .bp-books-detail-info-items { gap: 16px; }
  .bp-books-detail-info-item { font-size: 15px; }

  /* CTA */
  .bp-books-cta-wrapper { padding: 24px 16px; justify-content: center; }
  .bp-books-cta { height: 50px; }
  .bp-books-cta-text { font-size: 18px; }

  /* Register */
  .bp-register-wrapper {
    padding: 40px 16px 40px;
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .bp-register { width: 100%; max-width: 100%; }
  .bp-register-heading-text { font-size: 20px; line-height: 30px; }
  .bp-register-subheading-text { font-size: 20px; line-height: 30px; }
  .bp-register-subheading-gradient { font-size: 24px; }
  .bp-register-bigtitle { font-size: 24px; }
  .bp-register-benefit-text { font-size: 15px; }
  .bp-register-form-row { flex-direction: column; text-align: center; gap: 12px; }
  .bp-register-form-icon { width: 48px; height: 48px; }
  .bp-register-form-icon svg { width: 24px; height: 24px; }
  .bp-register-books-img { max-width: 100%; height: auto; aspect-ratio: 434/253; }

  /* Form card */
  .bp-form-card { width: 100%; max-width: 100%; padding: 16px 16px; border-radius: 16px; }
  .bp-form-card-title { font-size: 18px; }
  .bp-form-field { height: 44px; }
  .bp-form-field input, .bp-form-field select { font-size: 14px; }
  .bp-form-field label { font-size: 14px; }
  .bp-form-radio-group { flex-direction: column; gap: 12px; }
  .bp-form-radio-text { font-size: 15px; }
  .bp-form-submit { height: 44px; font-size: 18px; border-radius: 10px; }
}

@media (max-width: 480px) {
  .bp-hero-subtitle { font-size: 13px; line-height: 18px; }
  .bp-hero-pill { font-size: 13px; padding: 3px 6px; }
  .bp-hero-check span { font-size: 13px; }
  .bp-hero-cta { font-size: 15px; }

  .bp-intro-heading .bp-line1 { font-size: 18px; line-height: 24px; }
  .bp-intro-heading .bp-line2 { font-size: 20px; line-height: 26px; }
  .bp-intro-stat-card-title { font-size: 16px; }
  .bp-intro-stat-card-desc { font-size: 14px; }
  .bp-intro-solution-label { font-size: 15px; }
  .bp-intro-arrow-text { font-size: 15px; }

  .bp-books-detail-title { font-size: 22px; line-height: 28px; }
  .bp-books-detail-subtitle { font-size: 16px; }
  .bp-books-detail-desc { font-size: 14px; }
  .bp-books-detail-check-text { font-size: 14px; }
  .bp-pill { padding: 3px 10px; font-size: 12px; height: 26px; }

  .bp-books-cta-text { font-size: 16px; }

  .bp-register-heading-text { font-size: 18px; line-height: 28px; }
  .bp-register-subheading-text { font-size: 18px; line-height: 28px; }
  .bp-register-subheading-gradient { font-size: 22px; }
  .bp-register-bigtitle { font-size: 22px; }
  .bp-register-benefit-text { font-size: 14px; }

  .bp-form-card-title { font-size: 17px; }
}

.bp-success-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bp-success-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.bp-success-popup-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 40px 32px 32px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.bp-success-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bj-bg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bp-success-popup-icon img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}
.bp-success-popup-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--bj-ink);
  line-height: 1.3;
}
.bp-success-popup-desc {
  font-size: 16px;
  font-weight: 500;
  color: var(--bj-muted);
  line-height: 1.5;
}
.bp-success-popup-btn {
  margin-top: 8px;
  padding: 12px 32px;
  border: 1px solid var(--bj-red);
  border-radius: 12px;
  background: transparent;
  color: var(--bj-red);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--bj-font);
  transition: background 0.2s;
}
.bp-success-popup-btn:hover {
  background: rgba(219, 31, 31, 0.05);
}
