/* ===================================
   CSS Reset & Base Styles
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===================================
   CSS Variables
   =================================== */

/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

:root {
    /* Learning Pathways Press Brand Colors */
    --lpp-primary-green: #6EC1B6;
    --lpp-primary-green-hover: #5fb5aa;
    --lpp-primary-green-pressed: #53a89e;
    --lpp-secondary-pink: #E6A8A1;
    --lpp-secondary-pink-hover: #e19a92;
    --lpp-secondary-pink-pressed: #dc8d84;
    --lpp-accent-yellow: #F3D88A;
    --lpp-neutral-dark: #2B2B2B;
    --lpp-neutral-mid: #8D8D8D;
    --lpp-card-gray: #EFEFEF;
    --lpp-section-bg: #FAFAFA;

    /* Legacy color aliases (for backward compatibility) */
    --color-primary: var(--lpp-primary-green);
    --color-primary-dark: var(--lpp-primary-green-pressed);
    --color-text-dark: var(--lpp-neutral-dark);
    --color-text-gray: var(--lpp-neutral-mid);
    --color-bg-light: var(--lpp-section-bg);
    --color-white: #ffffff;
    --color-success: var(--lpp-primary-green);
    --color-error: #f56565;
    --color-orange: #ed8936;
    --color-border: rgba(0, 0, 0, 0.1);

    /* Level Badge Colors */
    --badge-a2-bg: #dbeafe;
    --badge-a2-text: #1e40af;
    --badge-b1-bg: #fef3c7;
    --badge-b1-text: #92400e;
    --badge-b2-bg: #fce7f3;
    --badge-b2-text: #9f1239;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-size-hero: clamp(2rem, 5vw, 3.5rem);
    --font-size-section: clamp(1.75rem, 4vw, 2.5rem);
    --font-size-subheading: clamp(1.25rem, 3vw, 1.75rem);
    --font-size-body: 18px;
    --font-size-small: 14px;
    --font-size-button: 18px;

    /* Spacing */
    --spacing-section: 80px;
    --spacing-container: 24px;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;

    /* Breakpoints (used in media queries) */
    --breakpoint-mobile: 640px;
    --breakpoint-tablet: 768px;
    --breakpoint-desktop: 1024px;
}

/* ===================================
   Typography & Base
   =================================== */

body {
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary-dark);
}

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

/* ===================================
   Container
   =================================== */

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

/* ===================================
   Header & Navigation
   =================================== */

.header {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-container);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--lpp-neutral-dark);
    font-size: 1.25rem;
    font-weight: 700;
}

.logo:hover {
    /* Text stays black, no opacity change */
    color: var(--lpp-neutral-dark);
}

.logo__link {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo__images {
    position: relative;
    height: 48px;
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo__image {
    height: 48px;
    width: 48px;
    object-fit: contain;
    display: none; /* Hide base image (black outline) */
}

.logo__image--blue {
    position: absolute;
    top: 0;
    left: 0;
    display: block; /* Show turquoise logo */
    transition: filter 0.3s ease;
    /* Apply turquoise color filter */
    filter: brightness(0) saturate(100%) invert(73%) sepia(18%) saturate(1099%) hue-rotate(125deg) brightness(91%) contrast(89%);
}

.logo:hover .logo__image--blue,
.logo__link:hover .logo__image--blue {
    /* Make it darker on hover */
    filter: brightness(0) saturate(100%) invert(11%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(96%) contrast(89%);
}

/* Navigation */
.nav {
    display: none;
    align-items: center;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .nav {
        display: flex;
    }
}

.nav__link {
    position: relative;
    padding: 0.5rem 0;
    color: var(--lpp-neutral-mid);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: opacity 0.2s ease;
}

.nav__link:hover {
    opacity: 0.7;
    color: var(--lpp-neutral-mid);
}

.nav__link--active {
    color: var(--lpp-neutral-dark);
}

.nav__link--active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--lpp-primary-green);
}

/* Mobile menu button (for future implementation) */
.mobile-menu-button {
    display: block;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--lpp-neutral-dark);
}

