/* ========================================
   FINNA ENROLLMENT PAGES
   Consistent with /home styles and Brand Guide

   Brand Colors:
   - Primary Blue: #143f90
   - Accent Cyan: #069ED9
   - Gold: #F4BB19
   - Teal: #007a66
   - Gray: #48535b / #73848D
   ======================================== */

/* ========================================
   CSS VARIABLES (matching /home/css/styles.css)
   ======================================== */
:root {
    /* Brand Colors */
    --primary: hsl(217, 75%, 32%); /* #143f90 */
    --primary-dark: hsl(217, 75%, 25%);
    --accent: hsl(195, 100%, 45%); /* #069ED9 */
    --accent-dark: hsl(195, 100%, 38%);
    --gold: #F4BB19;
    --teal: #007a66;

    /* UI Colors */
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(217, 75%, 15%);
    --text-primary: hsl(217, 75%, 15%);
    --text-secondary: hsl(217, 20%, 45%);
    --text-tertiary: hsl(217, 15%, 55%);
    --muted-foreground: hsl(217, 20%, 45%);

    /* Backgrounds */
    --bg-primary: #fbfbfd;
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-subtle: hsl(217, 20%, 98%);

    /* Borders & Shadows */
    --border-color: rgba(20, 63, 144, 0.08);
    --border-focus: rgba(6, 158, 217, 0.5);
    --shadow-sm: 0 2px 8px rgba(20, 63, 144, 0.04);
    --shadow-md: 0 4px 20px rgba(20, 63, 144, 0.08);
    --shadow-lg: 0 12px 40px rgba(20, 63, 144, 0.12);

    /* Radius */
    --radius: 0.5rem;
    --radius-sm: 0.5rem;
    --radius-md: 0.875rem;
    --radius-lg: 1.25rem;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Fonts - Inter (matching home) */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ========================================
   BASE STYLES
   ======================================== */
.enroll-page,
.agreement-page {
    min-height: calc(100vh - 140px);
    background: var(--bg-primary);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(6, 158, 217, 0.06), transparent),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(20, 63, 144, 0.04), transparent);
    display: flex;
    justify-content: center;
    padding: 48px 40px 80px 40px;
}

.enroll-container,
.agreement-container {
    width: 100%;
    max-width: 580px;
}

.agreement-container {
    max-width: 650px;
}

/* ========================================
   PAGE HEADER
   ======================================== */
.page-header {
    text-align: center;
    margin-bottom: 32px;
}

.page-title {
    font-family: var(--font-sans);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.page-title span {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.login-prompt {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.login-prompt a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.login-prompt a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* ========================================
   PROGRESS INDICATOR
   ======================================== */
.progress-steps {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 32px;
}

.progress-step {
    width: 28px;
    height: 3px;
    background: rgba(20, 63, 144, 0.1);
    border-radius: 2px;
    transition: all var(--transition-smooth);
}

.progress-step.active {
    width: 40px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
}

.progress-step.completed {
    background: var(--primary);
}

/* ========================================
   FORM CARD
   ======================================== */
.form-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

/* ========================================
   SECTION STYLING
   ======================================== */
.form-section {
    margin-bottom: 28px;
}

.form-section:last-child {
    margin-bottom: 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 0;
    border-bottom: none;
}

.section-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(6, 158, 217, 0.12) 0%, rgba(20, 63, 144, 0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.form-section:hover .section-icon {
    transform: scale(1.05);
}

.section-icon svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

.section-title {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.02em;
}

/* ========================================
   FORM FIELDS
   ======================================== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.form-row.single {
    grid-template-columns: 1fr;
}

.form-group {
    position: relative;
}

.form-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: none;
    letter-spacing: -0.01em;
}

.form-input,
.form-card input[type="text"],
.form-card input[type="password"],
.form-card input[type="email"],
.form-card input[type="tel"] {
    width: 100%;
    padding: 11px 14px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--text-primary);
    background-color: rgba(20, 63, 144, 0.03);
    border: 1.5px solid transparent;
    border-radius: var(--radius);
    outline: none;
    transition: all var(--transition-fast);
    -webkit-appearance: none;
}

.form-input::placeholder,
.form-card input::placeholder {
    color: var(--text-tertiary);
}

.form-input:hover,
.form-card input[type="text"]:hover,
.form-card input[type="password"]:hover,
.form-card input[type="email"]:hover,
.form-card input[type="tel"]:hover {
    background-color: rgba(20, 63, 144, 0.05);
}

.form-input:focus,
.form-card input[type="text"]:focus,
.form-card input[type="password"]:focus,
.form-card input[type="email"]:focus,
.form-card input[type="tel"]:focus {
    background-color: #fff;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(6, 158, 217, 0.1);
}

/* Select/Dropdown */
.form-select,
.form-card select {
    width: 100%;
    padding: 11px 14px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--text-primary);
    background-color: rgba(20, 63, 144, 0.03);
    border: 1.5px solid transparent;
    border-radius: var(--radius);
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23143f90' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: all var(--transition-fast);
}

.form-select:hover,
.form-card select:hover {
    background-color: rgba(20, 63, 144, 0.05);
}

.form-select:focus,
.form-card select:focus {
    background-color: #fff;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(6, 158, 217, 0.1);
}

/* ========================================
   PASSWORD FIELD
   ======================================== */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-input,
.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-tertiary);
    font-size: 16px;
    background: none;
    border: none;
    padding: 4px;
    transition: all var(--transition-fast);
    border-radius: 6px;
}

.password-toggle:hover {
    color: var(--accent);
    background: rgba(6, 158, 217, 0.1);
}

/* Password Requirements */
.password-requirements {
    margin-top: 12px;
    padding: 14px 16px;
    background: rgba(20, 63, 144, 0.03);
    border-radius: var(--radius);
    border: none;
}

.password-requirements h4 {
    font-family: var(--font-sans);
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--text-tertiary);
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.requirements-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--text-tertiary);
    transition: all var(--transition-fast);
}

