/* ============================================================
   THE LAW WORKSHOP - Global Styles
   ============================================================ */

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

:root {
    --ink: #1a1a2e;
    --paper: #fafafa;
    --white: #ffffff;
    --accent: #1e3a5f;
    --accent-light: #2a5a8f;
    --accent-dark: #0f2440;
    --gold: #c9952b;
    --gold-light: #e8b84b;
    --warm: #f5f0e8;
    --slate: #475569;
    --muted: #94a3b8;
    --line: #e2e8f0;
    --line-warm: #ddd5c9;
    --red: #dc2626;
    --green: #16a34a;
    --green-light: #f0fdf4;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
    --max-w: 1140px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-light); }

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

/* ============================================================
   DISCLAIMER BANNER (persistent)
   ============================================================ */
.disclaimer-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--accent-dark);
    color: #fff;
    z-index: 1000;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    line-height: 1.5;
}

.disclaimer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.disclaimer-icon {
    flex-shrink: 0;
    color: var(--gold-light);
}

.disclaimer-inner strong { color: var(--gold-light); }

.disclaimer-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 1.3rem;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0 0.25rem;
    line-height: 1;
}
.disclaimer-close:hover { color: #fff; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
}

.nav-logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo svg { color: var(--gold); }
.nav-logo span { color: var(--accent); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--slate);
    transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

.nav-cta {
    background: var(--accent);
    color: #fff !important;
    padding: 0.55rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.15s;
}

.nav-cta:hover { background: var(--accent-light); color: #fff !important; }

/* Mobile hamburger */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
}

.nav-hamburger svg { display: block; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 5rem 2rem 4rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--warm);
    border: 1px solid var(--line-warm);
    border-radius: 100px;
    padding: 0.35rem 1rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.hero-badge svg { color: var(--gold); }

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1px;
    margin-bottom: 1.25rem;
    color: var(--ink);
}

.hero h1 em {
    font-style: normal;
    color: var(--accent);
    position: relative;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--slate);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover { background: var(--accent-light); color: #fff; }

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--line);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* Hero visual */
.hero-visual {
    position: relative;
}

.hero-card-stack {
    position: relative;
}

.hero-stat-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-lg);
}

.hero-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-topics {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.hero-topics li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
    font-weight: 500;
    font-size: 0.95rem;
}

.hero-topics li:last-child { border-bottom: none; }

.topic-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ti-1 { background: var(--accent); }
.ti-2 { background: var(--gold); }
.ti-3 { background: var(--slate); }
.ti-4 { background: var(--green); }
.ti-5 { background: #9333ea; }
.ti-6 { background: var(--red); }

.hero-floating-card {
    position: absolute;
    bottom: -20px;
    left: -30px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-lg);
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    z-index: 2;
    animation: floatPulse 3s ease-in-out infinite;
}

.hero-floating-card .fc-num {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
}

.hero-floating-card .fc-text {
    font-weight: 500;
    line-height: 1.3;
}

/* ============================================================
   SECTION PATTERNS
   ============================================================ */
.section-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-sub {
    font-size: 1rem;
    color: var(--slate);
    line-height: 1.7;
    max-width: 600px;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-section {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 5rem 2rem;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.how-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    transition: box-shadow 0.2s;
}

.how-card:hover { box-shadow: var(--shadow); }

.how-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--warm);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.how-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.how-card p {
    font-size: 0.9rem;
    color: var(--slate);
    line-height: 1.65;
}

/* ============================================================
   TOPICS (Dark Section)
   ============================================================ */
.topics-section {
    background: var(--ink);
    color: #fff;
    padding: 5rem 2rem;
}

.topics-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

.topics-section .section-label { color: var(--gold-light); }
.topics-section .section-title { color: #fff; }
.topics-section .section-sub { color: rgba(255,255,255,0.6); }

.topics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
}

.topic-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    transition: all 0.2s;
    cursor: default;
}

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

.topic-card-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.topic-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: #fff;
}

.topic-card p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
}

/* ============================================================
   REFERRAL SECTION
   ============================================================ */