@media (min-width: 768px) {
    .mobile-menu-button {
        display: none;
    }
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-bg-light) 100%);
    padding: var(--spacing-section) 0;
    text-align: center;
}

.hero__title {
    font-size: var(--font-size-hero);
    color: var(--color-primary);
    margin-bottom: 16px;
}

.hero__subtitle {
    font-size: var(--font-size-subheading);
    color: var(--color-text-gray);
    margin-bottom: 24px;
    font-weight: 600;
}

.hero__description {
    font-size: var(--font-size-body);
    color: var(--color-text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   Books Section
   =================================== */

.books {
    background-color: var(--color-white);
    padding: var(--spacing-section) 0;
}

.books__title {
    font-size: var(--font-size-section);
    text-align: center;
    margin-bottom: 32px;
    color: var(--color-text-dark);
}

/* ===================================
   Level Tabs (Sheet Design)
   =================================== */

.level-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 16px;
    position: relative;
}

.level-tab {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.level-tab::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, transparent, #e2e8f0, transparent);
}

.level-tab .badge {
    padding: 12px 32px;
    font-size: 16px;
    border-radius: 8px 8px 0 0;
    border: 2px solid transparent;
    border-bottom: none;
    transition: all 0.3s ease;
    display: block;
    position: relative;
    background: #f7fafc;
}

.level-tab:hover .badge {
    transform: translateY(-2px);
}

.level-tab--active .badge {
    background: white;
    border-color: #e2e8f0;
    border-bottom-color: white;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
    transform: translateY(0);
    z-index: 2;
}

.level-tab:not(.level-tab--active) .badge {
    opacity: 0.7;
}

/* ===================================
   Country Selector
   =================================== */

.country-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 0 auto 32px;
    flex-wrap: wrap;
    max-width: 700px;
}

.country-flag {
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 6px;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
}

.country-flag:hover {
    transform: scale(1.08);
    background-color: #e6f2ff;
}

.country-flag--active {
    background-color: #d1e7ff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    outline: 1px solid rgba(77, 101, 255, 0.4);
    outline-offset: 1px;
}

.country-flag:focus {
    outline: 1px solid rgba(77, 101, 255, 0.2);
    outline-offset: 1px;
}

.books__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.books__grid[hidden] {
    display: none;
}

.books__grid--active {
    animation: fadeIn 0.4s ease;
}

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

/* ===================================
   Book Card
   =================================== */

