/**
 * Builder — Formulaire (Gravity Forms)
 */

.fv-form {
    padding-inline: var(--section-inline-padding);
}

.fv-form__panel {
    width: 100%;
    max-width: 900px;
    margin-inline: auto;
    padding: clamp(2rem, 5vw, 3.5rem);
    background: var(--color-light);
    box-shadow: var(--shadow);
    border-radius: 10px;
}

.fv-form__head {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--margin-m);
    text-align: left;
}

.fv-form__title {
    margin: 0;
    font-family: var(--font-title);
    font-weight: 300;
    line-height: 1.2;
    color: var(--color-primary);
}

.fv-form__subtitle {
    margin: 0;
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-secondary);
}

.fv-form__edit {
    font-family: var(--font-base);
    font-size: var(--base);
    line-height: 1.6;
    color: var(--color-primary);
    margin-top: calc(var(--margin-m) / 2);
}

.fv-form__edit> :last-child {
    margin-bottom: 0;
}

.fv-form__notice {
    margin: 0;
    padding: 1rem 1.25rem;
    border-radius: var(--rad-s);
    background: #f2f2f2;
    color: var(--color-middle);
    font-size: 0.95rem;
}

/* -------------------------------------------------------------------------- */
/* Gravity Forms — styles section                                             */
/* -------------------------------------------------------------------------- */

.fv-form__embed .gform_wrapper form {
    margin: 0;
}

.fv-form__embed .gform_legacy_markup_wrapper .gfield,
.fv-form__embed .gform_legacy_markup_wrapper li.gfield {
    float: none !important;
}

.fv-form__embed .gform_fields::before,
.fv-form__embed .gform_fields::after {
    content: none;
    display: none;
}

.fv-form__embed .gform_heading,
.fv-form__embed .gform_description {
    display: none;
}

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

.fv-form__embed .gfield {
    grid-column: 1 / -1;
    margin: 0 !important;
    margin-block: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    clear: none !important;
}

.fv-form__embed .ginput_container {
    margin: 0 !important;
}

.fv-form__embed .gfield--width-half,
.fv-form__embed .gfield.gf_left_half,
.fv-form__embed .gfield.gf_right_half {
    grid-column: span 1;
}

.fv-form__embed .gfield_label,
.fv-form__embed .gform-field-label {
    display: none;
}

.fv-form__embed .gfield_description,
.fv-form__embed .instruction {
    font-family: var(--font-base);
    font-size: calc(var(--base) - 1px);
    color: var(--color-middle);
}

.fv-form__embed input[type="text"],
.fv-form__embed input[type="email"],
.fv-form__embed input[type="tel"],
.fv-form__embed input[type="url"],
.fv-form__embed input[type="number"],
.fv-form__embed input[type="password"],
.fv-form__embed select {
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 1rem;
    border: 1px solid rgb(31 27 47 / 18%);
    border-radius: 8px;
    background: var(--color-light);
    color: var(--color-primary);
    font-family: var(--font-base);
    font-size: var(--base);
    line-height: 1.4;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: none;
    appearance: none;
}

.fv-form__embed textarea,
.fv-form__embed .gfield--type-textarea textarea {
    width: 100%;
    min-height: 0 !important;
    height: 200px !important;
    max-height: 200px !important;
    padding: 0.75rem 1rem;
    border: 1px solid rgb(31 27 47 / 18%);
    border-radius: 8px;
    background: var(--color-light);
    color: var(--color-primary);
    font-family: var(--font-base);
    font-size: var(--base);
    line-height: 1.4;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: none;
    resize: vertical;
    field-sizing: fixed;
}

.fv-form__embed select {
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%231F1B2F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px 8px;
    cursor: pointer;
}

.fv-form__embed input::placeholder,
.fv-form__embed textarea::placeholder {
    color: var(--color-middle);
    opacity: 1;
}

.fv-form__embed input:focus,
.fv-form__embed select:focus,
.fv-form__embed textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 1px rgb(185 168 137 / 35%);
}

.fv-form__embed .gfield_consent_label,
.fv-form__embed .ginput_container_consent label {
    display: block;
    position: relative;
    padding-left: 1rem;
    font-family: var(--font-base);
    font-size: calc(var(--base) - 2px);
    line-height: 1.5;
    color: var(--color-primary);
    cursor: pointer;
}

.fv-form__embed .ginput_container_consent input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.fv-form__embed .gfield_consent_label::before,
.fv-form__embed .ginput_container_consent label::before {
    content: "";
    position: absolute;
    top: 0.15rem;
    left: 0;
    width: 16px;
    height: 16px;
    border: 1px solid rgb(31 27 47 / 22%);
    border-radius: 3px;
    background: var(--color-light);
}

