.offer-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}

.offer-modal.is-open {
    display: block;
}

body.offer-modal-open {
    overflow: hidden;
}

.offer-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 25, 48, 0.76);
    backdrop-filter: blur(3px);
}

.offer-modal__dialog {
    position: relative;
    width: min(680px, calc(100% - 30px));
    max-height: 90vh;
    overflow-y: auto;
    margin: 5vh auto;
    padding: 32px;
    border-radius: 20px;
    background: #fff;
    color: #0b2545;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.offer-modal__dialog h2 {
    margin: 0 45px 8px 0;
    font-size: 30px;
}

.offer-modal__intro {
    margin: 0 0 24px;
    line-height: 1.5;
}

.offer-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #edf3f7;
    color: #0b2545;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.offer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.offer-field {
    display: block;
    margin-bottom: 16px;
    font-weight: 700;
}

.offer-field span {
    display: block;
    margin-bottom: 7px;
}

.offer-field input,
.offer-field select,
.offer-field textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #cbd7df;
    border-radius: 10px;
    background: #fff;
    color: #0b2545;
    font: inherit;
}

.offer-field input:focus,
.offer-field select:focus,
.offer-field textarea:focus {
    border-color: #16824b;
    outline: 3px solid rgba(22, 130, 75, 0.14);
}

.offer-field textarea {
    min-height: 125px;
    resize: vertical;
}

.offer-submit {
    width: 100%;
    padding: 15px 22px;
    border: 0;
    border-radius: 12px;
    background: #16824b;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
}

.offer-submit:hover {
    background: #116b3d;
}

.offer-submit:disabled {
    cursor: wait;
    opacity: 0.65;
}

.offer-status {
    min-height: 24px;
    margin: 14px 0 0;
    text-align: center;
    font-weight: 700;
}

.offer-status.is-success {
    color: #14733f;
}

.offer-status.is-error {
    color: #b42318;
}

.offer-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 620px) {
    .offer-modal__dialog {
        box-sizing: border-box;
        margin: 3vh auto;
        padding: 24px 18px;
    }

    .offer-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .offer-modal__dialog h2 {
        font-size: 25px;
    }
}