.book-card {
    background-color: var(--color-white);
    border-radius: 8px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.book-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.book-card__cover {
    width: 200px;
    height: 300px;
    object-fit: contain;
    border-radius: 4px;
    margin-bottom: 16px;
    display: block;
}

.book-card__levels {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.book-card__title {
    font-size: var(--font-size-subheading);
    margin-bottom: 16px;
    text-align: center;
    color: var(--color-text-dark);
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.book-card__link {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid var(--color-primary);
    border-radius: 6px;
    color: var(--color-primary);
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
}

.book-card__link:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* ===================================
   Badge Component
   =================================== */

.badge {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: var(--font-size-small);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge--a2 {
    background-color: var(--badge-a2-bg);
    color: var(--badge-a2-text);
}

.badge--b1 {
    background-color: var(--badge-b1-bg);
    color: var(--badge-b1-text);
}

.badge--b2 {
    background-color: var(--badge-b2-bg);
    color: var(--badge-b2-text);
}

.badge--large {
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.badge--large:hover {
    transform: scale(1.05);
}

/* ===================================
   Form Section
   =================================== */

.form-section {
    background-color: var(--color-bg-light);
    padding: var(--spacing-section) 0;
}

.form-wrapper {
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form__title {
    font-size: var(--font-size-section);
    text-align: center;
    margin-bottom: 16px;
    color: var(--color-text-dark);
}

.form__description {
    text-align: center;
    color: var(--color-text-gray);
    margin-bottom: 32px;
}

/* ===================================
   Form Elements
   =================================== */

.form__group {
    margin-bottom: 24px;
}

.form__label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text-dark);
}

.form__input {
    width: 100%;
    height: 48px;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 16px;
    font-family: var(--font-family);
    transition: all 0.3s ease;
}

.form__input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(77, 101, 255, 0.1);
}

.form__input.error {
    border-color: var(--color-error);
}

.form__error {
    display: block;
    color: var(--color-error);
    font-size: var(--font-size-small);
    margin-top: 8px;
    min-height: 20px;
}

/* ===================================
   Radio Button Group
   =================================== */

.form__fieldset {
    border: none;
    padding: 0;
}

.form__legend {
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--color-text-dark);
}

.form__radio-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.form__radio-label {
    cursor: pointer;
}

.form__radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.form__radio-label .badge {
    background: #f7fafc;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.form__radio-label:hover .badge {
    transform: scale(1.05);
}

.form__radio:not(:checked) + .badge {
    opacity: 0.7;
}

.form__radio:checked + .badge {
    background: white;
    border-color: #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: scale(1.05);
    opacity: 1;
}

.form__radio:focus + .badge {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Disabled level badges */
.form__radio-label--disabled {
    cursor: not-allowed;
    position: relative;
}

.form__radio-label--disabled .badge {
    opacity: 0.4;
    cursor: not-allowed;
}

.form__radio-label--disabled:hover .badge {
    transform: none;
}

.form__radio-label--disabled .form__radio {
    pointer-events: none;
}

/* Tooltip for disabled levels */
.level-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: var(--color-text-dark);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
}

.level-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--color-text-dark);
}

.form__radio-label--disabled:hover .level-tooltip {
    opacity: 1;
}

/* ===================================
   Book Selection Group
   =================================== */

.form__book-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form__book-label {
    cursor: pointer;
    display: block;
}

.book-option {
    display: block;
    padding: 8px 16px;
    background: #f7fafc;
    border: 2px solid transparent;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.form__book-label:hover .book-option {
    background: #edf2f7;
    transform: translateX(4px);
}

.form__radio:not(:checked) ~ .book-option {
    opacity: 0.7;
}

.form__radio:checked ~ .book-option {
    background: white;
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(77, 101, 255, 0.15);
    transform: translateX(4px);
    opacity: 1;
}

.form__radio:focus ~ .book-option {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.book-option__title {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-dark);
}

/* Checkbox */
.form__checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 12px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.form__checkbox-label:hover {
    background-color: #f7fafc;
}

.form__checkbox {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--color-primary);
}

.form__checkbox-text {
    font-size: var(--font-size-small);
    color: var(--color-text-gray);
    line-height: 1.5;
}

/* ===================================
   Button
   =================================== */

.btn {
    width: 100%;
    height: 52px;
    padding: 0 32px;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-button);
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
}

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

.btn--primary:hover:not(:disabled) {
    background-color: var(--color-primary-dark);
}

