﻿/* ============================================
   ELIGIBILITY CHECK - GLASSMORPHISM STYLES
   ============================================ */

/* Container */
.content-container {
    min-height: calc(100vh - 200px);
    padding: 2rem 1rem;
}

.eligibility-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

    .eligibility-wrapper h1 {
        text-align: center;
        color: #ffffff;
        margin-bottom: 2.5rem;
        font-size: 2rem;
        font-weight: 700;
    }

/* ============================================
   PROGRESS INDICATOR
   ============================================ */
.progress-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
    gap: 0;
}

.progress-step {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

    .progress-step.active {
        background: rgba(255, 255, 255, 0.3);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 2px solid rgba(255, 255, 255, 0.5);
        color: #ffffff;
        transform: scale(1.05);
        box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    }

    .progress-step.completed {
        background: rgba(16, 185, 129, 0.3);
        border: 2px solid rgba(16, 185, 129, 0.5);
        color: #ffffff;
    }

.progress-line {
    width: 80px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

/* ============================================
   STEP SECTIONS
   ============================================ */
.step {
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

    .step h4 {
        color: #ffffff;
        margin-bottom: 1.5rem;
        font-size: 1.5rem;
        font-weight: 600;
    }

    .step p {
        color: rgba(255, 255, 255, 0.95);
        margin-bottom: 1.5rem;
        line-height: 1.6;
        font-size: 1rem;
    }

/* ============================================
   RADIO OPTIONS
   ============================================ */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .radio-option:hover {
        background: rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.4);
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    }

    .radio-option input[type="radio"] {
        width: 20px;
        height: 20px;
        margin: 0;
        flex-shrink: 0;
        cursor: pointer;
        accent-color: #ffffff;
    }

    .radio-option label {
        cursor: pointer;
        margin: 0;
        color: #ffffff;
        font-size: 1rem;
        font-weight: 500;
        flex: 1;
    }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    text-align: center;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
}

    .btn-primary:hover {
        background: rgba(255, 255, 255, 0.35);
        border-color: rgba(255, 255, 255, 0.5) !important;
        color: #ffffff !important;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }

    .btn-primary:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
    }

.btn-secondary {
    background: rgba(108, 117, 125, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 10px 25px;
    border-radius: 50px;
    color: #ffffff;
    margin-top: 1rem;
}

    .btn-secondary:hover {
        background: rgba(108, 117, 125, 0.4);
        border-color: rgba(255, 255, 255, 0.4);
        transform: translateY(-2px);
        color: #ffffff;
    }

/* ============================================
   DEADLINE NOTICE
   ============================================ */
.deadline-notice,
.deadline-reminder {
    background: rgba(255, 234, 167, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 15px 20px;
    border-radius: 12px;
    margin-top: 1.5rem;
    text-align: center;
    border: 2px solid rgba(243, 156, 18, 0.5);
    color: #ffffff;
    font-weight: 500;
}

    .deadline-notice strong,
    .deadline-reminder strong {
        color: #ffffff;
        font-weight: 700;
    }

/* ============================================
   RESULT SECTIONS
   ============================================ */
.result {
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.result h3 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: #ffffff;
    font-weight: 700;
}

.result p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
}

.result ul {
    text-align: left;
    color: rgba(255, 255, 255, 0.95);
    margin: 1rem 0;
    padding-left: 2rem;
}

.result.eligible {
    background: rgba(212, 252, 121, 0.25);
    border: 2px solid rgba(16, 185, 129, 0.5);
}

.result.ineligible,
.result.not-eligible {
    background: rgba(255, 234, 167, 0.25);
    border: 2px solid rgba(243, 156, 18, 0.5);
}

.eligibility-details,
.info-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

    .info-box strong {
        display: block;
        margin-bottom: 0.5rem;
        color: #ffffff;
    }

    .info-box ul {
        margin: 0.5rem 0 1rem 0;
        padding-left: 1.5rem;
    }

    .info-box li {
        margin: 0.5rem 0;
        color: rgba(255, 255, 255, 0.95);
    }

/* ============================================
   FORM STYLES
   ============================================ */
#certificateForm {
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

    #certificateForm h4 {
        color: #ffffff;
        margin-bottom: 1.5rem;
        text-align: center;
        font-weight: 600;
        font-size: 1.5rem;
    }

.mb-3 {
    margin-bottom: 1rem;
}

.form-label {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    color: #ffffff;
    width: 100%;
    transition: all 0.3s ease;
}

    .form-control::placeholder {
        color: rgba(255, 255, 255, 0.5);
    }

    .form-control:focus {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.5);
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
        outline: none;
        color: #ffffff;
    }

.form-text {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    color: #ffffff;
    position: relative;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.3);
    border-color: rgba(220, 53, 69, 0.5);
}

.alert strong {
    color: #ffffff;
}

.alert hr {
    border-color: rgba(255, 255, 255, 0.3);
    margin: 1rem 0;
}

.text-danger {
    color: #ffffff !important;
}

.btn-close {
    background: transparent;
    border: none;
    color: #ffffff;
    opacity: 0.7;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

    .btn-close:hover {
        opacity: 1;
    }

/* ============================================
   UTILITY CLASSES
   ============================================ */
.hidden {
    display: none !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .eligibility-wrapper {
        padding: 2rem 1.5rem;
    }

        .eligibility-wrapper h1 {
            font-size: 1.5rem;
        }

    .step {
        padding: 1.5rem;
    }

        .step h4 {
            font-size: 1.25rem;
        }

    .progress-step {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .progress-line {
        width: 50px;
    }

    .result-icon {
        font-size: 3rem;
    }

    .radio-option {
        padding: 1rem;
    }

    #certificateForm {
        padding: 1.5rem;
    }
}
