/* ====================================
   ELEGANT CENTERED MODAL DESIGN V5
   ==================================== */

/* Toast Notification */
.toast-notification {
    position: fixed;
    top: 20px;
    right: -400px;
    background: white;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 99999;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    min-width: 320px;
    border-left: 4px solid #4caf50;
    opacity: 0;
    visibility: hidden;
}

.toast-notification.show {
    right: 20px;
    opacity: 1;
    visibility: visible;
}

.toast-notification .toast-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-notification .toast-icon i {
    font-size: 28px;
    color: white;
}

.toast-notification.show .toast-icon i {
    animation: checkmark 0.5s ease-in-out;
}

@keyframes checkmark {
    0% {
        transform: scale(0) rotate(0deg);
    }

    50% {
        transform: scale(1.2) rotate(180deg);
    }

    100% {
        transform: scale(1) rotate(360deg);
    }
}

.toast-notification .toast-content {
    flex: 1;
}

.toast-notification .toast-content h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    font-family: 'Outfit', sans-serif;
}

.toast-notification .toast-content p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.toast-notification .toast-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    transition: color 0.2s;
}

.toast-notification .toast-close:hover {
    color: #333;
}

/* Modal Overlay */
#registrationPopup,
#enrollmentPopup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 99998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#registrationPopup.active,
#enrollmentPopup.active {
    display: flex;
}

#registrationPopup .registration-overlay,
#enrollmentPopup .registration-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

/* Centered Modal Content */
#registrationPopup .registration-content,
#enrollmentPopup .registration-content {
    position: relative;
    background: white;
    border-radius: 24px;
    max-width: 900px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 30px 90px rgba(233, 30, 99, 0.4);
    animation: modalZoomIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: grid;
    grid-template-columns: 380px 1fr;

    /* Hide scrollbar for Chrome, Safari and Opera */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

#registrationPopup .registration-content::-webkit-scrollbar,
#enrollmentPopup .registration-content::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

@keyframes modalZoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Close Button */
#registrationPopup .registration-close,
#enrollmentPopup .registration-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

#registrationPopup .registration-close:hover,
#enrollmentPopup .registration-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

#registrationPopup .registration-close i,
#enrollmentPopup .registration-close i {
    font-size: 20px;
    color: #333;
}

/* Header Section - Left */
#registrationPopup .registration-header,
#enrollmentPopup .registration-header {
    background: linear-gradient(135deg, #e91e63 0%, #ec407a 50%, #9c27b0 100%);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    border-radius: 24px 0 0 24px;
    position: relative;
    overflow: hidden;
    min-height: 100%;
}

#registrationPopup .registration-header::before,
#enrollmentPopup .registration-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

#registrationPopup .registration-header i,
#enrollmentPopup .registration-header i {
    font-size: 80px;
    margin-bottom: 25px;
    display: block;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 5px 20px rgba(0, 0, 0, 0.3));
}

#registrationPopup .registration-header h2,
#enrollmentPopup .registration-header h2 {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 15px;
    font-family: 'Outfit', sans-serif;
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

#registrationPopup .registration-header p,
#enrollmentPopup .registration-header p {
    font-size: 16px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    line-height: 1.6;
    margin-bottom: 30px;
}

#registrationPopup .registration-header .header-features,
#enrollmentPopup .registration-header .header-features {
    position: relative;
    z-index: 1;
    width: 100%;
}

#registrationPopup .registration-header .feature-item,
#enrollmentPopup .registration-header .feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 15px;
    text-align: left;
}

#registrationPopup .registration-header .feature-item:last-child,
#enrollmentPopup .registration-header .feature-item:last-child {
    margin-bottom: 0;
}

#registrationPopup .registration-header .feature-item i,
#enrollmentPopup .registration-header .feature-item i {
    font-size: 22px;
    margin-bottom: 0;
    filter: none;
    flex-shrink: 0;
}