.btn--primary:active:not(:disabled) {
    transform: scale(0.98);
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* New Figma Button Variants */
.btn-green {
    background-color: var(--lpp-primary-green);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    width: auto;
}

.btn-green:hover:not(:disabled) {
    background-color: var(--lpp-primary-green-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(110, 193, 182, 0.3);
    color: white;
}

.btn-green:active:not(:disabled) {
    background-color: var(--lpp-primary-green-pressed);
    transform: translateY(0);
}

.btn-pink {
    background-color: var(--lpp-secondary-pink);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    width: auto;
}

.btn-pink:hover:not(:disabled) {
    background-color: var(--lpp-secondary-pink-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 168, 161, 0.3);
    color: white;
}

.btn-pink:active:not(:disabled) {
    background-color: var(--lpp-secondary-pink-pressed);
    transform: translateY(0);
}

.btn-ghost {
    background-color: #f3f4f6;
    color: var(--lpp-neutral-dark);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    width: auto;
}

.btn-ghost:hover:not(:disabled) {
    background-color: #e5e7eb;
}

.btn-ghost:active:not(:disabled) {
    background-color: #d1d5db;
}

.btn-ghost.active {
    background-color: var(--lpp-primary-green);
    color: white;
}

/* Button size variants */
.btn-lg {
    height: 56px;
    padding: 0 40px;
    font-size: 1.125rem;
}

.btn-sm {
    height: 40px;
    padding: 0 20px;
    font-size: 0.875rem;
}

.btn-full {
    width: 100%;
}

.btn__spinner {
    display: none;
}

.btn.loading .btn__text {
    display: none;
}

.btn.loading .btn__spinner {
    display: block;
}

/* Review button on thank you page */
.btn--review {
    margin-top: 32px;
    width: auto;
    min-width: 280px;
    padding: 0 40px;
    background: linear-gradient(135deg, var(--color-success) 0%, #38a169 100%);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
    text-decoration: none;
    display: inline-flex;
    color: var(--color-white);
}

.btn--review:hover:not(:disabled) {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    box-shadow: 0 6px 16px rgba(72, 187, 120, 0.4);
    transform: translateY(-2px);
    color: var(--color-white);
}

.btn--review:active:not(:disabled) {
    transform: translateY(0);
    color: var(--color-white);
}

.btn--review .btn__text {
    font-size: 16px;
    color: inherit;
}

/* ===================================
   Spinner Animation
   =================================== */

.spinner {
    width: 24px;
    height: 24px;
    animation: rotate 1s linear infinite;
}

.spinner__path {
    stroke: var(--color-white);
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* ===================================
   Privacy Note
   =================================== */

.form__privacy {
    font-size: var(--font-size-small);
    color: var(--color-text-gray);
    text-align: center;
    margin-top: 16px;
}

/* ===================================
   Footer
   =================================== */

.footer {
    background-color: var(--color-text-dark);
    color: var(--color-white);
    padding: 20px 0;
    text-align: center;
}

.footer__text {
    font-size: var(--font-size-small);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    justify-content: center;
}

.footer-link {
    color: rgba(255, 255, 255, 0.82);
    font-size: var(--font-size-small);
}

.footer-link:hover {
    color: white;
}

/* ===================================
   Thank You Page Specific Styles
   =================================== */

.success {
    padding: var(--spacing-section) 0;
    text-align: center;
}

.success + .books {
    padding-top: 0;
    margin-top: -20px;
}

/* On thank-you page, tabs and country selector appear after books */
.success + .books .level-tabs {
    margin-top: 48px;
    margin-bottom: 16px;
}

.success + .books .country-selector {
    margin-bottom: 0;
}

.success__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background-color: var(--color-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s ease;
}

.success__icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--color-white);
    stroke-width: 3px;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success__title {
    font-size: var(--font-size-hero);
    color: var(--color-text-dark);
    margin-bottom: 16px;
}

.success__subtitle {
    font-size: var(--font-size-subheading);
    color: var(--color-text-gray);
    margin-bottom: 32px;
}

.success__message {
    font-size: var(--font-size-body);
    color: var(--color-text-gray);
    max-width: 600px;
    margin: 0 auto 16px;
}

.success__note {
    font-size: var(--font-size-body);
    color: var(--color-text-gray);
    max-width: 600px;
    margin: 4px auto;
    font-style: italic;
}

/* ===================================
   CTA Section
   =================================== */

.cta-section {
    max-width: 700px;
    margin: 32px auto 0;
    padding: 32px;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff5f5 100%);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.cta-intro {
    font-size: var(--font-size-body);
    color: var(--color-text-gray);
    margin-bottom: 16px;
}

.cta-question {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 24px;
    line-height: 1.4;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn--choice {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    height: 56px;
    font-size: 18px;
}

.btn--yes {
    background-color: var(--color-success);
    color: var(--color-white);
}

.btn--yes:hover:not(:disabled) {
    background-color: #38a169;
}

.btn--no {
    background-color: var(--color-text-gray);
    color: var(--color-white);
}

.btn--no:hover:not(:disabled) {
    background-color: #2d3748;
}

.cta-text {
    font-size: var(--font-size-body);
    color: var(--color-text-gray);
    margin-bottom: 16px;
    line-height: 1.6;
}

.cta-highlight {
    font-size: var(--font-size-body);
    color: var(--color-text-dark);
    margin: 24px 0;
    padding: 20px;
    background: white;
    border-left: 4px solid var(--color-primary);
    border-radius: 6px;
    line-height: 1.6;
}

.cta-action {
    font-size: var(--font-size-body);
    color: var(--color-text-gray);
    margin-top: 24px;
    margin-bottom: 0;
    line-height: 1.6;
}

/* ===================================
   Response Sections
   =================================== */

.response-section {
    max-width: 700px;
    margin: 24px auto 0;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    animation: slideDown 0.4s ease;
}

.response-section--positive {
    background: linear-gradient(135deg, #f0fff4 0%, #f8f9ff 100%);
}

.response-section--negative {
    background: linear-gradient(135deg, #fffaf0 0%, #fff5f5 100%);
}

.response-section[hidden] {
    display: none;
}

.response-intro {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 24px;
    text-align: center;
}

.feedback-description {
    font-size: var(--font-size-body);
    color: var(--color-text-gray);
    margin-bottom: 24px;
    text-align: center;
    line-height: 1.6;
}

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

/* ===================================
   Feedback Form
   =================================== */

.feedback-form {
    max-width: 600px;
    margin: 0 auto;
}

.form__textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 16px;
    font-family: var(--font-family);
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 120px;
}

.form__textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(77, 101, 255, 0.1);
}

.form__textarea.error {
    border-color: var(--color-error);
}

.form__helper {
    display: block;
    font-size: var(--font-size-small);
    color: var(--color-text-gray);
    margin-top: 6px;
    font-style: italic;
}

.required {
    color: var(--color-error);
}

.feedback-success {
    margin-top: 16px;
    padding: 16px;
    background-color: #f0fff4;
    border: 1px solid var(--color-success);
    border-radius: 6px;
    text-align: center;
    color: var(--color-success);
    font-weight: 600;
}

.feedback-success[hidden] {
    display: none;
}

/* ===================================
   Shake Animation (for errors)
   =================================== */

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-2px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(2px);
    }
}

.shake {
    animation: shake 0.5s;
}

/* ===================================
   Privacy Policy Page
   =================================== */
.hero--compact {
    padding: 60px 0 40px;
}
.policy-content {
    background: var(--color-white);
    padding: 20px 0 80px;
}
.policy-content h3 {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--color-text-dark);
}
.policy-content p,
.policy-content ul {
    font-size: 16px; /* slightly smaller than body */
    color: var(--color-text-gray);
    line-height: 1.6;
    max-width: 860px;
}
.policy-content ul {
    padding-left: 24px;
    margin-bottom: 16px;
}
.policy-content li {
    margin-bottom: 8px;
}
.policy-content a {
    text-decoration: underline;
}
.policy-updated {
    margin-top: 32px;
    font-size: 14px;
    color: var(--color-text-gray);
}

/* ===================================
   Modal/Overlay System
   =================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-content--large {
    max-width: 700px;
}

.modal-content--small {
    max-width: 400px;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--lpp-neutral-dark);
    margin: 0;
}

.modal-subtitle {
    font-size: 0.95rem;
    color: var(--lpp-neutral-mid);
    margin-top: 0.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--lpp-neutral-mid);
    transition: color 0.2s;
    font-size: 1.5rem;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
}

.modal-close:hover {
    color: var(--lpp-neutral-dark);
    background-color: var(--lpp-card-gray);
}

/* Modal form styles */
.modal-form-group {
    margin-bottom: 1.5rem;
}

.modal-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--lpp-neutral-dark);
    font-size: 0.95rem;
}

