/*--------------------------------------------------------------
# Popup
--------------------------------------------------------------*/

._lock {
    overflow: hidden;
    touch-action: none;
}

.popup-new {
    position: fixed;
    inset: 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.8s ease 0s;
    contain: layout paint;
}

.popup-new._active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.popup-new._active .popup-new__content {
    transform: translateY(0);
}

.popup-new__body {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 30px;

    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* @media (max-height: 650px) {
    .popup-new__body {
        align-items: flex-start;
        overflow-x: hidden;
        overflow-y: auto;
    }
} */

@media (max-width: 768px) {
    .popup-new__body {
        /* align-items: flex-start; */
        padding: 20px;
        /* overflow-x: hidden;
        overflow-y: auto; */
    }
}

.popup-new__content {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 30px;
    margin-top: auto;
    margin-bottom: auto;

    width: 640px;
    max-width: 100%;
    background: rgba(17, 17, 17, 1);
    border-radius: 30px;
    transform: translateY(24px);
    transition: transform 0.4s ease;
    overflow: hidden;

    /* box-shadow: 0 24px 80px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.07), 0 0 70px rgb(255 79 105 / 22%);  */


    box-shadow:
        0 28px 90px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 90px rgba(204, 0, 30, 0.26);
}

.popup-new--services .popup-new__content {
    display: grid;
    grid-template-columns: minmax(300px, 470px) minmax(0, 1fr);
    padding: 24px 24px 24px 0;
    width: 1160px;
    min-height: 470px;
    background-color: #1D1D1D;

    box-shadow:
        0 28px 90px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 90px rgba(204, 0, 30, 0.26);
}

@media (max-width: 991px) {
    .popup-new__content {
        gap: 20px;
        padding: 20px;
        min-height: unset;
    }

    .popup-new--services .popup-new__content {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        padding: 20px;
        min-height: unset;
    }
}

.popup-new--services .popup-new__content::before {
    content: "";
    position: absolute;
    bottom: -70px;
    z-index: 0;
    width: 418px;
    height: 418px;
    background-color: #cc001e;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

@media (max-width: 768px) {
    .popup-new--services .popup-new__content::before {
        bottom: -30px;
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
    }
}

/* .popup-new__content::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.12), transparent 34%),
        radial-gradient(circle at 80% 100%, rgba(204, 0, 30, 0.16), transparent 42%);
    pointer-events: none;
} */

.popup-new__form {
    display: flex;
    flex-direction: column;
}

.popup-new--services .form-new,
.popup-new--services .form-new__grid,
.popup-new--services .form-new__row {
    gap: 20px;
}

.popup-new__main {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 991px) {
    .popup-new__main {
        gap: 20px;
    }
}

.popup-new__image {
    position: relative;
    z-index: 1;
    display: flex;
    align-self: end;
    justify-content: flex-end;
    margin-bottom: -24px;
}

@media (max-width: 991px) and (min-width: 769px) {
    .popup-new__image {
        display: none;
    }
}

@media (max-width: 768px) {
    .popup-new__image {
        order: 5;
        margin-bottom: -20px;
    }
}

.popup-new__image img {
    max-width: var(--width);
}

.popup-new__bg {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: flex;
    pointer-events: none;
}

.popup-new--success .popup-new__bg {
    right: 0;
    left: unset;
}

.popup-new__header {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 991px) {
    .popup-new__header {
        gap: 16px;
    }
}

.popup-new__title {
    font-size: clamp(20px, 0.7407407407vw + 17.3333333333px, 32px);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-transform: uppercase;

}

.popup-new--services .popup-new__title {
    text-shadow: 2px 2px 10px #CC001E;
}

@media (max-width: 768px) {
    .popup-new__title {
        font-size: 22px;
    }

    .popup-new__title br {
        display: none;
    }
}

.popup-new__text {
    font-family: "Geometria-Light";
    font-weight: 400;
    font-size: 18px;
    line-height: 1.5;
    color: #fff;
}

@media (max-width: 768px) {
    .popup-new__text {
        font-size: 14px;
    }
}

.popup-new__close {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 24px;
    height: 24px;
    color: rgba(0, 31, 62, 0.3);
    background: none;
    border: none;
    cursor: pointer;
    transition: 0.3s ease;
}

.popup-new__close {
    color: rgba(255, 255, 255, 0.45);
}

@media (hover: hover) and (pointer: fine) {
    .popup-new__close:hover {
        color: #fff;
        filter: drop-shadow(0 0 8px rgba(204, 0, 30, 0.7));
    }
}

@media (hover: hover) and (pointer: fine) {
    .popup-new__close:hover {
        color: #001f3e;
    }
}

@media (max-width: 991px) {
    .popup-new__close {
        top: 16px;
        right: 16px;
    }

    .popup-new__close svg {
        width: 20px;
        height: 20px;
    }
}

/* ## Form */

.form-new {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-new--small {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
}

@media (max-width: 991px) {
    .form-new {
        gap: 10px;
    }

    .form-new--small {
        display: flex;
        flex-direction: column;
    }
}

.form-new__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 991px) {
    .form-new__grid {
        gap: 10px;
    }
}

@media (max-width: 650px) {
    .form-new__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.form-new__row {
    display: flex;
    gap: 20px;
}

@media (max-width: 991px) {
    .form-new__row {
        flex-direction: column;
        gap: 10px;
    }
}

.form-new__row>* {
    flex-grow: 1;
}

.form-new__column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 991px) {
    .form-new__column {
        gap: 10px;
    }
}

.form-new__field {
    position: relative;
    display: flex;
    flex-direction: column;
}

.form-new__field:has(.wpcf7-not-valid-tip-custom) {
    padding-bottom: 12px;
}

@media (max-width: 991px) {
    .form-new__field:has(.wpcf7-not-valid-tip-custom) {
        padding-bottom: 10px;
    }
}

.form-new__field .wpcf7-not-valid-tip-custom {
    bottom: -7px;
}

@media (max-width: 991px) {
    .form-new__field .wpcf7-not-valid-tip-custom {
        bottom: -5px;
    }
}

.form-new__control {
    height: 60px;
}

@media (max-width: 991px) {
    .form-new__control {
        font-size: 16px;
    }
}

.form-new__control--textarea {
    height: 140px;
}

.form-new__control:-webkit-autofill,
.form-new__control:-webkit-autofill:hover,
.form-new__control:-webkit-autofill:focus,
.form-new__control:-webkit-autofill:active {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0 1000px rgb(10, 10, 10) inset;
}

.form-new__actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.form-new__button-wrap {
    position: relative;
}

@media (max-width: 650px) {
    .form-new__button-wrap {
        width: 100%;
    }
}

.form-new__btn {
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    font-family: "Geometria-Bold";
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    letter-spacing: .02em;
    color: #FFF;
    background: linear-gradient(268.45deg, #990000 49.18%, #6A0000 100%);
    box-shadow: 0 0 40px rgba(137, 0, 1, .3);
    transition: all 0.4s ease 0s;
}

.popup-new__main,
.popup-new__form,
.form-new,
.form-new__file,
.form-new__file-label,
.form-new__file-content {
    min-width: 0;
    max-width: 100%;
}

/* ## File */

.form-new__file {
    position: relative;
}

.form-new__file .wpcf7-form-control-wrap {
    display: contents;
}

.form-new__file-input {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.form-new__file-label {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 70px;
    padding: 14px 20px;
    color: rgba(255, 255, 255, 0.72);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
        #282828;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.015),
        0 12px 34px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    overflow: hidden;
    transition:
        border-color 0.3s ease,
        background-color 0.3s ease,
        box-shadow 0.3s ease,
        color 0.3s ease;
}

.form-new__file-label::before {
    content: "";
    position: absolute;
    inset: auto -40px -80px auto;
    width: 180px;
    height: 180px;
    background: rgba(204, 0, 30, 0.18);
    border-radius: 50%;
    filter: blur(45px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.form-new__file-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    color: #fff;
    background: linear-gradient(268.45deg, #990000 49.18%, #6A0000 100%);
    border-radius: 14px;
    box-shadow: 0 0 28px rgba(204, 0, 30, 0.32);
}

.form-new__file-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.form-new__file-title {
    font-family: "Geometria-Bold";
    font-weight: 700;
    font-size: 16px;
    line-height: 1.25;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.form-new__file-note {
    font-family: "Geometria-Light";
    font-size: 13px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.48);
}

@media (hover: hover) and (pointer: fine) {
    .form-new__file-label:hover {
        color: #fff;
        border-color: rgba(204, 0, 30, 0.42);
        box-shadow:
            inset 0 0 0 1px rgba(255, 255, 255, 0.03),
            0 14px 38px rgba(0, 0, 0, 0.28),
            0 0 36px rgba(204, 0, 30, 0.22);
    }

    .form-new__file-label:hover::before {
        opacity: 1;
    }
}

.form-new__file:focus-within .form-new__file-label {
    border-color: rgba(204, 0, 30, 0.65);
    box-shadow:
        0 0 0 3px rgba(204, 0, 30, 0.16),
        0 14px 38px rgba(0, 0, 0, 0.28);
}

.form-new__file._selected .form-new__file-label {
    border-color: rgba(204, 0, 30, 0.5);
}

.form-new__file._selected .form-new__file-icon {
    background: #cc001e;
}

@media (max-width: 768px) {
    .form-new__file-label {
        min-height: 64px;
        gap: 12px;
        padding: 12px 16px;
        border-radius: 16px;
    }

    .form-new__file-icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .form-new__file-title {
        font-size: 14px;
    }

    .form-new__file-note {
        font-size: 12px;
    }
}

/* ## Checkbox */

.checkbox {
    --size: 24px;
    --size-2: 12px;
    --gap: 15px;
}

.checkbox__label {
    display: grid;
    grid-template-columns: var(--size) auto;
    align-items: center;
    gap: var(--gap);
    font-size: 12px;
    line-height: 16px;
    cursor: pointer;
}

.checkbox__control {
    display: grid;
    place-content: center;
    margin-top: 2px;
    padding: 0;
    width: var(--size);
    height: var(--size);
    background-color: #111;
    border: 2px solid #393939;
    border-radius: 8px;
    transform: translateY(-0.075em);
    transition: 0.3s ease;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.checkbox__control:before {
    content: "";
    width: var(--size);
    height: var(--size);
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSI+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMTQuODMgMGMuMjUuMDguMTkuMjIyLjA0LjM4My0uNTkzLjYzNS0xLjQ4MiAxLjI4My0yLjE0MyAxLjg4NC0yLjY5MiAyLjQ1MS00Ljk5OSA0LjkwNC03LjAxMyA4LjA2OS0uMjk4LjQ2OS0uNjA4IDEuMTE1LS45MTcgMS41MzYtLjA2OS4wOTQtLjE1Ni4xODQtLjI1OC4wODVMLjAwNyA2LjU1NGMtLjA0LS4xNDMuMDk0LS4yNDMuMTgtLjMzM2EzMiAzMiAwIDAgMSAyLjE3Ni0yLjA1M2MuMTUyLS4xMy4yNDUtLjI2LjM5Ny0uMDMybDEuNzMgMi44MTVDNy41MzggNC4wMjMgMTAuOTkgMS40ODggMTQuODMgMCIvPjwvZz48ZGVmcz48Y2xpcFBhdGggaWQ9ImEiPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik0wIDBoMTV2MTJIMHoiLz48L2NsaXBQYXRoPjwvZGVmcz48L3N2Zz4=");
    background-repeat: no-repeat;
    background-position: center;
    background-size: var(--size-2);
    transform: scale(0.6);
    transform-origin: center;
    opacity: 0;
    transition: transform 180ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 120ms ease;
}

.checkbox__control:checked:before {
    transform: scale(1);
    opacity: 1;
}


/* ## CF7 */

.form-new .wpcf7-list-item-label,
.form-new .wpcf7-list-item,
.form-new .wpcf7-form-control-wrap {
    display: contents;
}

.wpcf7-not-valid-tip {
    position: absolute;
    top: -17px;
    left: 15px;
    font-size: 13px;
}

.form-new__file .wpcf7-not-valid-tip-custom {
    bottom: 8px;
    right: 12px;
    left: unset;
}

.form-new .wpcf7-spinner {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    background-color: #bb7774 !important;
}

.wpcf7-response-output {
    display: none;
}

.form-new p {
    margin: 0;
}

.form-new br {
    display: none;
}

.form-new a {
    text-decoration: underline;
}

/* 
.form .wpcf7-submit:disabled {
    filter: grayscale(1);
} */