/* popup form */

/* Popup form styles */
.school-forms {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 99; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0, 0, 0); /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

.school-forms h2 {
    font-size: 20px;
    line-height: normal;
}

.school-forms .popup-content {
    background-color: #fefefe;
    margin: 10vh auto;
    padding: 20px;
    border: 1px solid #888;
    width: calc(100% - 30px);
    border-radius: 10px;
    max-width: 576px;
}

.school-forms .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.school-forms .close:hover,
.school-forms .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.school-forms form label {
    display: block;
    margin-top: 10px;
}

.school-forms form input,
.school-forms form textarea,
.school-forms form select {
    width: calc(100% - 20px);
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.school-forms form select {
    width: 100% !important;
}

.school-forms form button {
    cursor: pointer;
    width: 100%;
    background: #333;
    color: #fff;
    margin-top: 20px;
    border-radius: 5px;
    padding: 10px;
}

/* Specific styles for status messages */
#statusMessage.success {
    color: #4caf50;
    background-color: #dff2bf;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
}

#statusMessage.error {
    color: #d8000c;
    background-color: #ffbaba;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
}
div#statusPopup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}
div#statusPopup .popup-content {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    width: calc(100% - 30px);
    max-width: 300px;
}
div#statusPopup .popup-content span#statusClose {
    color: #000;
    padding: 5px;
    position: absolute;
    right: 0;
    cursor: pointer;
    top: 0;
    font-size: 20px;
}
