/* ============================================
   Mastering AI & Cybersecurity — Styles
   ============================================ */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;
    --border: #2a2a3a;
    --border-hover: #3a3a5a;
    --text-primary: #e8e8f0;
    --text-secondary: #9898b0;
    --text-muted: #6868808a;
    --accent-1: #6c5ce7;
    --accent-2: #00cec9;
    --accent-3: #fd79a8;
    --gradient-1: linear-gradient(135deg, #6c5ce7, #00cec9);
    --gradient-2: linear-gradient(135deg, #6c5ce7, #fd79a8);
    --gradient-3: linear-gradient(135deg, #00cec9, #6c5ce7, #fd79a8);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Navbar ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-emblem {
    width: 42px;
    height: 42px;
    filter: drop-shadow(0 0 8px rgba(108, 92, 231, 0.4));
    transition: filter 0.3s, transform 0.3s;
}

.logo:hover .logo-emblem {
    filter: drop-shadow(0 0 14px rgba(0, 206, 201, 0.5));
    transform: scale(1.05);
}

.logo-text {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Inter', sans-serif;
}

.logo-highlight {
    background: linear-gradient(135deg, #00cec9, #6c5ce7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-dot {
    background: linear-gradient(135deg, #6c5ce7, #fd79a8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-cta {
    background: var(--gradient-1) !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    color: white !important;
    padding: 8px 20px;
    border-radius: 100px;
    font-weight: 600 !important;
}

.nav-cta:hover {
    opacity: 0.9;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
    border-radius: 2px;
}

/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(108, 92, 231, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 92, 231, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-1);
    top: -200px;
    right: -100px;
    opacity: 0.15;
}

.glow-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-2);
    bottom: -100px;
    left: -100px;
    opacity: 0.1;
}

.glow-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.08;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    background: rgba(108, 92, 231, 0.08);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.hero-desc {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 30px rgba(108, 92, 231, 0.5);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    border-color: var(--accent-1);
    background: rgba(108, 92, 231, 0.08);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    animation: float 2s ease-in-out infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ---- Sections ---- */
.section {
    padding: 100px 0;
}

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

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--accent-2);
    margin-bottom: 16px;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
}

/* ---- About ---- */
.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-lead {
    font-size: 1.15rem;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.about-prereqs {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.about-prereqs h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.prereq-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.prereq-list li {
    padding-left: 24px;
    position: relative;
    color: var(--text-secondary);
}

.prereq-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent-2);
    font-weight: 700;
    font-size: 1.2rem;
}

.prereq-note {
    margin-top: 20px;
    color: var(--accent-2);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ---- Audience ---- */
.audience {
    background: var(--bg-secondary);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.audience-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.3s;
}

.audience-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.audience-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.audience-card span {
    font-weight: 500;
    font-size: 0.95rem;
}

/* ---- Course Details ---- */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.detail-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.3s;
}

.detail-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.detail-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.detail-info h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 600;
}

.detail-info p {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.enrol-batch {
    font-size: 1.2rem;
    margin-bottom: 8px !important;
}

.enrol-batch strong {
    color: var(--accent-2);
}

/* ---- Curriculum / Modules ---- */
.modules-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.module-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.3s;
    cursor: pointer;
}

.module-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.module-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.module-card.open .module-header {
    margin-bottom: 20px;
}

.module-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 32px;
}

.module-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    flex: 1;
}

.module-badge {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(253, 121, 168, 0.15);
    color: var(--accent-3);
    border: 1px solid rgba(253, 121, 168, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.module-topics {
    list-style: none;
    display: none;
    flex-direction: column;
    gap: 10px;
    padding-left: 48px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.module-card.open .module-topics {
    display: flex;
}

.module-topics li {
    color: var(--text-secondary);
    padding-left: 20px;
    position: relative;
    font-size: 0.92rem;
    line-height: 1.5;
}

.module-topics li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent-2);
    font-weight: 700;
}

.module-card::after {
    content: '+';
    float: right;
    font-size: 1.4rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-top: -32px;
    margin-right: 4px;
    transition: transform 0.3s;
}

.module-card.open::after {
    content: '−';
}

/* ---- Outcomes ---- */
.outcomes {
    background: var(--bg-secondary);
}

.outcomes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.outcome-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.3s;
}

.outcome-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.outcome-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.outcome-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
}