.requirement-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 600;
    transition: all var(--transition-smooth);
    background: rgba(20, 63, 144, 0.08);
    color: var(--text-tertiary);
}

.requirement-item.valid .requirement-icon {
    background: linear-gradient(135deg, var(--teal) 0%, hsl(170, 50%, 40%) 100%);
    color: white;
    transform: scale(1.05);
}

.requirement-item.valid {
    color: var(--teal);
}

.requirement-item.invalid .requirement-icon {
    background: rgba(220, 53, 69, 0.12);
    color: #dc3545;
}

/* ========================================
   ERROR MESSAGES
   ======================================== */
.error-message {
    color: #dc3545;
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-3px); }
    40%, 80% { transform: translateX(3px); }
}

.error-message::before {
    content: '!';
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.12);
    color: #dc3545;
    font-size: 9px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ========================================
   REFERRAL SECTION
   ======================================== */
.referral-note {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 10px;
    line-height: 1.5;
    padding: 10px 12px;
    background: rgba(6, 158, 217, 0.04);
    border-radius: var(--radius);
    border-left: 2px solid var(--accent);
}

.referral-note a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: opacity var(--transition-fast);
}

.referral-note a:hover {
    opacity: 0.7;
}

/* ========================================
   WEBSITE PREVIEW
   ======================================== */
.website-preview {
    margin-top: 10px;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(6, 158, 217, 0.08) 0%, rgba(20, 63, 144, 0.06) 100%);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    color: var(--primary);
}

.website-preview strong {
    font-weight: 600;
}

/* ========================================
   SUBMIT BUTTON
   ======================================== */
.submit-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.btn-continue {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, hsl(217, 75%, 28%) 100%);
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-smooth);
    letter-spacing: -0.01em;
    box-shadow: 0 4px 14px rgba(20, 63, 144, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-continue::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-continue:hover::before {
    left: 100%;
}

.btn-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(20, 63, 144, 0.35);
}

.btn-continue:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(20, 63, 144, 0.2);
}

.btn-continue:disabled {
    background: rgba(20, 63, 144, 0.2);
    color: var(--text-tertiary);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* ========================================
   ALERT WRAPPER
   ======================================== */
.alert-wrapper {
    margin-bottom: 20px;
}

.alert-wrapper .alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    backdrop-filter: blur(10px);
}

/* ========================================
   PLAN CARDS (Type.aspx)
   ======================================== */
.cards-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
}

.plan-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(20, 63, 144, 0.1);
    transition: all 0.4s var(--ease-out-expo);
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(20, 63, 144, 0.15);
    border-color: rgba(20, 63, 144, 0.12);
}

.plan-card:hover::before {
    background: linear-gradient(90deg, var(--accent), var(--primary));
}

/* Recommended card styling */
.plan-card.card-recommended {
    border-color: var(--accent);
}

.plan-card.card-recommended::before {
    background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
}

/* Badge */
.card-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: linear-gradient(135deg, var(--gold) 0%, hsl(43, 90%, 45%) 100%);
    color: white;
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.375rem 0.875rem;
    border-radius: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(244, 187, 25, 0.3);
}

/* Card Icon */
.card-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(20, 63, 144, 0.08) 0%, rgba(6, 158, 217, 0.06) 100%);
    transition: all 0.4s var(--ease-out-expo);
}