.modal-form-input,
.modal-form-select,
.modal-form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background-color: var(--lpp-card-gray);
    color: var(--lpp-neutral-dark);
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: var(--font-family);
}

.modal-form-input:focus,
.modal-form-select:focus,
.modal-form-textarea:focus {
    outline: none;
    border-color: var(--lpp-primary-green);
    box-shadow: 0 0 0 3px rgba(110, 193, 182, 0.1);
}

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

.modal-form-error {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--color-error);
}

.modal-form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.modal-form-checkbox input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
    accent-color: var(--lpp-primary-green);
}

.modal-form-checkbox-label {
    font-size: 0.875rem;
    color: var(--lpp-neutral-mid);
    cursor: pointer;
    line-height: 1.5;
}

/* Language tiles (flag toggle buttons) */
.lang-tile-group {
    display: flex;
    gap: 0.75rem;
}

.lang-tile {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background-color: var(--lpp-card-gray);
    color: var(--lpp-neutral-dark);
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.lang-tile:hover {
    border-color: var(--lpp-neutral-mid);
}

.lang-tile.is-selected {
    border-color: var(--lpp-primary-green);
    background-color: rgba(110, 193, 182, 0.08);
    box-shadow: 0 0 0 3px rgba(110, 193, 182, 0.1);
}

.lang-tile.is-selected::after {
    content: '✓';
    color: var(--lpp-primary-green);
    font-weight: 700;
    margin-left: 0.25rem;
}

.lang-tile__flag {
    font-size: 1.5rem;
    line-height: 1;
}

.lang-tile__label {
    line-height: 1.2;
}

/* Review modal store grid */
.store-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.store-button {
    padding: 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--lpp-neutral-dark);
}

