/* ==========================================

   ENROLLMENT FORM POPUP - FASHIONBOX THEME

   ========================================== */



:root {

    --primary-red: #e31e24;

    --dark-bg: #1a1a1a;

    --enroll-secondary-color: #2d3748;

}



/* Enroll Button (Your existing button style) */

.btn-enroll-nav {

    background: var(--primary-red);

    color: white;

    border: none;

    padding: 12px 28px;

    border-radius: 30px;

    font-weight: 600;

    font-size: 15px;

    cursor: pointer;

    transition: all 0.3s ease;

    box-shadow: 0 4px 15px rgba(227, 30, 36, 0.3);

}



.btn-enroll-nav:hover {

    background: #c50812;

    transform: translateY(-2px);

    box-shadow: 0 6px 25px rgba(227, 30, 36, 0.5);

}



/* Modal Overlay */

.enrollment-modal-overlay {

    display: none;

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: rgba(0, 0, 0, 0.85);

    backdrop-filter: blur(5px);

    z-index: 9999;

    animation: fadeIn 0.3s ease;

}



.enrollment-modal-overlay.active {

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

}



@keyframes fadeIn {

    from {

        opacity: 0;

    }

    to {

        opacity: 1;

    }

}



/* Modal Container */

/* .enrollment-modal {


    border-radius: 25px;

    max-width: 600px;

    width: 100%;

    overflow-y: auto;

    position: relative;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);

    animation: slideUp 0.4s ease;

} */