.referral-section {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 5rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.referral-steps {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.referral-step {
    display: flex;
    gap: 1rem;
    padding: 1.1rem 0;
}

.referral-step + .referral-step {
    border-top: 1px solid var(--line);
}

.rs-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.rs-1 { background: rgba(30,58,95,0.1); color: var(--accent); }
.rs-2 { background: rgba(201,149,43,0.12); color: var(--gold); }
.rs-3 { background: rgba(22,163,74,0.1); color: var(--green); }

.rs-text h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.rs-text p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.5;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
    background: var(--warm);
    padding: 4rem 2rem;
    text-align: center;
}

.cta-inner {
    max-width: 650px;
    margin: 0 auto;
}

.cta-section .section-title { margin-bottom: 0.75rem; }

.cta-section .section-sub {
    margin: 0 auto 2rem;
    text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    border-top: 1px solid var(--line);
    padding: 3rem 2rem;
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand .nav-logo { margin-bottom: 0.5rem; }

.footer-brand p {
    font-size: 0.82rem;
    color: var(--muted);
    max-width: 280px;
    line-height: 1.6;
}

.footer-links-group h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.footer-links-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-links-group a {
    font-size: 0.88rem;
    color: var(--slate);
}

.footer-links-group a:hover { color: var(--accent); }

.footer-disclaimers {
    border-top: 1px solid var(--line);
    padding-top: 1.5rem;
    margin-top: 1rem;
}

.footer-disclaimer-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-disclaimer-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.5;
}

.footer-disclaimer-item svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    margin-top: 1.5rem;
    font-size: 0.78rem;
    color: var(--muted);
}

.footer-bottom-links {
    display: inline-block;
    margin-top: 0.4rem;
}

.footer-bottom-links a {
    color: var(--muted);
    font-size: 0.78rem;
    transition: color 0.15s;
}

.footer-bottom-links a:hover {
    color: var(--accent);
}

.footer-sep {
    margin: 0 0.4rem;
    color: var(--line);
}

/* ============================================================
   INTAKE FORM PAGE
   ============================================================ */
.page-header {
    background: var(--ink);
    color: #fff;
    padding: 4rem 2rem 3rem;
    text-align: center;
}

.page-header .section-label { color: var(--gold-light); }
.page-header .section-title { color: #fff; font-size: 2.4rem; }
.page-header .section-sub { color: rgba(255,255,255,0.65); margin: 0 auto; }

.form-section {
    max-width: 720px;
    margin: -2rem auto 4rem;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.form-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

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

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.4rem;
}

.form-group label .req { color: var(--red); }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--ink);
    background: var(--white);
    transition: border-color 0.15s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(30,58,95,0.08);
}

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

.form-group select { cursor: pointer; }

.form-disclaimer {
    background: var(--warm);
    border: 1px solid var(--line-warm);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    display: flex;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--slate);
    line-height: 1.55;
}

.form-disclaimer svg {
    flex-shrink: 0;
    color: var(--gold);
    margin-top: 2px;
}

.form-submit-btn {
    width: 100%;
    padding: 0.85rem;
    background: var(--accent);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s;
}

.form-submit-btn:hover { background: var(--accent-light); }
.form-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-success {
    text-align: center;
    padding: 2rem 0;
}

.form-success svg {
    color: var(--green);
    margin-bottom: 1rem;
}

.form-success h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--green);
}

.form-success p {
    font-size: 0.92rem;
    color: var(--slate);
    line-height: 1.65;
    max-width: 450px;
    margin: 0 auto;
}

.form-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--red);
}

/* ============================================================
   CATALOG PAGE
   ============================================================ */
.catalog-section {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem 4rem;
    position: relative;
    z-index: 1;
    margin-top: -2rem;
}

.catalog-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.45rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: 100px;
    background: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--slate);
    cursor: pointer;
    transition: all 0.15s;
}

.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.catalog-category {
    margin-bottom: 3rem;
}

.catalog-category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.cat-icon {
    font-size: 1.3rem;
}

.catalog-category-header h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.catalog-category-header p {
    font-size: 0.85rem;
    color: var(--muted);
    margin-left: auto;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.course-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.2s;
    position: relative;
}

.course-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.course-card.coming-soon { opacity: 0.7; }

.course-type-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.6rem;
}

.badge-short { background: #dbeafe; color: #1d4ed8; }
.badge-medium { background: #fef3c7; color: #b45309; }
.badge-long { background: #ede9fe; color: #7c3aed; }
.badge-course { background: var(--accent); color: #fff; }

.coming-soon-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--warm);
    border: 1px solid var(--line-warm);
    border-radius: 100px;
    padding: 0.15rem 0.6rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--gold);
}

.course-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    color: var(--ink);
}

.course-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.78rem;
    color: var(--muted);
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* AI Avatar Disclosure */
.avatar-disclosure {
    background: #f0f4ff;
    border: 1px solid #c7d7fe;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--accent);
}