.store-button:hover {
    border-color: var(--lpp-primary-green);
    background-color: rgba(110, 193, 182, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.store-button__flag {
    font-size: 2rem;
}

.store-button__name {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Triage modal options */
.triage-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.triage-button {
    padding: 1.25rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-family: var(--font-family);
    width: 100%;
}

.triage-button:hover {
    border-color: var(--lpp-primary-green);
    background-color: rgba(110, 193, 182, 0.05);
    transform: translateX(4px);
}

.triage-button__title {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--lpp-neutral-dark);
    margin-bottom: 0.25rem;
}

.triage-button__description {
    font-size: 0.95rem;
    color: var(--lpp-neutral-mid);
}

/* Success message in modal */
.modal-success {
    padding: 1rem;
    background-color: rgba(110, 193, 182, 0.1);
    border: 1px solid var(--lpp-primary-green);
    border-radius: var(--radius-sm);
    text-align: center;
    color: var(--lpp-primary-green);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Cloudflare Turnstile container */
.turnstile-container {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
}

/* ===================================
   Page Sections & Layouts
   =================================== */

.section {
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 5rem 0;
    }
}

.section--bg {
    background-color: var(--lpp-section-bg);
}

.section__title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: var(--font-size-section);
    color: var(--lpp-neutral-dark);
}

.section__subtitle {
    text-align: center;
    color: var(--lpp-neutral-mid);
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* Feature Cards */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    text-align: center;
    padding: 0.5rem;
}

.feature-card__icon {
    width: 280px;
    height: 280px;
    margin: 0 auto 0.5rem;
}

.feature-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--lpp-neutral-dark);
    margin-bottom: 0.5rem;
}

.feature-card__description {
    font-size: 0.95rem;
    color: var(--lpp-neutral-mid);
    line-height: 1.5;
}

/* Two Column Layout (for About page) */
.two-column {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .two-column {
        grid-template-columns: repeat(2, 1fr);
    }
}

.column h3 {
    font-size: 1.75rem;
    color: var(--lpp-neutral-dark);
    margin-bottom: 1rem;
}

