.aqwas-school-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    direction: rtl;
    font-family: inherit;
}

.aqwas-school-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.aqwas-school-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(22, 15, 40, .64);
    backdrop-filter: blur(3px);
}

.aqwas-school-modal__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 490px);
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    padding: 32px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(15, 10, 35, .24);
    animation: aqwasSchoolIn .2s ease-out;
}

@keyframes aqwasSchoolIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.aqwas-school-modal__close {
    position: absolute;
    top: 13px;
    left: 15px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #f3f0f8;
    color: #51406f;
    font-size: 25px;
    cursor: pointer;
}

.aqwas-school-modal__heading {
    margin-bottom: 25px;
}

.aqwas-school-modal__eyebrow {
    color: #7652a8;
    font-size: 13px;
    font-weight: 700;
}

.aqwas-school-modal__heading h2 {
    margin: 9px 0;
    color: #292039;
    font-size: 25px;
    font-weight: 800;
}

.aqwas-school-modal__heading p {
    margin: 0;
    color: #777181;
    font-size: 14px;
    line-height: 1.8;
}

.aqwas-school-field {
    margin-bottom: 19px;
}

.aqwas-school-field label {
    display: block;
    margin-bottom: 9px;
    color: #342b43;
    font-size: 14px;
    font-weight: 700;
}

.aqwas-school-field label span {
    color: #d34b61;
}

.aqwas-school-field input {
    display: block;
    width: 100%;
    min-height: 51px;
    padding: 12px 14px;
    border: 1px solid #e3deeb;
    border-radius: 10px;
    background: #fff;
    color: #30283d;
    font: inherit;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.aqwas-school-field input:focus {
    border-color: #7955ad;
    box-shadow: 0 0 0 3px rgba(121, 85, 173, .12);
}

.aqwas-school-field input::placeholder {
    color: #aaa4b2;
    font-size: 12px;
}

.aqwas-school-error {
    display: block;
    min-height: 0;
    margin-top: 5px;
    color: #c83d52;
    font-size: 12px;
}

.aqwas-school-notice {
    display: none;
    margin: 12px 0;
    padding: 11px 13px;
    border-radius: 9px;
    background: #f2eff8;
    color: #59417d;
    font-size: 13px;
    line-height: 1.7;
}

.aqwas-school-notice.is-visible {
    display: block;
}

.aqwas-school-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.aqwas-school-actions button {
    min-height: 48px;
    padding: 10px 20px;
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.aqwas-school-submit {
    flex: 1;
    background: #68439a;
    color: #fff;
}

.aqwas-school-submit:hover {
    background: #573581;
}

.aqwas-school-cancel {
    background: #f1eef5;
    color: #594b6c;
}

body.aqwas-school-modal-open {
    overflow: hidden;
}

@media (max-width: 480px) {
    .aqwas-school-modal.is-open {
        padding: 12px;
    }

    .aqwas-school-modal__panel {
        padding: 27px 20px 22px;
        border-radius: 16px;
    }

    .aqwas-school-modal__heading h2 {
        font-size: 22px;
    }

    .aqwas-school-actions button {
        padding-inline: 13px;
    }
}
