﻿/* ============================================
   Color Variables - Elimys Theme
   ============================================ */
:root {
    --brand-primary: #1E2E45;
    --brand-primary-light: #2C4166;
    --brand-primary-dark: #15202E;
    --brand-secondary: #4A90E2;
    --brand-accent: #00B4D8;
    --brand-success: #2ECC71;
    --brand-warning: #F39C12;
    --brand-info: #3498DB;
    --brand-danger: #E74C3C;
    --neutral-light: #F8F9FA;
    --neutral-medium: #E2E8F0;
    --neutral-dark: #4A5568;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 50%, var(--brand-secondary) 100%);
    color: #fff;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.95;
    font-weight: 300;
}

/* Hero Benefits List */
.hero-benefits {
    display: grid;
    gap: 1rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-left: 3px solid var(--brand-accent);
}

.benefit-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(5px);
    border-left-color: #fff;
}

.benefit-item i {
    font-size: 1.5rem;
    flex-shrink: 0;
    color: var(--brand-accent);
}

.benefit-item i.text-primary {
    color: #FFD700 !important;
}

.benefit-item i.text-info {
    color: #87CEEB !important;
}

.benefit-item i.text-success {
    color: #90EE90 !important;
}

.benefit-item i.text-warning {
    color: #FFD700 !important;
}

.benefit-item span {
    font-size: 0.95rem;
    line-height: 1.4;
}

/* ============================================
   CTA Card
   ============================================ */
.cta-card {
    border: none;
    border-radius: 12px;
    background: #fff;
    border-top: 4px solid var(--brand-primary);
}

.cta-card .card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--brand-primary);
}

.auth-status .alert {
    border-radius: 8px;
    border: none;
}

.auth-status .alert-warning {
    background-color: #FFF4E5;
    color: #8B6914;
    border-left: 4px solid var(--brand-warning);
}

.auth-status .alert-success {
    background-color: #D5F4E6;
    color: #0F5132;
    border-left: 4px solid var(--brand-success);
}

/* Checkbox positioning fix */
.form-check {
    border: 2px solid var(--brand-secondary);
    position: relative;
    background: linear-gradient(to right, rgba(74, 144, 226, 0.05), transparent);
    transition: border-color 0.3s ease;
}

.form-check.highlight {
    border-color: var(--brand-danger);
    background: linear-gradient(to right, rgba(231, 76, 60, 0.1), transparent);
}

.form-check .form-check-input {
    margin-top: 0.375rem;
    margin-left: 0.5rem;
    position: relative;
    border-color: var(--brand-primary);
}

.form-check .form-check-label {
    padding-left: 0.5rem;
}

.form-check-input:checked {
    background-color: var(--brand-success);
    border-color: var(--brand-success);
}

.form-check-input:focus {
    border-color: var(--brand-secondary);
    box-shadow: 0 0 0 0.25rem rgba(74, 144, 226, 0.25);
}

.form-check-label {
    font-size: 0.95rem;
    line-height: 1.5;
    cursor: pointer;
    color: var(--brand-primary);
}

/* CTA Button - Always Visible and Clickable */
#startRegistrationBtn {
    font-size: 1.125rem;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, var(--brand-success) 0%, #27AE60 100%);
    border: none;
    color: #fff !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: block;
    width: 100%;
    text-align: center;
}

/* Override Bootstrap disabled state */
#startRegistrationBtn.disabled,
#startRegistrationBtn:disabled {
    opacity: 1 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    background: linear-gradient(135deg, var(--brand-success) 0%, #27AE60 100%) !important;
}

#startRegistrationBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(46, 204, 113, 0.4);
    background: linear-gradient(135deg, #27AE60 0%, var(--brand-success) 100%);
    text-decoration: none !important;
}

#startRegistrationBtn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Alert styling */
.alert-danger {
    background-color: #FFE5E5;
    color: #8B1E1E;
    border-left: 4px solid var(--brand-danger);
}

#startHelp {
    font-weight: 500;
}

.alt-actions .btn {
    font-size: 0.95rem;
    padding: 0.625rem 1rem;
    transition: all 0.2s ease;
}

.alt-actions .btn-outline-info {
    color: var(--brand-info);
    border-color: var(--brand-info);
}

.alt-actions .btn-outline-info:hover {
    background-color: var(--brand-info);
    border-color: var(--brand-info);
    color: #fff;
    transform: scale(1.02);
}

.alt-actions .btn-outline-success {
    color: var(--brand-success);
    border-color: var(--brand-success);
}

.alt-actions .btn-outline-success:hover {
    background-color: var(--brand-success);
    border-color: var(--brand-success);
    color: #fff;
    transform: scale(1.02);
}

.alt-actions .btn:hover {
    transform: scale(1.02);
}

.contact-info a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-info a:hover {
    color: var(--brand-secondary);
}

/* ============================================
   Eligibility Section
   ============================================ */
.eligibility-section .alert-warning {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #FFE5CC;
    border-left: 6px solid var(--brand-warning);
}

.eligibility-section .alert-heading {
    color: var(--brand-primary);
}

.eligibility-box {
    padding: 1.5rem;
    border-radius: 8px;
    background: var(--neutral-light);
    height: 100%;
}

.eligibility-box.eligible {
    border-left: 4px solid var(--brand-success);
    background: linear-gradient(to right, rgba(46, 204, 113, 0.05), transparent);
}