.avatar-disclosure svg {
    flex-shrink: 0;
    color: var(--accent-light);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 3rem 1.5rem 2rem;
        gap: 2.5rem;
    }

    .hero h1 { font-size: 2.4rem; }

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

    .referral-section {
        grid-template-columns: 1fr;
        padding: 3rem 1.5rem;
        gap: 2rem;
    }

    .hero-floating-card { display: none; }

    .footer-top { flex-direction: column; }

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

    .nav-links { display: none; }
    .nav-hamburger { display: block; }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        padding: 1rem 2rem 1.5rem;
        gap: 1rem;
        box-shadow: var(--shadow);
        animation: slideDown 0.2s ease-out;
    }
}

@media (max-width: 600px) {
    .hero h1 { font-size: 2rem; }
    .section-title { font-size: 1.7rem; }
    .topics-grid { grid-template-columns: 1fr; }
    .form-card { padding: 1.5rem; }
    .page-header { padding: 3rem 1.5rem 2.5rem; }
    .catalog-section { padding: 0 1.5rem 3rem; }
    .legal-card { padding: 1.5rem 1.25rem; }
    .legal-page-section { padding: 0 1rem; }
    .footer-bottom-links { display: block; margin-top: 0.5rem; }
}

/* ============================================================
   PAGE TRANSITIONS
   ============================================================ */
.page-fade-in {
    animation: fadeIn 0.25s ease-out;
}

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

/* ============================================================
   CONSENT CHECKBOX
   ============================================================ */
.form-consent {
    margin: 1.25rem 0 1.5rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--slate);
    line-height: 1.55;
}

.consent-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    min-width: 18px;
    accent-color: var(--accent);
    flex-shrink: 0;
    cursor: pointer;
}

.consent-checkmark {
    display: none;
}

.consent-text {
    flex: 1;
}

.form-consent .field-error {
    margin-top: 0.5rem;
    margin-left: 2.25rem;
}

/* ============================================================
   PRIVACY / TERMS LEGAL PAGES
   ============================================================ */
.legal-page-section {
    max-width: 780px;
    margin: -2rem auto 4rem;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.legal-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2.5rem 3rem;
    box-shadow: var(--shadow-lg);
}

.legal-block {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--line);
}

.legal-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.legal-block h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--ink);
}

.legal-block h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.98rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--ink);
}

.legal-block p {
    font-size: 0.9rem;
    color: var(--slate);
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

.legal-block ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-block ul li {
    font-size: 0.9rem;
    color: var(--slate);
    line-height: 1.75;
    margin-bottom: 0.4rem;
}

.legal-block a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(30,58,95,0.3);
    text-underline-offset: 2px;
}

.legal-block a:hover {
    text-decoration-color: var(--accent);
}

/* ============================================================
   COURSE CARD WATCH / NOTIFY BUTTONS
   ============================================================ */
.course-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.85rem;
    padding: 0.45rem 1rem;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1;
}

.course-action-btn svg {
    flex-shrink: 0;
}

.course-preview-btn {
    background: var(--accent);
    color: #fff;
    border: 1.5px solid var(--accent);
}

.course-preview-btn:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
}

.course-notify-btn {
    background: transparent;
    color: var(--gold);
    border: 1.5px solid var(--gold);
}

.course-notify-btn:hover {
    background: var(--gold);
    color: #fff;
}

/* ============================================================
   INLINE FORM VALIDATION
   ============================================================ */
.field-invalid {
    border-color: var(--red) !important;
    box-shadow: 0 0 0 3px rgba(220,38,38,0.08) !important;
}

.field-error {
    font-size: 0.75rem;
    color: var(--red);
    margin-top: 0.3rem;
    display: none;
    line-height: 1.4;
}

.textarea-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.textarea-footer .field-error {
    flex: 1;
}

.char-counter {
    text-align: right;
    font-size: 0.72rem;
    color: var(--muted);
    margin-top: 0.35rem;
    flex-shrink: 0;
    transition: color 0.15s;
}

.char-counter-warn {
    color: var(--gold);
}

.char-counter-over {
    color: var(--red);
    font-weight: 600;
}

/* ============================================================
   MOBILE NAV SLIDE-DOWN ANIMATION
   ============================================================ */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SCROLL-TO-TOP BUTTON
   ============================================================ */
.scroll-top {
    position: fixed;
    bottom: 4.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s;
    z-index: 99;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-top:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

/* ============================================================
   REFERENCE NUMBER BOX (Success State)
   ============================================================ */
.reference-number-box {
    background: var(--warm);
    border: 1px solid var(--line-warm);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin: 1.25rem auto;
    max-width: 380px;
    text-align: center;
}

.reference-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.reference-value {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.reference-note {
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.4;
}

/* ============================================================
   FLOATING CARD PULSE ANIMATION
   ============================================================ */
@keyframes floatPulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