/* Modal Container - Updated */
.enrollment-modal {
    border-radius: 25px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    
    /* Hide scrollbar but keep functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.enrollment-modal::-webkit-scrollbar {
    display: none;
}

@keyframes slideUp {

    from {

        transform: translateY(50px);

        opacity: 0;

    }

    to {

        transform: translateY(0);

        opacity: 1;

    }

}



/* Modal Header */

.modal-header-custom {

    background: linear-gradient(135deg, var(--primary-red), #ff1a1a);

    color: white;

    padding: 25px 40px;

    border-radius: 25px 25px 0 0;

    position: relative;

}



.modal-header-custom h2 {

    margin: 0;

    font-size: 32px;

    font-weight: 700;

    letter-spacing: 0.5px;
    color: white;
    text-align: left;

}



.modal-header-custom p {

    margin: 8px 0 0 0;

    opacity: 0.95;

    font-size: 15px;

}



/* Close Button */

.close-modal {

    position: absolute;

    top: 20px;

    right: 25px;

    background: rgba(255, 255, 255, 0.2);

    border: none;

    color: white;

    width: 40px;

    height: 40px;

    border-radius: 50%;

    font-size: 24px;

    cursor: pointer;

    transition: all 0.3s ease;

    display: flex;

    align-items: center;

    justify-content: center;

}



.close-modal:hover {

    background: rgba(255, 255, 255, 0.3);

    transform: rotate(90deg);

}



/* Modal Body */

.modal-body-custom {

    padding: 18px 30px;

    background-color: white;

}



/* Form Groups */

.form-group-custom {

    margin-bottom: 20px;

}



.form-group-custom label {

    display: block;

    margin-bottom: 5px;

    font-weight: 600;

    color: var(--enroll-secondary-color);

    font-size: 14px;

}



.form-group-custom label .required {

    color: var(--primary-red);

    margin-left: 3px;

}



.form-control-custom {

    width: 100%;

    padding: 10px 18px;

    border: 2px solid #e0e0e0;

    border-radius: 12px;

    font-size: 15px;

    transition: all 0.3s ease;

    background: #fafafa;

}



.form-control-custom:focus {

    outline: none;

    border-color: var(--primary-red);

    background: white;

    box-shadow: 0 0 0 4px rgba(227, 30, 36, 0.1);

}



.form-control-custom::placeholder {

    color: #999;

}



/* Select Dropdown */

select.form-control-custom {

    cursor: pointer;

    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='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");

    background-repeat: no-repeat;

    background-position: right 18px center;

    padding-right: 45px;

}



/* Textarea */

textarea.form-control-custom {

    min-height: 100px;

    resize: vertical;

    font-family: inherit;

}



/* Submit Button */

.submit-btn-custom {

    width: 100%;

    padding: 16px;

    background: linear-gradient(135deg, var(--primary-red), #ff1a1a);

    color: white;

    border: none;

    border-radius: 12px;

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;

    transition: all 0.3s ease;

    box-shadow: 0 6px 20px rgba(227, 30, 36, 0.3);

    letter-spacing: 0.5px;

}



.submit-btn-custom:hover {

    transform: translateY(-3px);

    box-shadow: 0 10px 30px rgba(227, 30, 36, 0.5);

}



.submit-btn-custom:active {

    transform: translateY(-1px);

}



/* Privacy Notice */

.privacy-notice {

    margin-top: 20px;

    padding: 15px;

    background: #f8f8f8;

    border-radius: 10px;

    font-size: 13px;

    color: #666;

    text-align: center;

}



.privacy-notice i {

    color: var(--primary-red);

    margin-right: 5px;

}



/* Responsive */

@media (max-width: 576px) {

    .enrollment-modal {

        border-radius: 20px;

        margin: 10px;

    }



    .modal-header-custom {

        padding: 18px 15px;

    }



    .modal-header-custom h2 {

        font-size: 26px;

    }



    .modal-body-custom {

        padding: 25px;

    }



    .form-group-custom {

        margin-bottom: 15px;

    }



    .close-modal {

        width: 35px;

        height: 35px;

        font-size: 20px;
                right: 10px;
        top: 12px;

    }

}

/* Custom Select Dropdown Styling */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.real-select {
    display: none;
}

.custom-select-trigger {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-size: 15px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    color: #666;
}

.custom-select-trigger::after {
    content: '';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    border-right: 2px solid #666;
    border-bottom: 2px solid #666;
    transition: transform 0.3s ease;
}

.custom-select-wrapper:hover .custom-select-trigger {
    border-color: var(--primary-red);
    background: white;
}

.custom-select-wrapper.open .custom-select-trigger {
    border-color: var(--primary-red);
    background: white;
    box-shadow: 0 0 0 4px rgba(227, 30, 36, 0.1);
}

.custom-select-wrapper.open .custom-select-trigger::after {
    transform: translateY(-50%) rotate(-135deg);
}

.custom-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    /* border: 2px solid var(--primary-red); */
    border-radius: 12px;
    margin-top: 5px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 10;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.custom-select-wrapper.open .custom-options {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-option {
    padding: 12px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333;
    font-size: 15px;
}

.custom-option:first-child {
    color: #999;
}

.custom-option:hover {
    background: linear-gradient(135deg, rgba(227, 30, 36, 0.1), rgba(255, 26, 26, 0.1));
    color: var(--primary-red);
    font-weight: 600;
}

.custom-option:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

/* Scrollbar for dropdown */
.custom-options::-webkit-scrollbar {
    width: 6px;
}

.custom-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.custom-options::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 10px;
}

.custom-options::-webkit-scrollbar-thumb:hover {
    background: #c50812;
}

/* Error States */
.form-control-custom.error,
.custom-select-trigger.error {
    border-color: #ef4444 !important;
    background-color: #fef2f2;
}

.error-message {
    color: #ef4444;
    font-size: 12px;
    margin-top: 2px;
    display: block;
}

.form-control-custom:focus {
    outline: none;
    border-color: #e31e24;
}

.form-control-custom.error:focus {
    border-color: #ef4444;
}

/* ==========================================
   RESULT MODAL (Success/Failure)
   ========================================== */

.result-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.result-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.result-modal {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.result-modal-overlay.active .result-modal {
    transform: scale(1);
}

.result-content {
    text-align: center;
    padding: 60px 40px;
}

.result-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    position: relative;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.result-icon.success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.result-icon.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.result-icon i {
    font-size: 50px;
    color: white;
}

.result-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
}

.result-message {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 35px;
    line-height: 1.6;
}

.result-close-btn {
    padding: 14px 40px;
    background: linear-gradient(135deg, #e31e24, #b91c1c);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(227, 30, 36, 0.3);
}

.result-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 30, 36, 0.4);
}

.result-close-btn:active {
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .result-content {
        padding: 50px 30px;
    }
    
    .result-icon {
        width: 80px;
        height: 80px;
    }
    
    .result-icon i {
        font-size: 40px;
    }
    
    .result-title {
        font-size: 24px;
    }
    
    .result-message {
        font-size: 14px;
    }
}