html.osp-popup-open,
body.osp-popup-open {
    overflow: hidden;
}

.osp-popup {
    --osp-progress: 0px;
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24rem;
    visibility: hidden;
    pointer-events: none;
    font-family: var(--os-font-main, "Tilda Sans", Arial, sans-serif);
}

.osp-popup.is-visible {
    visibility: visible;
    pointer-events: auto;
}

.osp-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 22, 30, .62);
    opacity: 0;
    transition: opacity .26s ease;
}

.osp-popup.is-open .osp-popup__backdrop {
    opacity: 1;
}

.osp-popup__panel {
    position: relative;
    z-index: 2;
    width: min(760rem, calc(100vw - 48rem));
    max-height: min(90dvh, 900rem);
    overflow: hidden;
    border-radius: 24rem;
    background: #fff;
    box-shadow: 0 24rem 70rem rgba(0,0,0,.18);
    opacity: 0;
    transform: translateY(12rem) scale(.97);
    transition: transform .28s cubic-bezier(.22,.61,.36,1), opacity .22s ease;
}

.osp-popup.is-open .osp-popup__panel {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.osp-popup__panel:focus {
    outline: 0;
}

.osp-popup__grab {
    display: none;
}

.osp-popup__close {
    position: absolute;
    top: 18rem;
    right: 18rem;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 42rem;
    height: 42rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f6f7f8;
    color: #252525;
    font: inherit;
    font-size: 31rem;
    line-height: 1;
    cursor: pointer;
}

.osp-popup__scroll {
    max-height: min(90dvh, 900rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.osp-popup__content {
    padding: 48rem 48rem 42rem;
}

.osp-popup__title {
    width: calc(100% - 44rem);
    margin: 0;
    color: #333;
    font-size: 38rem;
    line-height: 1.12;
    font-weight: 800;
}

.osp-popup__text {
    margin: 16rem 0 0;
    color: #555;
    font-size: 19rem;
    line-height: 1.4;
}

.osp-popup__form {
    margin-top: 28rem;
}

.osp-cf7-form {
    display: flex;
    flex-direction: column;
    gap: 14rem;
}

.osp-cf7-form__row {
    margin: 0;
}

.osp-cf7-form input[type="text"],
.osp-cf7-form input[type="tel"],
.osp-cf7-form input[type="email"],
.osp-cf7-form textarea,
.osp-cf7-form select {
    display: block;
    width: 100%;
    min-height: 68rem;
    margin: 0;
    padding: 0 18rem;
    border: 2rem solid rgba(0,0,0,.12);
    border-radius: 12rem;
    outline: 0;
    background: #fff;
    color: #333;
    font: inherit;
    font-size: 17rem;
    line-height: 1.25;
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.osp-cf7-form textarea {
    min-height: 118rem;
    padding-top: 16rem;
    padding-bottom: 16rem;
    resize: vertical;
}

.osp-cf7-form input:focus,
.osp-cf7-form textarea:focus,
.osp-cf7-form select:focus {
    border-color: #f2b75c;
    box-shadow: 0 0 0 3rem rgba(242,183,92,.14);
}

.osp-cf7-form .wpcf7-form-control-wrap {
    display: block;
}

.osp-cf7-form .wpcf7-not-valid-tip {
    margin-top: 5rem;
    color: #b42318;
    font-size: 13rem;
    line-height: 1.3;
}

.osp-cf7-form__consent {
    margin: 2rem 0 0;
    color: #666;
    font-size: 13rem;
    line-height: 1.35;
}

.osp-cf7-form__consent .wpcf7-list-item {
    margin: 0;
}

.osp-cf7-form__consent label {
    display: flex;
    align-items: flex-start;
    gap: 10rem;
    cursor: pointer;
}

.osp-cf7-form__consent input[type="checkbox"] {
    width: 20rem;
    height: 20rem;
    flex: 0 0 20rem;
    margin: 0;
    accent-color: #efb75e;
}

.osp-cf7-form input[type="submit"] {
    width: 100%;
    min-height: 70rem;
    margin: 4rem 0 0;
    padding: 12rem 28rem;
    border: 0;
    border-bottom: 4rem solid #dbad68;
    border-radius: 14rem;
    background: linear-gradient(180deg, #ffd79a 0%, #ffbc57 100%);
    color: #212121;
    font: inherit;
    font-size: 18rem;
    line-height: 1.15;
    font-weight: 700;
    cursor: pointer;
}

.osp-popup .wpcf7-spinner {
    margin: 10rem auto 0;
}

.osp-popup .wpcf7-response-output {
    margin: 12rem 0 0 !important;
    padding: 10rem 12rem !important;
    border-width: 1px !important;
    border-radius: 10rem;
    font-size: 14rem;
    line-height: 1.35;
}

.osp-popup__admin-note {
    padding: 14rem;
    border: 1px dashed #dba64f;
    border-radius: 10rem;
    background: #fff9f0;
    color: #6b552f;
    font-size: 14rem;
    line-height: 1.4;
}

@media (max-width: 767px) {
    .osp-popup {
        align-items: flex-end;
        padding: 0;
    }

    .osp-popup__backdrop {
        background: rgba(15,22,30,.58);
    }

    .osp-popup__panel {
        width: 100%;
        max-height: 90dvh;
        border: 0;
        border-radius: 24rem 24rem 0 0;
        outline: 0;
        box-shadow: none;
        filter: none;
        opacity: 1;
        transform: translateY(100%);
        transition: transform .34s cubic-bezier(.22,.61,.36,1);
        touch-action: pan-y;
    }

    .osp-popup.is-open .osp-popup__panel {
        transform: translateY(var(--osp-drag-y, 0px));
    }

    .osp-popup.is-dragging .osp-popup__panel {
        transition: none;
    }

    .osp-popup__grab {
        position: relative;
        z-index: 4;
        display: grid;
        place-items: center;
        width: 100%;
        height: 30rem;
        cursor: grab;
    }

    .osp-popup__grab span {
        display: block;
        width: 52rem;
        height: 4rem;
        border-radius: 5rem;
        background: #c9c9c9;
    }

    .osp-popup__close {
        top: 31rem;
        right: 14rem;
        width: 38rem;
        height: 38rem;
        background: transparent;
        font-size: 30rem;
    }

    .osp-popup__scroll {
        max-height: calc(90dvh - 30rem);
        overscroll-behavior-y: contain;
    }

    .osp-popup__content {
        padding: 12rem 20rem 26rem;
    }

    .osp-popup__title {
        width: calc(100% - 40rem);
        font-size: 30rem;
        line-height: 1.12;
    }

    .osp-popup__text {
        margin-top: 10rem;
        font-size: 16rem;
        line-height: 1.35;
    }

    .osp-popup__form {
        margin-top: 20rem;
    }

    .osp-cf7-form {
        gap: 10rem;
    }

    .osp-cf7-form input[type="text"],
    .osp-cf7-form input[type="tel"],
    .osp-cf7-form input[type="email"],
    .osp-cf7-form textarea,
    .osp-cf7-form select {
        min-height: 62rem;
        padding-right: 16rem;
        padding-left: 16rem;
        border-radius: 11rem;
        font-size: 16rem;
    }

    .osp-cf7-form textarea {
        min-height: 105rem;
        padding-top: 14rem;
        padding-bottom: 14rem;
    }

    .osp-cf7-form input[type="submit"] {
        min-height: 62rem;
        border-bottom-width: 0;
        border-radius: 14rem;
        font-size: 17rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .osp-popup__backdrop,
    .osp-popup__panel {
        transition: none;
    }
}


.osp-popup .wpcf7-form.sent .wpcf7-response-output {
    display: none !important;
}

.osp-success {
    position: fixed;
    inset: 0;
    z-index: 120000;
    display: grid;
    place-items: center;
    padding: 20rem;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
    font-family: var(--os-font-main, "Tilda Sans", Arial, sans-serif);
}

.osp-success.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.osp-success__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 22, 30, .56);
}

.osp-success__card {
    position: relative;
    z-index: 2;
    width: min(390rem, calc(100vw - 40rem));
    padding: 32rem 28rem 30rem;
    border-radius: 22rem;
    background: #fff;
    box-shadow: 0 24rem 70rem rgba(0,0,0,.18);
    color: #333;
    text-align: center;
    transform: translateY(8rem) scale(.98);
    transition: transform .24s cubic-bezier(.22,.61,.36,1);
}

.osp-success.is-open .osp-success__card {
    transform: translateY(0) scale(1);
}

.osp-success__progress {
    display: block;
    width: 58rem;
    height: 58rem;
    margin: 0 auto 18rem;
    overflow: visible;
    transform: rotate(-90deg);
}

.osp-success__track,
.osp-success__value {
    fill: none;
    stroke-width: 4;
}

.osp-success__track {
    stroke: #f2f2f2;
}

.osp-success__value {
    stroke: #ffbc57;
    stroke-linecap: round;
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
}

.osp-success.is-running .osp-success__value {
    animation: osp-success-progress 3s linear forwards;
}

.osp-success__check {
    fill: none;
    stroke: #333;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: rotate(90deg);
    transform-origin: 28px 28px;
}

.osp-success__title {
    font-size: 24rem;
    line-height: 1.15;
    font-weight: 800;
}

.osp-success__text {
    margin-top: 8rem;
    color: #5a5a5a;
    font-size: 15rem;
    line-height: 1.35;
}

@keyframes osp-success-progress {
    to { stroke-dashoffset: 0; }
}

@media (max-width: 767px) {
    .osp-success__card {
        width: min(330rem, calc(100vw - 40rem));
        padding: 28rem 22rem 26rem;
        border-radius: 20rem;
    }

    .osp-success__title {
        font-size: 22rem;
    }

    .osp-success__text {
        font-size: 14rem;
    }
}
