/* =========================================
   NAEKK LEAD POPUP
   ========================================= */

.lead-popup,
.lead-popup *,
.lead-popup *::before,
.lead-popup *::after {
    box-sizing: border-box;
}

.lead-popup[hidden] {
    display: none !important;
}

.lead-popup {
    position: fixed;
    inset: 0;
    z-index: 20000;
    color: #ffffff;
    font-family: var(--font-main, "Inter", Arial, sans-serif);
}

.lead-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
    cursor: pointer;
}

.lead-popup__dialog {
    position: absolute;
    right: 20px;
    bottom: 20px;

    width: 863px;
    min-height: 350px;
    padding: 44px 46px 32px 44px;

    display: flex;
    align-items: flex-start;
    gap: 63px;

    border-radius: 20px;
    background: #1c2331;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.lead-popup__close {
    position: absolute;
    right: 14px;
    top: 14px;

    width: 28px;
    height: 28px;
    padding: 0;

    border: 0;
    background: transparent;
    cursor: pointer;
    opacity: 0.65;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.lead-popup__close::before,
.lead-popup__close::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 15px;
    height: 1.5px;
    background: #ffffff;
    border-radius: 2px;
}

.lead-popup__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.lead-popup__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.lead-popup__close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.lead-popup__form {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 63px;
}

.lead-popup__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.lead-popup__intro {
    flex: 0 0 242px;
    width: 242px;
    padding: 8px 0;
}

.lead-popup__title {
    margin: 0;
    color: #ffffff;
    font-family: var(--font-accent, "Oswald", "Arial Narrow", Arial, sans-serif);
    font-size: 32px;
    font-weight: 600;
    line-height: 38px;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.lead-popup__subtitle {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    font-weight: 400;
    line-height: 26px;
}

.lead-popup__fields {
    flex: 1 1 auto;
    width: 468px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lead-popup__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
}

.lead-popup__field {
    position: relative;
    display: block;
    width: 100%;
}

.lead-popup__input {
    width: 100%;
    height: 46px;
    padding: 8px 20px;

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 8px;
    outline: 0;
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;

    font-family: var(--font-main, "Inter", Arial, sans-serif);
    font-size: 15px;
    font-weight: 400;
    line-height: 26px;

    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.lead-popup__input::placeholder {
    color: rgba(255, 255, 255, 0.30);
}

.lead-popup__input:focus {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.06);
}

.lead-popup__field.is-error .lead-popup__input {
    border-color: #f6868b;
}

.lead-popup__submit {
    width: 100%;
    min-height: 46px;
    padding: 12px 32px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 8px;
    background: #d2232a;
    color: #ffffff;
    cursor: pointer;

    font-family: var(--font-main, "Inter", Arial, sans-serif);
    font-size: 15px;
    font-weight: 900;
    line-height: 22px;

    transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.lead-popup__submit:hover {
    background: #b91f26;
    transform: translateY(-1px);
}

.lead-popup__submit:disabled {
    cursor: default;
    opacity: 0.65;
    transform: none;
}

.lead-popup__submit-mobile {
    display: none;
}

.lead-popup__consent {
    position: relative;
    min-height: 16px;
    padding-left: 27px;
    display: block;
    cursor: pointer;
}

.lead-popup__checkbox {
    position: absolute;
    left: 0;
    top: 0;
    width: 15px;
    height: 15px;
    opacity: 0;
    cursor: pointer;
}

.lead-popup__checkbox-view {
    position: absolute;
    left: 0;
    top: 1px;
    width: 15px;
    height: 15px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.lead-popup__checkbox-view::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    opacity: 0;
    transform: rotate(45deg);
}

.lead-popup__checkbox:checked + .lead-popup__checkbox-view {
    background: #d2232a;
    border-color: #d2232a;
}

.lead-popup__checkbox:checked + .lead-popup__checkbox-view::after {
    opacity: 1;
}

.lead-popup__consent-text {
    display: block;
    color: rgba(255, 255, 255, 0.70);
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
}

.lead-popup__consent-text a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lead-popup__consent.is-error .lead-popup__checkbox-view {
    border-color: #f6868b;
}

.lead-popup__error {
    display: none;
    margin: -2px 0 0;
    color: #f6868b;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
}

.lead-popup--error .lead-popup__error:not(:empty) {
    display: block;
}

.lead-popup__success[hidden] {
    display: none !important;
}

.lead-popup--success .lead-popup__dialog {
    width: 337px;
    min-height: 266px;
    padding: 44px 46px 32px;
    display: block;
}

.lead-popup--success .lead-popup__form {
    display: none;
}

.lead-popup--success .lead-popup__success {
    display: block;
}

.lead-popup__success p {
    width: 242px;
    margin: 0;
    color: #ffffff;
    font-family: var(--font-accent, "Oswald", "Arial Narrow", Arial, sans-serif);
    font-size: 32px;
    font-weight: 600;
    line-height: 38px;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

body.lead-popup-lock {
    overflow: hidden !important;
}

@media (max-width: 767px) {
    .lead-popup__dialog {
        right: 20px;
        bottom: 25px;
        width: min(336px, calc(100vw - 40px));
        min-height: 411px;
        padding: 26px 24px 20px;
        display: block;
        border-radius: 16px;
    }

    .lead-popup__close {
        right: 15px;
        top: 16px;
        width: 20px;
        height: 20px;
    }

    .lead-popup__form {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .lead-popup__intro {
        width: 100%;
        padding: 0;
        flex-basis: auto;
    }

    .lead-popup__title {
        padding-right: 30px;
        font-size: 26px;
        line-height: 33px;
        letter-spacing: 0;
    }

    .lead-popup__subtitle {
        margin-top: 6px;
        color: rgba(255, 255, 255, 0.60);
        font-size: 12px;
        line-height: 21px;
    }

    .lead-popup__desktop-br {
        display: none;
    }

    .lead-popup__fields {
        width: 100%;
        gap: 14px;
    }

    .lead-popup__row {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .lead-popup__row--desktop,
    .lead-popup__field--desktop {
        display: none;
    }

    .lead-popup__input {
        height: 38px;
        padding: 8px 16px;
        font-size: 12px;
        line-height: 21px;
    }

    .lead-popup__submit {
        min-height: 37px;
        padding: 8px 22px;
        border-radius: 6px;
        font-size: 13px;
        font-weight: 800;
        line-height: 21px;
    }

    .lead-popup__submit-desktop {
        display: none;
    }

    .lead-popup__submit-mobile {
        display: inline;
    }

    .lead-popup__consent {
        min-height: 34px;
    }

    .lead-popup__consent-text {
        width: 269px;
        max-width: 100%;
        color: rgba(255, 255, 255, 0.50);
        font-size: 11px;
        line-height: 16px;
    }

    .lead-popup__error {
        margin-top: -4px;
        color: #f6868b;
        font-size: 11px;
        line-height: 16px;
    }

    .lead-popup--success .lead-popup__dialog {
        width: min(336px, calc(100vw - 40px));
        min-height: 178px;
        padding: 26px 24px 20px;
        border-radius: 16px;
    }

    .lead-popup__success p {
        width: 268px;
        max-width: calc(100% - 24px);
        font-size: 26px;
        line-height: 33px;
        letter-spacing: 0;
    }
}

@media (max-width: 374px) {
    .lead-popup__dialog,
    .lead-popup--success .lead-popup__dialog {
        right: 16px;
        bottom: 20px;
        width: calc(100vw - 32px);
    }
}
