
    /* Modal Styles */
    .modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(4px);
        z-index: 9999;

        transition: opacity 0.3s ease;
    }

    .modal.active {
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 1;
    }

    .modal-content {
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        padding: 40px;
        border-radius: 20px;
        width: 90%;
        max-width: 500px;
        max-height: 85vh;
        overflow-y: auto;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        animation: modalSlideIn 0.4s ease;
        position: relative;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    @keyframes modalSlideIn {
        from {
            opacity: 0;
            transform: translateY(-30px) scale(0.95);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    /* Close Button */
    .close {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 28px;
        font-weight: 300;
        color: #666;
        cursor: pointer;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.3s ease;
        background: rgba(0, 0, 0, 0.05);
    }

    .close:hover {
        color: #ff4444;
        background: rgba(255, 68, 68, 0.1);
        transform: rotate(90deg);
    }

    /* Header */
    .modal-content h2 {
        color: #2c3e50;
        font-size: 28px;
        margin-bottom: 5px;
        font-weight: 700;
        text-align: center;
        background: linear-gradient(135deg, #0053ed, #117964);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .modal-content::before {
        content: '📚';
        font-size: 40px;
        display: block;
        text-align: center;
        margin-bottom: 10px;
        animation: float 3s ease-in-out infinite;
    }

    @keyframes float {

        0%,
        100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-10px);
        }
    }

    /* Course Info Display */
    .course-info {
        background: linear-gradient(135deg, rgba(0, 83, 237, 0.1), rgba(17, 121, 100, 0.1));
        padding: 15px;
        border-radius: 12px;
        margin: 20px 0;
        border-left: 4px solid #0053ed;
    }

    .info-row {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 8px 0;
        font-size: 14px;
    }

    .info-row i {
        color: #0053ed;
        width: 20px;
    }

    /* Form Styles */
    #registrationForm {
        margin-top: 20px;
    }

    .form-group {
        margin-bottom: 25px;
        position: relative;
    }

    .form-group label {
        display: block;
        margin-bottom: 8px;
        color: #2c3e50;
        font-weight: 600;
        font-size: 14px;
        transition: color 0.3s ease;
    }

    .form-group label::after {
        content: '';
        display: inline-block;
        width: 4px;
        height: 4px;
        background: #ff4444;
        border-radius: 50%;
        margin-left: 2px;
        vertical-align: super;
        opacity: 0;
    }

    .form-group label[required]::after {
        opacity: 1;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        width: 100%;
        padding: 14px 16px;
        border: 2px solid #e1e8ed;
        border-radius: 12px;
        font-size: 15px;
        transition: all 0.3s ease;
        background: white;
        color: #333;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .form-group input:focus,
    .form-group textarea:focus,
    .form-group select:focus {
        outline: none;
        border-color: #0053ed;
        box-shadow: 0 0 0 3px rgba(0, 83, 237, 0.1);
        transform: translateY(-1px);
    }

    .form-group input:hover,
    .form-group textarea:hover {
        border-color: #b2d4ff;
    }

    .form-group input::placeholder,
    .form-group textarea::placeholder {
        color: #95a5a6;
        font-size: 14px;
    }

    /* Optional field styling */
    .form-group label:not([required]) {
        color: #7f8c8d;
    }

    .form-group label:not([required])::after {
        content: '(Optional)';
        font-size: 12px;
        color: #95a5a6;
        font-weight: normal;
        margin-left: 5px;
        background: none;
        width: auto;
        height: auto;
    }

    /* Submit Button */
    .submit-btn {
        width: 100%;
        padding: 16px;
        background: linear-gradient(135deg, #0053ed 0%, #117964 100%);
        color: white;
        border: none;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-top: 10px;
        box-shadow: 0 4px 20px rgba(0, 83, 237, 0.3);
        position: relative;
        overflow: hidden;
    }

    .submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 25px rgba(0, 83, 237, 0.4);
    }

    .submit-btn:active {
        transform: translateY(0);
    }

    .submit-btn::after {
        content: '→';
        font-size: 18px;
        transition: transform 0.3s ease;
    }

    .submit-btn:hover::after {
        transform: translateX(5px);
    }

    .submit-btn.loading {
        opacity: 0.8;
        pointer-events: none;
    }

    .submit-btn.loading::after {
        content: '';
        width: 20px;
        height: 20px;
        border: 2px solid white;
        border-top-color: transparent;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        to {
            transform: rotate(360deg);
        }
    }

    /* Message Display */
    #message {
        margin-top: 20px;
        padding: 15px;
        border-radius: 12px;
        text-align: center;
        font-weight: 500;
        animation: fadeIn 0.3s ease;
        display: none;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    #message.success {
        background: rgba(46, 204, 113, 0.1);
        color: #27ae60;
        border: 1px solid rgba(46, 204, 113, 0.2);
    }

    #message.error {
        background: rgba(231, 76, 60, 0.1);
        color: #e74c3c;
        border: 1px solid rgba(231, 76, 60, 0.2);
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .modal-content {
            padding: 25px;
            margin: 20px;
            width: calc(100% - 40px);
            max-height: 90vh;
        }

        .modal-content h2 {
            font-size: 24px;
            margin-right: 30px;
        }

        .close {
            top: 15px;
            right: 15px;
            width: 35px;
            height: 35px;
            font-size: 24px;
        }

        .form-group input,
        .form-group textarea,
        .form-group select {
            padding: 12px 14px;
            font-size: 14px;
        }

        .submit-btn {
            padding: 14px;
            font-size: 15px;
        }
    }

    @media (max-width: 480px) {
        .modal-content {
            padding: 20px;
            margin: 15px;
            width: calc(100% - 30px);
        }

        .modal-content h2 {
            font-size: 22px;
        }

        .course-info {
            padding: 12px;
        }

        .info-row {
            font-size: 13px;
        }
    }

    /* Form Validation Styles */
    .form-group input:invalid:not(:focus):not(:placeholder-shown),
    .form-group textarea:invalid:not(:focus):not(:placeholder-shown) {
        border-color: #e74c3c;
        animation: shake 0.5s ease-in-out;
    }

    @keyframes shake {

        0%,
        100% {
            transform: translateX(0);
        }

        20%,
        60% {
            transform: translateX(-5px);
        }

        40%,
        80% {
            transform: translateX(5px);
        }
    }

    .error-message {
        color: #e74c3c;
        font-size: 12px;
        margin-top: 5px;
        display: none;
        animation: fadeIn 0.3s ease;
    }

    .form-group.error .error-message {
        display: block;
    }

    /* Scrollbar Styling */
    .modal-content::-webkit-scrollbar {
        width: 6px;
    }

    .modal-content::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 10px;
    }

    .modal-content::-webkit-scrollbar-thumb {
        background: #0053ed;
        border-radius: 10px;
    }
    
    /* OTP Button and Input Container */
    .phone-input-container {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .phone-input-container input {
        flex: 1;
    }
    
    .otp-btn {
        background-color: #007bff;
        color: white;
        border: none;
        padding: 8px 12px;
        border-radius: 4px;
        cursor: pointer;
        height: fit-content;
        font-size: 14px;
        font-weight: 500;
    }
    
    .otp-btn:hover {
        background-color: #0056b3;
    }
    
    .verification-status {
        margin-top: 10px;
        padding: 10px;
        background-color: #e7f3ff;
        border: 1px solid #b8daff;
        border-radius: 4px;
        color: #004085;
    }
    
    #resendOtp {
        margin-top: 10px;
        font-size: 14px;
    }
    
    #resendOtp a {
        color: #007bff;
        text-decoration: none;
    }
    
    #resendOtp a:hover {
        text-decoration: underline;
    }
   