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

.nvf-contact-form {
    --nvf-form-gap: 14px;
    --nvf-form-row-gap: 18px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    color: #111111;
}

.nvf-contact-form__hp {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    white-space: nowrap !important;
}

.nvf-contact-form__grid {
    display: grid !important;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--nvf-form-gap);
    row-gap: var(--nvf-form-row-gap);
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.nvf-contact-form__group {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.nvf-contact-form__group--span-4 {
    grid-column: span 4 / span 4 !important;
}

.nvf-contact-form__group--span-6 {
    grid-column: span 6 / span 6 !important;
}

.nvf-contact-form__group--span-12 {
    grid-column: span 12 / span 12 !important;
}

.nvf-contact-form__label {
    display: block;
    margin: 0 0 8px;
    color: #af2648;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.2;
    text-transform: uppercase;
}

.nvf-contact-form__field {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 68px;
    height: 68px;
    margin: 0;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 16px;
    outline: none;
    background: #ffffff;
    color: #1d1d1d;
    font-family: inherit;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.25;
    appearance: none;
    -webkit-appearance: none;
    transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}

.nvf-contact-form__field::placeholder {
    color: #1d1d1d;
    opacity: 1;
}

.nvf-contact-form__field:focus {
    box-shadow: 0 0 0 2px rgba(175, 38, 72, .18);
}

.nvf-contact-form__field.is-error {
    box-shadow: 0 0 0 2px rgba(175, 38, 72, .45);
}

.nvf-contact-form__textarea {
    min-height: 240px;
    height: auto;
    padding-top: 18px;
    padding-bottom: 18px;
    resize: vertical;
}

.nvf-contact-form__select-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.nvf-contact-form__select {
    padding-right: 64px;
    text-overflow: ellipsis;
}

.nvf-contact-form__select-icon {
    position: absolute;
    top: 50%;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    pointer-events: none;
    transform: translateY(-50%);
    background: transparent;
}

.nvf-contact-form__select-icon img,
.nvf-contact-form__submit-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nvf-contact-form__privacy {
    margin: 16px 0 0;
    color: #222222;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
}

.nvf-contact-form__privacy a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.nvf-contact-form__recaptcha {
    margin: 18px 0 0;
}

.nvf-contact-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    margin: 18px 0 0;
    padding: 14px 32px;
    border: 0;
    border-radius: 999px;
    background: #263f6d;
    color: #ffffff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .25s ease, color .25s ease, opacity .25s ease, transform .25s ease;
}

.nvf-contact-form__submit:hover,
.nvf-contact-form__submit:focus-visible {
    background: #af2648;
    color: #ffffff;
    transform: translateY(-1px);
}

.nvf-contact-form__submit[disabled] {
    opacity: .65;
    cursor: wait;
    transform: none;
}

.nvf-contact-form__submit-icon {
    display: inline-flex;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
}

.nvf-contact-form__message {
    display: none;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
}

.nvf-contact-form__message.is-visible {
    display: block;
}

.nvf-contact-form__message.is-success {
    background: rgba(38, 63, 109, .08);
    color: #263f6d;
}

.nvf-contact-form__message.is-error {
    background: rgba(175, 38, 72, .08);
    color: #af2648;
}

@media (max-width: 1024px) {
    .nvf-contact-form__field {
        min-height: 64px;
        height: 64px;
        padding: 0 20px;
        font-size: 17px;
    }

    .nvf-contact-form__textarea {
        min-height: 220px;
        padding-top: 18px;
        padding-bottom: 18px;
    }
}

@media (max-width: 900px) {
    .nvf-contact-form__group--span-4 {
        grid-column: span 6 / span 6 !important;
    }
}

@media (max-width: 767px) {
    .nvf-contact-form {
        --nvf-form-gap: 12px;
        --nvf-form-row-gap: 16px;
        padding-right: 18px;
        padding-left: 18px;
    }

    .nvf-contact-form__group--span-6,
    .nvf-contact-form__group--span-4,
    .nvf-contact-form__group--span-12 {
        grid-column: span 12 / span 12 !important;
    }

    .nvf-contact-form__label {
        margin-bottom: 7px;
        font-size: 10px;
        letter-spacing: 0.14em;
    }

    .nvf-contact-form__field {
        min-height: 58px;
        height: 58px;
        padding: 0 18px;
        border-radius: 14px;
        font-size: 16px;
    }

    .nvf-contact-form__select {
        padding-right: 54px;
    }

    .nvf-contact-form__select-icon {
        right: 16px;
        width: 24px;
        height: 24px;
    }

    .nvf-contact-form__textarea {
        min-height: 180px;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .nvf-contact-form__privacy {
        margin-top: 14px;
        font-size: 12px;
    }

    .nvf-contact-form__submit {
        width: 100%;
        min-height: 50px;
        margin-top: 16px;
        padding: 14px 20px;
    }
}