.column p {
    color: var(--lpp-neutral-mid);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.column ul {
    list-style: none;
    padding: 0;
}

.column li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--lpp-neutral-mid);
    line-height: 1.6;
}

.column li::before {
    content: '✓';
    color: var(--lpp-primary-green);
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--lpp-card-gray);
    color: var(--lpp-neutral-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.social-icon:hover {
    background-color: var(--lpp-primary-green);
    color: white;
    transform: translateY(-2px);
}

/* Full Width Image */
.full-width-image {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 3rem;
}

.full-width-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Hero CTA Buttons */
.hero__cta {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Hero Grid Layout */
.hero__grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 768px) {
    .hero__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero__cta {
        justify-content: center;
    }
}

/* 2x2 Grid Layout (for About page) */
.grid-2x2 {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: auto auto !important;
    gap: 0.5rem;
    align-items: center;
}

@media (max-width: 768px) {
    .grid-2x2 {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        gap: 1rem;
    }
}

/* Review Banner */
.review-banner {
    background: linear-gradient(135deg, rgba(110, 193, 182, 0.1) 0%, rgba(230, 168, 161, 0.1) 100%);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 4rem;
}

.review-banner__title {
    font-size: var(--font-size-subheading);
    color: var(--lpp-neutral-dark);
    margin-bottom: 1rem;
}

.review-banner__description {
    color: var(--lpp-neutral-mid);
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Filter Bar (for Books page) */
.filter-bar {
    position: sticky;
    top: 5rem;
    background: white;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
    z-index: 50;
    margin-bottom: 2rem;
}

.filter-bar__container {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.filter-label {
    font-weight: 600;
    color: var(--lpp-neutral-dark);
    font-size: 0.95rem;
    white-space: nowrap;
}

.filter-search {
    flex: 1;
    min-width: 200px;
}

.filter-search input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    background-color: var(--lpp-card-gray);
}

.filter-search input:focus {
    outline: none;
    border-color: var(--lpp-primary-green);
    box-shadow: 0 0 0 3px rgba(110, 193, 182, 0.1);
}

/* Book Grid (updated for Books page) */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.book-grid__item {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.2s ease;
    border: 2px solid var(--color-border);
}

.book-grid__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--lpp-primary-green);
}

.book-grid__cover {
    width: 100%;
    aspect-ratio: 2/3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--lpp-neutral-light);
}

.book-grid__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.book-grid__info {
    padding: 1.5rem;
}

.book-grid__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--lpp-neutral-dark);
    margin-bottom: 0.25rem;
}

.book-grid__author {
    font-size: 0.95rem;
    color: var(--lpp-neutral-mid);
    margin-bottom: 0.75rem;
}

.book-grid__meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
}

.book-grid__level {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.book-grid__genre {
    font-size: 0.85rem;
    color: var(--lpp-neutral-mid);
}

/* ===================================
   GEO Content Pages
   =================================== */

.hero--compact {
    padding: 3rem 0;
}

.content-page {
    max-width: 980px;
}

.content-page h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    color: var(--lpp-neutral-dark);
    margin-bottom: 1rem;
}

.eyebrow {
    color: var(--lpp-primary-green-pressed);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.lede {
    color: var(--lpp-neutral-dark);
    font-size: 1.15rem;
    line-height: 1.75;
    max-width: 780px;
}

.page-cta {
    justify-content: center;
    user-select: text;
}

.selectable-cta {
    min-height: 48px;
    text-align: center;
    user-select: text;
    -webkit-user-select: text;
}

.geo-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
    gap: 3rem;
    align-items: center;
}

.geo-hero__copy {
    max-width: 760px;
}

