.v2-contact,
.v2-contact * {
    box-sizing: border-box;
}

.v2-contact {
    width: 100%;
    margin: 0;
    padding: 93px 120px;
    overflow: clip;
    background: #202124;
    color: #f7f8fa;
    font-family: "Inter", Arial, sans-serif;
    scroll-margin-top: 24px;
}

.v2-contact__inner {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    flex-direction: column;
    gap: 40px;
}

.v2-contact__header {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 14px;
}

.v2-contact__title,
.v2-contact__description,
.v2-contact__consent {
    margin: 0;
}

.v2-contact__title {
    color: #f7f8fa;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.v2-contact__description {
    color: rgba(247, 248, 250, 0.8);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.v2-contact__form {
    display: flex;
    width: 100%;
    min-width: 0;
    flex-direction: column;
    gap: 30px;
}

.v2-contact__status {
    width: 100%;
    padding: 10px 14px;
    border-left: 3px solid currentColor;
    color: #f7f8fa;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.v2-contact__status--success {
    border-left-color: #78b987;
    background: rgba(120, 185, 135, 0.12);
    color: #dff2e4;
}

.v2-contact__status--error {
    border-left-color: #e87474;
    background: rgba(232, 116, 116, 0.12);
    color: #ffdada;
}

.v2-contact__status:focus-visible {
    outline: 3px solid #68a8ff;
    outline-offset: 3px;
}

.v2-contact__live {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.v2-contact__form-main {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: flex-start;
    gap: 20px;
}

.v2-contact__fields {
    display: grid;
    min-width: 0;
    flex: 1 1 auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.v2-contact--price .v2-contact__fields {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.v2-contact__field {
    min-width: 0;
    margin: 0;
}

.v2-contact__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.v2-contact__control {
    position: relative;
    min-width: 0;
}

.v2-contact__input {
    display: block;
    width: 100%;
    height: 44px;
    min-width: 0;
    margin: 0;
    padding: 9px 50px 9px 16px;
    border: 1px solid #525357;
    border-radius: 8px;
    outline: 0;
    background: #202124;
    box-shadow: none;
    color: #f7f8fa;
    caret-color: #f7f8fa;
    font: inherit;
    font-size: 16px;
    line-height: 1.6;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.v2-contact__input::placeholder {
    color: #71747e;
    opacity: 1;
}

.v2-contact__input:hover:not(:disabled):not(:focus) {
    border-color: #8b8e97;
}

.v2-contact__input:not(:placeholder-shown) {
    border-color: #71747e;
}

.v2-contact__input:focus,
.v2-contact__input:focus-visible {
    border-color: #f7f8fa;
    box-shadow: 0 0 0 2px rgba(104, 168, 255, 0.55);
}

.v2-contact__field.has-error .v2-contact__input,
.v2-contact__input.is-invalid,
.v2-contact__input[aria-invalid="true"] {
    border-color: #e87474;
    box-shadow: 0 0 0 1px rgba(232, 116, 116, 0.3);
}

.v2-contact__field.has-success .v2-contact__input,
.v2-contact__input.is-valid {
    border-color: #78b987;
}

.v2-contact__input:disabled {
    cursor: not-allowed;
    border-color: #3c3d41;
    background: #292a2d;
    color: #71747e;
    opacity: 0.75;
}

.v2-contact__icon {
    position: absolute;
    top: 50%;
    right: 16px;
    width: 24px;
    height: 24px;
    max-width: none;
    pointer-events: none;
    transform: translateY(-50%);
}

.v2-contact__error {
    display: block;
    margin-top: 4px;
    color: #f49a9a;
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.v2-contact__error:empty {
    display: none;
}

.v2-contact__submit {
    flex: 0 0 auto;
    margin: 0;
}

.v2-contact__consent {
    width: 100%;
    max-width: 503px;
    align-self: flex-end;
    color: rgba(247, 248, 250, 0.8);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    text-align: right;
    overflow-wrap: anywhere;
}

.v2-contact__secondary {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.v2-contact__secondary-text {
    margin: 0;
    color: rgba(247, 248, 250, 0.8);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    text-align: left;
}

.v2-contact__privacy-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: from-font;
    text-underline-offset: 2px;
}

.v2-contact__privacy-link:hover {
    color: #fff;
}

.v2-contact__privacy-link:focus-visible {
    border-radius: 2px;
    outline: 3px solid #68a8ff;
    outline-offset: 3px;
}

@media (max-width: 1023px) {
    .v2-contact {
        padding-right: 32px;
        padding-left: 32px;
    }

    .v2-contact__form-main {
        flex-direction: column;
        align-items: flex-end;
        gap: 20px;
    }

    .v2-contact--price .v2-contact__fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .v2-contact {
        padding: 48px 16px;
    }

    .v2-contact__inner {
        align-items: center;
    }

    .v2-contact__header {
        align-items: center;
        text-align: center;
    }

    .v2-contact__title {
        font-size: clamp(32px, calc(11vw - 2.9px), 40px);
        letter-spacing: -0.01em;
        overflow-wrap: normal;
        white-space: nowrap;
    }

    .v2-contact__description {
        letter-spacing: -0.024em;
    }

    .v2-contact__fields {
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
    }

    .v2-contact--price .v2-contact__fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .v2-contact__form-main {
        align-items: center;
        gap: 30px;
    }

    .v2-contact__consent {
        max-width: none;
        align-self: stretch;
        color: #f7f8fa;
        text-align: center;
    }

    .v2-contact--price .v2-contact__inner {
        gap: 40px;
    }

    .v2-contact--price .v2-contact__form {
        gap: 30px;
    }

    .v2-contact--price .v2-contact__submit {
        min-width: 260px;
    }

    .v2-contact__secondary {
        align-items: center;
    }

    .v2-contact__secondary-text {
        text-align: center;
    }

    .v2-contact__secondary-action {
        min-width: 232px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .v2-contact__input {
        transition: none;
    }
}