.eligibility-box.not-eligible {
    border-left: 4px solid var(--brand-danger);
    background: linear-gradient(to right, rgba(231, 76, 60, 0.05), transparent);
}

.eligibility-box h5.text-success {
    color: var(--brand-success) !important;
}

.eligibility-box h5.text-danger {
    color: var(--brand-danger) !important;
}

.eligibility-box ul {
    list-style: none;
    padding-left: 0;
}

.eligibility-box ul li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.eligibility-box.eligible ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--brand-success);
    font-weight: bold;
}

.eligibility-box.not-eligible ul li::before {
    content: "✗";
    position: absolute;
    left: 0;
    color: var(--brand-danger);
    font-weight: bold;
}

/* ============================================
   Preparation Section
   ============================================ */
.preparation-section {
    background: var(--neutral-light);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 0.5rem;
}

.document-list,
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.document-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--neutral-medium);
}

.document-item:last-child {
    border-bottom: none;
}

.document-item i {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.info-list li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--neutral-medium);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list i {
    color: var(--brand-secondary);
    font-size: 1.25rem;
}

.card.border-primary {
    border-color: var(--brand-primary) !important;
    border-width: 2px;
}

.card-header.bg-primary {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%) !important;
}

.card.border-info {
    border-color: var(--brand-secondary) !important;
    border-width: 2px;
}

.card-header.bg-info {
    background: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-info) 100%) !important;
}

/* ============================================
   Benefits Section
   ============================================ */
.benefits-section {
    background: var(--neutral-light);
}

.benefit-card {
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    border-top: 3px solid var(--brand-primary);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(30, 46, 69, 0.15);
    border-top-color: var(--brand-accent);
}

.benefit-icon {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon .text-primary {
    color: var(--brand-primary) !important;
}

.benefit-icon .text-info {
    color: var(--brand-secondary) !important;
}

.benefit-icon .text-success {
    color: var(--brand-success) !important;
}

.benefit-icon .text-warning {
    color: var(--brand-warning) !important;
}

.benefit-icon .text-secondary {
    color: var(--brand-info) !important;
}

.benefit-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 1rem;
}

.benefit-card .card-text {
    color: var(--neutral-dark);
    line-height: 1.6;
}

/* ============================================
   Footer CTA
   ============================================ */
.footer-cta {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 50%, var(--brand-secondary) 100%);
}

.footer-cta h3 {
    font-size: 2rem;
    font-weight: 700;
}

.footer-cta .btn-light {
    font-size: 1.125rem;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: #fff;
    color: var(--brand-primary);
    border: 2px solid transparent;
}

.footer-cta .btn-light:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    background: var(--brand-success);
    color: #fff;
    border-color: #fff;
}

/* ============================================
   Utility Classes
   ============================================ */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(30, 46, 69, 0.15);
}

.icon-danger { color: var(--brand-danger); }
.icon-primary { color: var(--brand-primary); }
.icon-success { color: var(--brand-success); }
.icon-info { color: var(--brand-info); }
.icon-warning { color: var(--brand-warning); }

/* Override Bootstrap text utilities with brand colors */
.text-primary { color: var(--brand-primary) !important; }
.text-info { color: var(--brand-info) !important; }
.text-success { color: var(--brand-success) !important; }
.text-warning { color: var(--brand-warning) !important; }
.text-danger { color: var(--brand-danger) !important; }

/* Override Bootstrap button colors */
.btn-primary {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.btn-primary:hover {
    background-color: var(--brand-primary-light);
    border-color: var(--brand-primary-light);
}

.btn-outline-primary {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.btn-outline-primary:hover {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
}

.bg-primary {
    background-color: var(--brand-primary) !important;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-benefits {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium devices (tablets, 768px to 991px) */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .section-title {
        font-size: 1.875rem;
    }

    .hero-section {
        min-height: auto;
        padding: 3rem 0;
    }
}

/* Small devices (phones, 576px to 767px) */
@media (max-width: 767.98px) {
    .hero-title {
        font-size: 1.875rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.625rem;
    }

    .benefit-item {
        flex-direction: column;
        text-align: center;
    }

    .benefit-item i {
        font-size: 2rem;
    }

    .cta-card .card-body {
        padding: 1.5rem;
    }

    .eligibility-box {
        padding: 1rem;
    }

    .benefit-card .card-body {
        padding: 1.5rem;
    }

    .benefit-icon {
        height: 60px;
    }

    .benefit-icon i {
        font-size: 2rem !important;
    }

    .d-flex.gap-2 {
        flex-direction: column;
        gap: 0.5rem;
    }

    .d-flex.gap-2 .btn {
        width: 100%;
    }
}

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.625rem;
    }

    .hero-section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .cta-card .card-body {
        padding: 1.25rem;
    }

    .cta-card .card-title {
        font-size: 1.5rem;
    }

    #startRegistrationBtn {
        font-size: 1rem;
        padding: 0.75rem 1.25rem;
    }

    .footer-cta h3 {
        font-size: 1.5rem;
    }

    .footer-cta .lead {
        font-size: 1rem;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Bootstrap gap utility fallback for older versions */
.gap-2 {
    gap: 0.5rem !important;
}

/* Accessibility improvements */
a:focus,
button:focus,
.btn:focus {
    outline: 2px solid var(--brand-secondary);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .hero-section,
    .footer-cta {
        background: #fff !important;
        color: #000 !important;
    }

    .btn {
        border: 1px solid #000 !important;
    }
}