html.rwp-popup-open,
body.rwp-popup-open {
    overflow: hidden !important;
}

.rwp-popup {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity .26s ease, visibility 0s linear .26s;
}

.rwp-popup.is-open {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.rwp-popup__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(9, 24, 40, .78);
    cursor: pointer;
}

.rwp-popup__dialog {
    position: relative;
    z-index: 2;
    width: min(760rem, calc(100vw - 48rem));
    max-height: calc(100vh - 48rem);
    max-height: calc(100dvh - 48rem);
    padding: 54rem 56rem 50rem;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    color: #333333;
    background: #ffffff;
    box-shadow: 0 28rem 80rem rgba(0, 0, 0, .24);
    transform: translateY(18rem) scale(.985);
    transition: transform .26s cubic-bezier(.22, .61, .36, 1);
}

.rwp-popup.is-open .rwp-popup__dialog {
    transform: translateY(0) scale(1);
}

.rwp-popup__close {
    position: absolute;
    top: 18rem;
    right: 18rem;
    width: 34rem;
    height: 34rem;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.rwp-popup__close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22rem;
    height: 2rem;
    background: #333333;
    transform-origin: center;
}

.rwp-popup__close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.rwp-popup__close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }

.rwp-popup__head {
    margin-bottom: 30rem;
    padding-right: 26rem;
}

.rwp-popup__title {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    font-size: 42rem;
    font-weight: 700;
    line-height: 1.08;
}

.rwp-popup__text {
    max-width: 610rem;
    margin-top: 16rem;
    color: #555555;
    font-family: "Inter", Arial, sans-serif;
    font-size: 16rem;
    font-weight: 400;
    line-height: 1.45;
}

.rwp-popup__text p { margin: 0; }
.rwp-popup__admin-note { margin: 0; color: #d63638; font-size: 14rem; }

.rwp-popup .wpcf7-form,
.rwp-popup .wpcf7-form p,
.rwp-popup .wpcf7-form label,
.rwp-popup .wpcf7-form-control-wrap {
    margin: 0 !important;
    padding: 0;
}

.rwp-popup .wpcf7-form br,
.rwp-popup .wpcf7-form > p:empty { display: none; }
.rwp-popup .rwb-cf7-grid > p { display: contents; }

.rwp-popup .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.rwp-popup .rwb-cf7-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10rem;
}

.rwp-popup .rwb-cf7-field,
.rwp-popup .rwb-cf7-field .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.rwp-popup .wpcf7-form label.rwb-cf7-field--message,
.rwp-popup .rwb-cf7-field--message { display: block; margin-top: 14rem !important; }
.rwp-popup .rwb-cf7-grid + p:has(.rwb-cf7-field--message) { margin-top: 14rem !important; }

.rwp-popup .wpcf7-text,
.rwp-popup .wpcf7-email,
.rwp-popup .wpcf7-tel,
.rwp-popup .wpcf7-textarea {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0 18rem;
    border: 0;
    border-radius: 0;
    outline: 0;
    color: #333333;
    background: #efefef;
    box-shadow: none;
    font-family: "Mulish", "Inter", Arial, sans-serif;
    font-size: 14rem;
    font-weight: 400;
    line-height: 1.4;
    appearance: none;
}

.rwp-popup .wpcf7-text,
.rwp-popup .wpcf7-email,
.rwp-popup .wpcf7-tel { height: 54rem; }

.rwp-popup .wpcf7-textarea {
    height: 150rem;
    min-height: 150rem;
    padding-top: 15rem;
    padding-bottom: 15rem;
    resize: vertical;
}

.rwp-popup .wpcf7-text::placeholder,
.rwp-popup .wpcf7-email::placeholder,
.rwp-popup .wpcf7-tel::placeholder,
.rwp-popup .wpcf7-textarea::placeholder { color: rgba(51, 51, 51, .5); opacity: 1; }

.rwp-popup .wpcf7-not-valid { outline: 1px solid #d63638; outline-offset: -1px; }
.rwp-popup .wpcf7-not-valid-tip { margin-top: 5rem; color: #d63638; font-size: 12rem; line-height: 1.3; }

.rwp-popup .rwb-cf7-consent { margin-top: 10rem !important; padding-bottom: 16rem; }
.rwp-popup .rwb-cf7-consent .wpcf7-list-item { margin: 0; }
.rwp-popup .rwb-cf7-consent label {
    display: flex;
    align-items: flex-start;
    gap: 8rem;
    color: #777777;
    font-family: "Inter", Arial, sans-serif;
    font-size: 13rem;
    line-height: 1.25;
    cursor: pointer;
}
.rwp-popup .rwb-cf7-consent input[type="checkbox"] { width: 15rem; height: 15rem; margin: 0; flex: 0 0 15rem; accent-color: #444444; }
.rwp-popup .rwb-cf7-consent a { color: inherit; text-decoration: underline; text-underline-offset: 2rem; }

.rwp-popup .wpcf7-submit {
    display: inline-flex;
    min-width: 238rem;
    height: 64rem;
    margin: 0;
    padding: 20rem 40rem;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0;
    color: #ffffff;
    background: linear-gradient(180deg, #faa027 0%, #fc7e29 100%);
    box-shadow: none;
    font-family: "Inter", Arial, sans-serif;
    font-size: 13rem;
    font-weight: 700;
    line-height: 28rem;
    letter-spacing: 1.3rem;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    appearance: none;
}

.rwp-popup .wpcf7-submit:hover,
.rwp-popup .wpcf7-submit:focus-visible { filter: brightness(.96); }
.rwp-popup .wpcf7-spinner { margin: 0 0 0 12rem; vertical-align: middle; }
.rwp-popup .wpcf7-response-output { margin: 16rem 0 0; padding: 10rem 14rem; font-size: 13rem; line-height: 1.4; }

@media (max-width: 767px) {
    .rwp-popup { padding: 12rem; }
    .rwp-popup__dialog {
        width: calc(100vw - 24rem);
        max-height: calc(100dvh - 24rem);
        padding: 42rem 18rem 24rem;
    }
    .rwp-popup__close { top: 10rem; right: 10rem; width: 32rem; height: 32rem; }
    .rwp-popup__title { font-size: 28rem; line-height: 1.1; }
    .rwp-popup__text { margin-top: 12rem; font-size: 14rem; }
    .rwp-popup__head { margin-bottom: 22rem; padding-right: 18rem; }
    .rwp-popup .rwb-cf7-grid { grid-template-columns: minmax(0, 1fr); }
    .rwp-popup .wpcf7-form label.rwb-cf7-field--message,
    .rwp-popup .rwb-cf7-field--message,
    .rwp-popup .rwb-cf7-grid + p:has(.rwb-cf7-field--message) { margin-top: 14rem !important; }
    .rwp-popup .wpcf7-textarea { height: 130rem; min-height: 130rem; }
    .rwp-popup .rwb-cf7-consent label { font-size: 12rem; line-height: 1.35; }
    .rwp-popup .wpcf7-submit { width: 100%; min-width: 0; height: 58rem; font-size: 12rem; }
}

@media (prefers-reduced-motion: reduce) {
    .rwp-popup,
    .rwp-popup__dialog { transition: none !important; }
}
