/* === Admission Form Modal === */
.sam-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.6);
    padding-top: 60px;
}

.sam-modal-content {
    background-color: #fff;
    margin: auto;
    padding: 30px 25px;
    border-radius: 8px;
    width: 95%;
    max-width: 700px;
    position: relative;
    animation: fadeIn 0.3s ease-out;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
}

/* Modal Close Button */
.sam-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 26px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
}
.sam-close:hover {
    color: #000;
}

/* === Form Styling === */
#sam-admission-form {
    font-family: Arial, sans-serif;
    font-size: 15px;
    color: #333;
}

#sam-admission-form label {
    font-weight: 600;
    margin-top: 15px;
    display: block;
}

#sam-admission-form input[type="text"],
#sam-admission-form input[type="email"],
#sam-admission-form input[type="tel"],
#sam-admission-form input[type="date"],
#sam-admission-form select {
    width: 100%;
    padding: 10px;
    margin-top: 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

#sam-admission-form fieldset {
    border: 1px solid #ddd;
    padding: 15px;
    margin-top: 20px;
    border-radius: 6px;
}
#sam-admission-form fieldset legend {
    font-weight: bold;
    padding: 0 8px;
}

/* Submit Button */
#sam-submit-btn {
    margin-top: 20px;
    background-color: #0073aa;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
}
#sam-submit-btn:hover {
    background-color: #005f8d;
}
#sam-submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Status Message */
#sam-form-status {
    margin-top: 15px;
    font-weight: bold;
}

/* === Button & Dropdown Styles === */
.sam-admission-container {
    text-align: center;
    margin: 30px 0;
}

.sam-open-form,
#sam-dropdown-button {
    background-color: #0085ba;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.sam-open-form:hover,
#sam-dropdown-button:hover {
    background-color: #0071a1;
}
.sam-open-form:disabled,
#sam-dropdown-button:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

#sam-course-select {
    padding: 10px;
    margin-top: 10px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 260px;
}

/* Responsive Adjustments */
@media screen and (max-width: 600px) {
    .sam-modal-content {
        padding: 20px;
    }

    #sam-admission-form input,
    #sam-admission-form select,
    #sam-submit-btn {
        font-size: 14px;
    }

    #sam-course-select {
        width: 100%;
    }

    .sam-open-form,
    #sam-dropdown-button {
        width: 100%;
        justify-content: center;
    }
}

/* Fade-in Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}