.card-icon svg {
    width: 1.75rem;
    height: 1.75rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.plan-card:hover .card-icon {
    transform: scale(1.1) rotate(-3deg);
}

.plan-card.card-recommended .card-icon {
    background: linear-gradient(135deg, var(--primary) 0%, hsl(217, 75%, 28%) 100%);
    box-shadow: 0 4px 15px rgba(20, 63, 144, 0.25);
}

.plan-card.card-recommended .card-icon svg {
    color: white;
}

/* Card Title */
.card-title {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.01em;
}

.card-description {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--muted-foreground);
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem 0;
    flex-grow: 1;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: rgba(20, 63, 144, 0.78);
    line-height: 1.5;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-check {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(6, 158, 217, 0.15) 0%, rgba(6, 158, 217, 0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.125rem;
}

.feature-check svg {
    width: 0.75rem;
    height: 0.75rem;
    color: var(--accent);
}

/* Buttons */
.btn-choose {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-choose svg {
    width: 1.125rem;
    height: 1.125rem;
    transition: transform 0.3s var(--ease-out-expo);
}

.btn-choose:hover svg {
    transform: translateX(4px);
}

.btn-choose.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, hsl(217, 75%, 28%) 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(20, 63, 144, 0.25);
}

.btn-choose.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(20, 63, 144, 0.35);
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

.btn-choose.btn-secondary {
    background: rgba(20, 63, 144, 0.04);
    color: var(--primary);
    border: 1px solid rgba(20, 63, 144, 0.15);
}

.btn-choose.btn-secondary:hover {
    background: rgba(20, 63, 144, 0.08);
    border-color: var(--primary);
    text-decoration: none;
    color: var(--primary);
}

/* ========================================
   USER INFO DISPLAY
   ======================================== */
.user-info-display {
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(6, 158, 217, 0.06) 0%, rgba(20, 63, 144, 0.04) 100%);
    border-radius: var(--radius);
    border-left: 3px solid var(--primary);
}

.user-name {
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* ========================================
   VIDEO SECTION
   ======================================== */
.video-section {
    margin: 24px 0;
    padding: 20px;
    background: rgba(20, 63, 144, 0.02);
    border-radius: var(--radius-md);
}

.video-title {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-title i {
    color: var(--accent);
}

.video-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
}

wistia-player {
    border-radius: var(--radius);
}

/* ========================================
   CHECKBOX/AGREEMENT STYLING
   ======================================== */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(20, 63, 144, 0.02);
    border-radius: var(--radius);
    margin-bottom: 12px;
    transition: all var(--transition-fast);
}

.checkbox-group:hover {
    background: rgba(20, 63, 144, 0.04);
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--primary);
}

.checkbox-label {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-primary);
    cursor: pointer;
}

.agreement-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.agreement-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* ========================================
   MODAL STYLES
   ======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 63, 144, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-dialog {
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
}

.modal-title {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.01em;
}

.modal-close {
    background: rgba(20, 63, 144, 0.06);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: rgba(20, 63, 144, 0.1);
    color: var(--text-primary);
}

.modal-body {
    flex: 1;
    padding: 0;
    height: 70vh;
    min-height: 500px;
}

.pdf-viewer {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border: none;
}

.modal-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    text-align: right;
    background: transparent;
}

.btn-modal-close {
    background: linear-gradient(135deg, var(--primary) 0%, hsl(217, 75%, 28%) 100%);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-modal-close:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

/* ========================================
   LOADING PANEL
   ======================================== */
#loadingPanel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.loading-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(20, 63, 144, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .enroll-page,
    .agreement-page {
        padding: 32px 16px 60px 16px;
    }

    .form-card {
        padding: 24px 20px;
        border-radius: var(--radius-md);
    }

    .page-title {
        font-size: 1.625rem;
    }

    .page-subtitle {
        font-size: 0.875rem;
    }

    .page-header {
        margin-bottom: 24px;
    }

    .progress-steps {
        margin-bottom: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .requirements-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        gap: 10px;
    }

    .section-icon {
        width: 32px;
        height: 32px;
    }

    .section-icon svg {
        width: 16px;
        height: 16px;
    }

    .section-title {
        font-size: 0.9375rem;
    }

    .cards-row {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .plan-card {
        padding: 1.75rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .form-card {
        padding: 20px 16px;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .page-header {
        margin-bottom: 20px;
    }

    .progress-steps {
        margin-bottom: 20px;
    }

    .checkbox-group {
        padding: 12px;
    }

    .checkbox-label {
        font-size: 0.8125rem;
    }

    .card-title {
        font-size: 1.25rem;
    }
}