.fv-form__embed .ginput_container_consent input[type="checkbox"]:checked+.gfield_consent_label::after,
.fv-form__embed .ginput_container_consent input[type="checkbox"]:checked+label::after {
    content: "\2713";
    position: absolute;
    top: 0.05rem;
    left: 3px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    color: var(--color-secondary);
}

.fv-form__embed .gform_footer,
.fv-form__embed .gform_page_footer {
    margin: 20px 0 0;
    padding: 0;
    text-align: center;
}

.fv-form__embed .gform_footer .gform_button,
.fv-form__embed .gform_footer .gform-button,
.fv-form__embed .gform_footer .gform-theme-button,
.fv-form__embed .gform_footer input[type="submit"],
.fv-form__embed .gform_footer button[type="submit"],
.fv-form__embed .gfield--type-submit .gform_button,
.fv-form__embed .gfield--type-submit .gform-button,
.fv-form__embed .gfield--type-submit .gform-theme-button,
.fv-form__embed .gfield--type-submit input[type="submit"],
.fv-form__embed .gfield--type-submit button[type="submit"],
.fv-form__embed [id^="gform_submit_button_"] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: 40px !important;
    width: auto !important;
    padding: 5px 20px !important;
    border: none !important;
    border-radius: 5px !important;
    background: var(--color-secondary) !important;
    color: var(--color-light) !important;
    font-family: var(--font-base) !important;
    font-size: calc(var(--base) - 1px) !important;
    font-weight: 500 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: none !important;
    transition: background-color 0.25s ease, transform 0.25s ease;
    margin: 0 auto !important;
}

.fv-form__embed .gform_footer .gform_button:hover,
.fv-form__embed .gform_footer .gform-button:hover,
.fv-form__embed .gform_footer .gform-theme-button:hover,
.fv-form__embed .gform_footer input[type="submit"]:hover,
.fv-form__embed .gform_footer button[type="submit"]:hover,
.fv-form__embed .gfield--type-submit .gform_button:hover,
.fv-form__embed .gfield--type-submit .gform-button:hover,
.fv-form__embed .gfield--type-submit .gform-theme-button:hover,
.fv-form__embed .gfield--type-submit input[type="submit"]:hover,
.fv-form__embed .gfield--type-submit button[type="submit"]:hover,
.fv-form__embed [id^="gform_submit_button_"]:hover,
.fv-form__embed .gform_footer .gform_button:focus-visible,
.fv-form__embed .gform_footer .gform-button:focus-visible,
.fv-form__embed .gform_footer .gform-theme-button:focus-visible,
.fv-form__embed .gform_footer input[type="submit"]:focus-visible,
.fv-form__embed .gform_footer button[type="submit"]:focus-visible,
.fv-form__embed .gfield--type-submit .gform_button:focus-visible,
.fv-form__embed .gfield--type-submit .gform-button:focus-visible,
.fv-form__embed .gfield--type-submit .gform-theme-button:focus-visible,
.fv-form__embed .gfield--type-submit input[type="submit"]:focus-visible,
.fv-form__embed .gfield--type-submit button[type="submit"]:focus-visible,
.fv-form__embed [id^="gform_submit_button_"]:focus-visible {
    background: #c9b896 !important;
    color: var(--color-light) !important;
    transform: translateY(-1px);
}

.fv-form__embed .gform_validation_errors,
.fv-form__embed .gfield_validation_message,
.fv-form__embed .validation_message {
    font-family: var(--font-base);
    font-size: calc(var(--base) - 1px);
    color: #b42318;
}

.fv-form__embed .gfield_error input,
.fv-form__embed .gfield_error select,
.fv-form__embed .gfield_error textarea {
    border-color: #b42318;
}

.fv-form__embed input[type="text"],
.fv-form__embed input[type="email"],
.fv-form__embed input[type="tel"],
.fv-form__embed input[type="url"],
.fv-form__embed input[type="number"],
.fv-form__embed input[type="password"],
.fv-form__embed select,
.fv-form__embed textarea {
    border-radius: 5px;
}

@media screen and (max-width: 991px) {
    .fv-form__panel {
        padding: 1.5rem 1.25rem;
    }

    .fv-form__embed .gform_fields {
        grid-template-columns: 1fr;
        row-gap: 20px;
        column-gap: 0;
    }

    .fv-form__embed .gfield,
    .fv-form__embed .gfield--width-half,
    .fv-form__embed .gfield.gf_left_half,
    .fv-form__embed .gfield.gf_right_half {
        grid-column: 1 / -1;
    }
}