/* Form Section - Right */
#registrationPopup .registration-form,
#enrollmentPopup .registration-form {
    padding: 50px 45px;
    background: #fafafa;
    border-radius: 0 24px 24px 0;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

#registrationPopup .form-group,
#enrollmentPopup .form-group {
    margin-bottom: 20px;
}

#registrationPopup .form-group.full-width,
#enrollmentPopup .form-group.full-width {
    grid-column: 1 / -1;
}

#registrationPopup .form-group label,
#enrollmentPopup .form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    font-family: 'Poppins', sans-serif;
}

#registrationPopup .form-group input,
#registrationPopup .form-group select,
#enrollmentPopup .form-group input,
#enrollmentPopup .form-group select {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s;
    background: #fafafa;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

#registrationPopup .form-group input::placeholder,
#enrollmentPopup .form-group input::placeholder {
    color: #aaa;
    font-size: 14px;
}

#registrationPopup .form-group input:focus,
#registrationPopup .form-group select:focus,
#enrollmentPopup .form-group input:focus,
#enrollmentPopup .form-group select:focus {
    outline: none;
    border-color: #e91e63;
    background: white;
    box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.08);
}

#registrationPopup .form-group select,
#enrollmentPopup .form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23e91e63' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 45px;
}

/* Submit Button */
#registrationPopup .btn-submit,
#enrollmentPopup .btn-submit {
    width: 100%;
    padding: 17px;
    background: linear-gradient(135deg, #e91e63, #ec407a);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(233, 30, 99, 0.35);
    margin-top: 10px;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#registrationPopup .btn-submit:hover,
#enrollmentPopup .btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(233, 30, 99, 0.45);
}

#registrationPopup .btn-submit:active,
#enrollmentPopup .btn-submit:active {
    transform: translateY(-1px);
}

#registrationPopup .btn-submit:disabled,
#enrollmentPopup .btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

#registrationPopup .btn-submit i,
#enrollmentPopup .btn-submit i {
    font-size: 20px;
}

/* Responsive Design */
@media (max-width: 991px) {

    #registrationPopup .registration-content,
    #enrollmentPopup .registration-content {
        max-width: 90%;
        display: flex;
        flex-direction: column;
        height: auto;
        max-height: 90vh;
        /* Reset grid */
        grid-template-columns: 1fr;
    }

    /* Switch to Top Header */
    #registrationPopup .registration-header,
    #enrollmentPopup .registration-header {
        width: 100%;
        min-height: auto;
        padding: 30px 20px;
        border-radius: 24px 24px 0 0;
        flex: 0 0 auto;
    }

    #registrationPopup .registration-header i,
    #enrollmentPopup .registration-header i {
        font-size: 50px;
        margin-bottom: 10px;
    }

    #registrationPopup .registration-header h2,
    #enrollmentPopup .registration-header h2 {
        font-size: 24px;
        margin-bottom: 8px;
    }

    #registrationPopup .registration-header p,
    #enrollmentPopup .registration-header p {
        font-size: 14px;
        max-width: 100%;
    }

    /* Form Section Adjustments */
    #registrationPopup .registration-form,
    #enrollmentPopup .registration-form {
        width: 100%;
        min-height: auto;
        padding: 30px 25px;
        border-radius: 0 0 24px 24px;
        flex: 1 1 auto;
        overflow-y: auto;
    }

    .toast-notification {
        min-width: 280px;
        right: -320px;
    }

    .toast-notification.show {
        right: 10px;
    }
}

@media (max-width: 480px) {

    #registrationPopup .registration-content,
    #enrollmentPopup .registration-content {
        max-width: 95%;
    }

    #registrationPopup .registration-header,
    #enrollmentPopup .registration-header {
        padding: 25px 20px;
    }

    #registrationPopup .registration-form,
    #enrollmentPopup .registration-form {
        padding: 25px 20px 40px 20px;
    }

    #registrationPopup .form-group,
    #enrollmentPopup .form-group {
        margin-bottom: 15px;
    }
}