.block-contact-form-custom {
    --cf-navy: #2d3892;
    --cf-input-bg: #f0f7ff;
    --cf-card-bg: #fff;
    --cf-placeholder: #8e9aaf;
    --cf-text: #2d3892;
    --cf-card-radius: 28px;
    --cf-input-radius: 10px;
    --cf-field-gap: 16px;

    width: 100%;
    font-size: var(--body1-font-size, 16px);
    display: flex;
    justify-content: flex-end;
}

.block-contact-form-custom__card {
    padding: 32px;
    background-color: var(--cf-card-bg);
    border-radius: 32px;
    max-width: 400px;
    width: 100%;
}


.block-contact-form-custom__form,
.block-contact-form-custom__form form {
    display: block;
    width: 100%;
    margin: 0;
}

.block-contact-form-custom__fields {
    display: flex;
    flex-direction: column;
    gap: var(--cf-field-gap);
}

.block-contact-form-custom__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.block-contact-form-custom__label {
    font-weight: 700;
    line-height: 1.3;
    color: var(--cf-navy);
}

.block-contact-form-custom__row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 16px;
    align-items: flex-start;
    width: 100%;
}

.block-contact-form-custom__field--half {
    flex: 1 1 0;
    min-width: 0;
}

.block-contact-form-custom__input {
    padding: 14px 16px;
    font-family: inherit;
    font-size: inherit;
    color: var(--cf-text);
    background-color: var(--cf-input-bg);
    border: none;
    border-radius: var(--cf-input-radius);
    outline: none;
}

.block-contact-form-custom__input::placeholder {
    color: var(--cf-placeholder);
    opacity: 1;
}

.block-contact-form-custom__input:focus {
    background-color: #e8f2ff;
}

.block-contact-form-custom__textarea {
    min-height: 140px;
    resize: vertical;
}

.block-contact-form-custom__input:-webkit-autofill,
.block-contact-form-custom__input:-webkit-autofill:hover,
.block-contact-form-custom__input:-webkit-autofill:focus {
    box-shadow: 0 0 0 1000px var(--cf-input-bg) inset !important;
    -webkit-text-fill-color: var(--cf-text);
}

.block-contact-form-custom__button {
    margin-block-start: 8px;
}

.block-contact-form-custom__submit.button {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 12px 32px;
    font-weight: 700;
    line-height: 1.4;
    color: #fff !important;
    background-color: var(--cf-navy) !important;
    border: none !important;
    border-radius: 999px;
    box-shadow: none !important;
    cursor: pointer;
    transition: background-color 0.2s linear;
    font-size: 20px;
}

.block-contact-form-custom__submit.button::after,
.block-contact-form-custom__submit.button:hover::after,
.block-contact-form-custom__submit.button:active::after {
    display: none !important;
    border: none !important;
    box-shadow: none !important;
}

.block-contact-form-custom__submit.button:hover {
    color: #fff !important;
    background-color: #67B0FF !important;
}

@media (max-width: 960px) {
    .block-contact-form-custom {
        justify-content: center;
    }

    .block-contact-form-custom__label {
        font-size: 16px;
    }
}