
/* Khyati enquiry success/error modal */

#khyati-enquiry-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .2s ease;
}

#khyati-enquiry-modal.visible {
    opacity: 1;
}

.khyati-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
}

.khyati-modal-box {
    position: relative;
    width: min(92%, 520px);
    background: #fff;
    border-radius: 16px;
    padding: 38px 34px 32px;
    text-align: center;
    box-shadow: 0 20px 70px rgba(0,0,0,.25);
    transform: translateY(10px);
    transition: transform .2s ease;
    font-family: inherit;
}

#khyati-enquiry-modal.visible .khyati-modal-box {
    transform: translateY(0);
}

.khyati-modal-close {
    position: absolute;
    right: 16px;
    top: 10px;
    border: 0;
    background: transparent;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    opacity: .65;
}

.khyati-modal-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
}

.khyati-modal-icon.success {
    background: #e7f6ec;
    color: #237a3b;
}

.khyati-modal-icon.error {
    background: #fcebea;
    color: #a52a2a;
}

.khyati-modal-box h2 {
    margin: 0 0 12px;
    font-size: 25px;
}

.khyati-modal-box p {
    margin: 0 auto 25px;
    max-width: 430px;
    line-height: 1.65;
    color: #555;
}

.khyati-modal-action {
    border: 0;
    border-radius: 8px;
    padding: 12px 24px;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    background: #222;
    color: #fff;
}

@media (max-width: 600px) {
    .khyati-modal-box {
        padding: 32px 22px 26px;
    }
}