/* ---- Enrol ---- */
.enrol {
    background: var(--bg-primary);
}

.enrol-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.enrol-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-3);
}

.enrol-content h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    margin-top: 16px;
    margin-bottom: 12px;
}

.enrol-content p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1.1rem;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    transition: color 0.3s;
}

.contact-item:hover {
    color: var(--accent-2);
}

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

/* ---- Footer ---- */
.footer {
    padding: 48px 0 24px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-left: 8px;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: flex;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-divider {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .enrol-card {
        padding: 40px 24px;
    }

    .module-card {
        padding: 24px;
    }

    .module-topics {
        padding-left: 24px;
    }

    .module-card::after {
        margin-top: -28px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

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

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section {
        padding: 60px 0;
    }

    .contact-methods {
        flex-direction: column;
        align-items: center;
    }
}

/* ---- Register Page ---- */
.register-hero {
    position: relative;
    padding: 120px 0 60px;
    text-align: center;
    overflow: hidden;
}

.register-header-content {
    position: relative;
    z-index: 1;
}

.back-link {
    display: inline-block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 20px;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--accent-2);
}

.register-hero h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
}

.register-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.register-subtitle strong {
    color: var(--accent-2);
}

.register-form-section {
    padding: 0 0 80px;
}

.form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
}

.form-wrapper iframe {
    display: block;
    width: 100%;
    min-height: 900px;
    border: none;
    background: white;
    border-radius: var(--radius-lg);
}

.form-fallback {
    padding: 20px;
    text-align: center;
    border-top: 1px solid var(--border);
}

.form-fallback p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.register-contact {
    text-align: center;
    padding-top: 24px;
}

.register-contact > p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

/* ---- Custom Registration Form ---- */
.custom-form {
    padding: 48px;
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.required {
    color: var(--accent-3);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.form-group input.invalid,
.form-group select.invalid {
    border-color: var(--accent-3);
    box-shadow: 0 0 0 3px rgba(253, 121, 168, 0.1);
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%239898b0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Checkbox */
.form-group-checkbox {
    margin-bottom: 36px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    position: relative;
}

.checkbox-label input:checked + .checkbox-custom {
    background: var(--gradient-1);
    border-color: transparent;
}

.checkbox-label input:checked + .checkbox-custom::after {
    content: '';
    width: 6px;
    height: 10px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
}

.checkbox-label input:focus-visible + .checkbox-custom {
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

/* Submit Button */
.form-submit-btn {
    width: 100%;
    font-size: 1.05rem;
    padding: 16px 32px;
    position: relative;
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Success & Error States */
.form-state {
    padding: 64px 48px;
    text-align: center;
}

.state-icon {
    margin-bottom: 24px;
}

.form-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.form-success h3 {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-error h3 {
    color: var(--accent-3);
}

.form-state p {
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: 1rem;
    line-height: 1.6;
}

.form-state .btn {
    min-width: 200px;
}

/* Field validation message */
.field-error {
    display: none;
    color: var(--accent-3);
    font-size: 0.8rem;
    margin-top: 6px;
}

.form-group.has-error .field-error {
    display: block;
}

@media (max-width: 768px) {
    .custom-form {
        padding: 32px 20px;
    }

    .form-state {
        padding: 48px 20px;
    }
}

/* ---- Terms Link ---- */
.terms-link {
    color: var(--accent-2);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}
.terms-link:hover {
    color: var(--accent-1);
}
.full-terms-link {
    margin-top: 24px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
}
.full-terms-link a {
    color: var(--accent-2);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s;
}
.full-terms-link a:hover {
    color: var(--accent-1);
    text-decoration: underline;
}

/* ---- Modal ---- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    padding: 20px;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    max-width: 640px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.3s;
}
.modal-overlay.active .modal {
    transform: translateY(0);
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border);
}
.modal-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s;
}
.modal-close:hover {
    background: var(--bg-card);
}
.modal-body {
    padding: 24px 28px;
    overflow-y: auto;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}
.modal-body h3 {
    color: var(--text-primary);
    font-size: 1.05rem;
    margin-bottom: 4px;
}
.modal-body h4 {
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-top: 20px;
    margin-bottom: 6px;
}
.modal-body p {
    margin-bottom: 8px;
}
.modal-footer {
    padding: 16px 28px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .modal {
        max-height: 90vh;
    }
    .modal-header, .modal-body, .modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ---- Animations ---- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