.geo-hero__copy h1 {
    color: var(--lpp-neutral-dark);
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.geo-hero__image,
.book-hero__image {
    display: block;
    height: auto;
    justify-self: center;
    max-height: 430px;
    max-width: 340px;
    object-fit: contain;
    width: 100%;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: var(--lpp-neutral-mid);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.breadcrumbs a {
    color: var(--lpp-neutral-mid);
}

.content-block {
    margin-bottom: 3rem;
}

.content-block h2,
.content-heading {
    color: var(--lpp-neutral-dark);
    font-size: clamp(1.45rem, 3vw, 2rem);
    margin: 2.5rem 0 1rem;
}

.content-block p,
.content-page p {
    color: var(--lpp-neutral-dark);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.info-card {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: white;
    padding: 1.25rem;
}

.info-card h2,
.info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.compact-list {
    margin: 1rem 0 0 1.2rem;
}

.compact-list li {
    margin-bottom: 0.65rem;
    line-height: 1.6;
}

.resource-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.resource-chip {
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--lpp-neutral-dark);
    padding: 0.65rem 0.9rem;
    background: white;
    font-weight: 700;
}

.resource-chip:hover {
    border-color: var(--lpp-primary-green);
    color: var(--lpp-primary-green-pressed);
}

.book-hero {
    text-align: left;
}

.book-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
    gap: 3rem;
    align-items: center;
}

.book-hero__cover {
    border-radius: 8px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
    justify-self: center;
    max-height: 460px;
    object-fit: contain;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.level-table {
    border-collapse: collapse;
    min-width: 720px;
    width: 100%;
}

.level-table th,
.level-table td {
    border-bottom: 1px solid var(--color-border);
    padding: 1rem;
    text-align: left;
    vertical-align: top;
}

.level-table thead th {
    background: var(--lpp-section-bg);
    color: var(--lpp-neutral-dark);
}

.level-table tbody tr:last-child th,
.level-table tbody tr:last-child td {
    border-bottom: 0;
}

.faq-list {
    display: grid;
    gap: 0.75rem;
}

.faq-list details {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: white;
    padding: 1rem;
}

.faq-list summary {
    cursor: pointer;
    font-weight: 800;
}

.book-directory {
    margin-top: 2rem;
}

.book-directory__list {
    columns: 2;
    list-style-position: inside;
}

.book-directory__list li {
    break-inside: avoid;
    margin-bottom: 0.5rem;
}

/* ===================================
   Responsive Design
   =================================== */

/* Large Tablet (3 column grid) */
@media (max-width: 1200px) {
    .books__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

    .geo-hero__image,
    .book-hero__image {
        max-height: 360px;
    }

    .book-directory__list {
        columns: 1;
    }
}

/* Tablet (2 column grid) */
@media (max-width: 1024px) {
    :root {
        --font-size-hero: 40px;
        --font-size-section: 32px;
        --font-size-subheading: 22px;
        --spacing-section: 60px;
    }

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

    .level-tab .badge {
        padding: 10px 24px;
        font-size: 14px;
    }
}

/* Mobile (1 column grid) */
@media (max-width: 640px) {
    :root {
        --font-size-hero: 32px;
        --font-size-section: 28px;
        --font-size-subheading: 20px;
        --font-size-body: 16px;
        --spacing-section: 40px;
    }

    .header {
        padding: 16px 0;
    }

    .logo {
        font-size: 20px;
    }

    .logo__images {
        height: 32px;
    }

    .logo__image {
        height: 32px;
    }

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

    .page-cta {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .page-cta .btn-green,
    .page-cta .btn-pink {
        white-space: normal;
        width: 100%;
    }

    .book-card__cover {
        width: 150px;
    }

    .form-wrapper {
        padding: 24px;
    }

    .form__radio-group {
        flex-direction: column;
        align-items: stretch;
    }

    .badge--large {
        width: 100%;
        text-align: center;
    }

    .success__icon {
        width: 60px;
        height: 60px;
    }

    .success__icon svg {
        width: 30px;
        height: 30px;
    }

    .cta-section {
        padding: 24px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn--choice {
        width: 100%;
        max-width: 100%;
    }

    .response-section {
        padding: 24px;
    }

    .cta-question {
        font-size: 1.1rem;
    }

    .response-intro {
        font-size: 1.1rem;
    }
}
