.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--xl);
}
.wpcf7-form > .wp-block-group > *:not(:first-child) {
    margin-block-start: var(--wp--preset--spacing--2-xl);
}
.wpcf7 .wp-block-columns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-block-start: var(--wp--preset--spacing--s);
}

.wpcf7 .wp-block-column {
    flex: 1;
}

.wpcf7 label {
    color: #404040;
}

.wpcf7 input:not([type="submit"]),
.wpcf7 select,
.wpcf7 textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
}

/* Style pour les accordéons */
.wpcf7 details {
    flex-direction: column;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
}

.wpcf7 summary {
    justify-content: space-between;
    padding: var(--wp--preset--spacing--s);
    background: var(--wp--preset--color--light);
    border: none;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
}
.wpcf7 .wp-block-details * {
    margin: 0;
    margin-block-end: 0 !important;
}
.wpcf7 details > *:not(summary) {
    padding: var(--wp--preset--spacing--s);
    padding-top: 0;
    margin: 0;
}

:root :where(.wpcf7 .wp-block-button .wp-block-button__link) {
    background-color: var(--wp--preset--color--dark);
    border-radius: 8px;
    border-color: var(--wp--preset--color--dark);
    border-width: 1px;
    border-top-color: var(--wp--preset--color--dark);
    border-top-width: 1px;
    border-top-style: solid;
    border-right-color: var(--wp--preset--color--dark);
    border-right-width: 1px;
    border-right-style: solid;
    border-bottom-color: var(--wp--preset--color--dark);
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-left-color: var(--wp--preset--color--dark);
    border-left-width: 1px;
    border-left-style: solid;
    color: var(--wp--preset--color--light);
    font-family: var(--wp--preset--font-family--content);
    font-size: var(--wp--preset--font-size--m);
    padding: calc(0.667em + 2px) calc(1.333em + 2px);
    text-decoration: none;
}
:root :where(.wp-block-button .wp-block-button__link:hover ) {
    color: var(--wp--preset--color--light) !important;
    background-color: #404040 !important;
}
.wpcf7 .wp-block-button p {
    display: inline-block;
    position: relative;
}
.wpcf7-spinner {
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
}

.sea-form {
    --sea-form-label-color: var(--wp--preset--color--primary);
    --sea-form-field-bg: #fff;
    --sea-form-field-color: #225C81;
    --sea-form-placeholder-color: #225C81;
    --sea-form-border-color: rgba(34, 92, 129, 0.4);
    --sea-form-focus-color: #88D79F;
    --sea-form-not-valid-color: #C94C4C;
    --sea-form-response-bg: rgba(0, 48, 85, 0.08);
    --sea-form-response-color: var(--wp--preset--color--primary);
    --sea-form-response-success-bg: rgba(136, 215, 159, 0.18);
    --sea-form-response-success-color: #1E6A34;
    --sea-form-response-error-bg: rgba(245, 78, 78, 0.18);
    --sea-form-response-error-color: #8A1F1F;
    --sea-form-submit-bg: var(--wp--preset--color--primary);
    --sea-form-submit-color: #fff;
    --sea-form-submit-border: var(--wp--preset--color--primary);
    --sea-form-choice-bg: transparent;
    --sea-form-choice-color: var(--sea-form-label-color);
    --sea-form-choice-border: var(--sea-form-border-color);
    --sea-form-choice-selected-bg: var(--sea-form-field-bg);
    --sea-form-choice-selected-color: var(--sea-form-field-color);
    --sea-form-choice-selected-border: var(--sea-form-field-bg);
    --sea-form-submit-min-width: 103px;
    --sea-form-max-width: none;
    --sea-form-title-font-family: var(--wp--preset--font-family--title);
    --sea-form-title-font-size: 14px;
    --sea-form-title-font-weight: 600;
    --sea-form-title-line-height: 1.3;
    --sea-form-title-letter-spacing: 0.02em;
    --sea-form-title-text-transform: uppercase;
    width: 100%;
    max-width: var(--sea-form-max-width);
}

.sea-form--inverse {
    --sea-form-label-color: var(--sea-index-white, #fff);
    --sea-form-field-bg: var(--sea-index-white, #fff);
    --sea-form-field-color: var(--sea-index-soft-blue, #225C81);
    --sea-form-placeholder-color: var(--sea-index-soft-blue, #225C81);
    --sea-form-border-color: rgba(34, 92, 129, 0.4);
    --sea-form-focus-color: var(--sea-index-accent, #88D79F);
    --sea-form-not-valid-color: #FFB9B9;
    --sea-form-response-bg: rgba(255, 255, 255, 0.12);
    --sea-form-response-color: var(--sea-index-white, #fff);
    --sea-form-response-success-bg: rgba(136, 215, 159, 0.18);
    --sea-form-response-success-color: #D3FFE0;
    --sea-form-response-error-bg: rgba(245, 78, 78, 0.18);
    --sea-form-response-error-color: #FFD8D8;
    --sea-form-submit-bg: rgba(0, 48, 85, 0.92);
    --sea-form-submit-color: var(--sea-index-white, #fff);
    --sea-form-submit-border: rgba(255, 255, 255, 0.8);
    --sea-form-choice-color: var(--sea-index-white, #fff);
    --sea-form-choice-border: var(--sea-index-white, #fff);
    --sea-form-choice-selected-bg: var(--sea-index-white, #fff);
    --sea-form-choice-selected-color: var(--sea-index-soft-blue, #225C81);
    --sea-form-choice-selected-border: var(--sea-index-white, #fff);
}

.sea-form--contact {
    --sea-form-max-width: 530px;
    --sea-form-label-color: #003055;
    --sea-form-field-bg: #fff;
    --sea-form-field-color: #225C81;
    --sea-form-placeholder-color: rgba(34, 92, 129, 0.7);
    --sea-form-border-color: rgba(34, 92, 129, 0.4);
    --sea-form-focus-color: #88D79F;
    --sea-form-not-valid-color: #F54E4E;
    --sea-form-response-bg: rgba(0, 48, 85, 0.08);
    --sea-form-response-color: #003055;
    --sea-form-response-success-bg: rgba(136, 215, 159, 0.18);
    --sea-form-response-success-color: #1E6A34;
    --sea-form-response-error-bg: rgba(245, 78, 78, 0.12);
    --sea-form-response-error-color: #F54E4E;
    --sea-form-submit-bg: #003055;
    --sea-form-submit-color: #fff;
    --sea-form-submit-border: #003055;
    --sea-form-submit-min-width: 85px;
    --sea-form-choice-bg: #fff;
    --sea-form-choice-color: #003055;
    --sea-form-choice-border: #003055;
    --sea-form-choice-selected-bg: #05456F;
    --sea-form-choice-selected-color: #fff;
    --sea-form-choice-selected-border: #05456F;
    --sea-form-title-font-size: 25px;
    --sea-form-title-font-weight: 800;
    --sea-form-title-line-height: 1.2;
    --sea-form-title-letter-spacing: 0.1em;

    display: flex;
    flex-direction: column;
    gap: 40px;
}

.sea-form p {
    margin: 0;
}

.sea-form .wpcf7 {
    width: 100%;
}

.sea-form .wpcf7-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin: 0;
}

.sea-form .wpcf7 form > p {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.sea-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.sea-form .wpcf7-form-control-wrap[data-name="sea_index_payload"] {
    display: none;
}

.sea-form--contact .wpcf7-form {
    gap: 32px;
}

.sea-form--contact label,
.sea-form--contact .sea-form__label {
    margin-bottom: 0 !important;
}

.sea-form label,
.sea-form .sea-form__label {
    display: flex;
    margin-bottom: 16px;
    color: var(--sea-form-label-color);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.02em;
}

.sea-form input:not([type="submit"]):not([type="hidden"]):not([type="radio"]):not([type="checkbox"]),
.sea-form select,
.sea-form textarea {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--sea-form-border-color);
    border-radius: 8px;
    background: var(--sea-form-field-bg);
    color: var(--sea-form-field-color);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: -0.02em;
    box-sizing: border-box;
}

.sea-form input:not([type="submit"]):not([type="hidden"]):not([type="radio"]):not([type="checkbox"])::placeholder,
.sea-form select::placeholder,
.sea-form textarea::placeholder {
    color: var(--sea-form-placeholder-color);
    opacity: 1;
}

.sea-form input:not([type="submit"]):not([type="hidden"]):not([type="radio"]):not([type="checkbox"]):focus,
.sea-form select:focus,
.sea-form textarea:focus {
    outline: none;
    border-color: var(--sea-form-focus-color);
    box-shadow: 0 0 0 1px rgba(136, 215, 159, 0.22);
}

.sea-form textarea {
    min-height: 120px;
    padding-top: 14px;
    padding-bottom: 14px;
    resize: vertical;
}

.sea-form--contact textarea {
    min-height: 213px;
    height: 213px;
    padding-top: 16px;
    padding-bottom: 16px;
    resize: none;
}

.sea-form .wpcf7-not-valid-tip {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.35;
    color: var(--sea-form-not-valid-color);
}

.sea-form .wpcf7-response-output {
    margin: 0;
    padding: 14px 16px;
    border: 0;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--sea-form-response-color);
    background: var(--sea-form-response-bg);
}

.sea-form .wpcf7 form.sent .wpcf7-response-output {
    background: var(--sea-form-response-success-bg);
    color: var(--sea-form-response-success-color);
}

.sea-form .wpcf7 form.invalid .wpcf7-response-output,
.sea-form .wpcf7 form.failed .wpcf7-response-output,
.sea-form .wpcf7 form.aborted .wpcf7-response-output {
    background: var(--sea-form-response-error-bg);
    color: var(--sea-form-response-error-color);
}

.sea-form .wpcf7-spinner {
    margin: 12px 0 0;
    position: static;
    transform: none;
}

.sea-form input[type="submit"],
.sea-form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: var(--sea-form-submit-min-width);
    min-height: 56px;
    padding: 0 20px;
    border: 1px solid var(--sea-form-submit-border);
    border-radius: 0;
    background: var(--sea-form-submit-bg);
    color: var(--sea-form-submit-color);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.sea-form input[type="submit"]:hover:not(:disabled),
.sea-form button[type="submit"]:hover:not(:disabled) {
    opacity: 1;
    border-color: var(--sea-form-submit-border);
    filter: brightness(1.05);
}

.sea-form input[type="submit"]:disabled,
.sea-form button[type="submit"]:disabled {
    opacity: 0.55;
    cursor: wait;
}

.sea-form__title {
    margin: 0 0 24px;
    font-family: var(--sea-form-title-font-family);
    font-size: var(--sea-form-title-font-size);
    font-weight: var(--sea-form-title-font-weight);
    line-height: var(--sea-form-title-line-height);
    letter-spacing: var(--sea-form-title-letter-spacing);
    text-transform: var(--sea-form-title-text-transform);
    color: var(--sea-form-label-color);
}

.sea-form--contact .sea-form__title {
    margin-bottom: 40px;
}

.sea-form__group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.sea-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}

.sea-form__actions {
    display: flex;
    align-items: center;
}

.sea-form__label-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sea-form__label-icon {
    position: relative;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Ccircle cx='8' cy='8' r='6.5' stroke='%23003055'/%3E%3Cpath d='M8 7V11' stroke='%23003055' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='4.75' r='0.75' fill='%23003055'/%3E%3C/svg%3E") no-repeat center / 16px 16px;
}

.sea-form__input-shell {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--sea-form-border-color);
    border-radius: 8px;
    background: var(--sea-form-field-bg);
    box-sizing: border-box;
}

.sea-form__input-shell:focus-within {
    border-color: var(--sea-form-focus-color);
    box-shadow: 0 0 0 1px rgba(136, 215, 159, 0.22);
}

.sea-form__phone {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.sea-form__phone .wpcf7-form-control-wrap {
    width: auto;
}

.sea-form__phone-number .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.sea-form__phone-code {
    flex: 0 0 auto;
}

.sea-form__phone-code select {
    width: auto;
    height: auto;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 34px;
    border: 0;
    box-shadow: none !important;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%2388D79F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 14px 8px;
    color: #003055;
    appearance: none;
}

.sea-form__phone-code select:focus {
    border: 0;
    box-shadow: none !important;
}

.sea-form__phone-code select option {
    color: #003055;
}

.sea-form__phone-number {
    flex: 1 1 auto;
}

.sea-form__phone-number input:not(.sea-form__phone-intl) {
    width: 100%;
    height: auto;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.sea-form__phone-number input:not(.sea-form__phone-intl):focus {
    border: 0 !important;
    box-shadow: none !important;
}

.sea-form .iti {
    width: 100%;
}

.sea-form .iti input.iti__tel-input {
    width: 100%;
}

.sea-form--contact .iti {
    --iti-border-color: rgba(34, 92, 129, 0.18);
    --iti-hover-color: rgba(0, 48, 85, 0.06);
    --iti-dropdown-bg: #fff;
    --iti-icon-color: #003055;
}

.sea-form--contact .iti input.iti__tel-input {
    color: #225C81;
    padding-right: 16px;
}

.sea-form--contact .iti__selected-country {
    color: #003055;
}

.sea-form--contact .iti__selected-country-primary {
    padding-left: 16px;
    padding-right: 8px;
}

.sea-form--contact .iti__selected-country-primary:hover,
.sea-form--contact .iti__selected-country:has(+ .iti__dropdown-content:hover) .iti__selected-country-primary {
    background: transparent;
}

.sea-form--contact .iti__arrow {
    border-top-color: #88D79F;
}

.sea-form--contact .iti__arrow--up {
    border-bottom-color: #88D79F;
}

.sea-form--contact .iti__dropdown-content {
    border-radius: 12px;
    border-color: rgba(34, 92, 129, 0.18);
    box-shadow: 0 12px 30px rgba(0, 48, 85, 0.12);
}

.sea-form--contact .iti--inline-dropdown {
    width: 100%;
}

.sea-form--contact .iti--separate-dial-code,
.sea-form--contact .iti--allow-dropdown {
    width: 100%;
}

.sea-form--contact input.iti__search-input {
    height: 42px;
    border-radius: 0;
    padding-left: 32px !important;
    padding-right: 36px !important;
}

.sea-form--contact .iti__search-icon {
    left: 8px;
}

.sea-form--contact .iti__country {
    color: #003055;
}

.sea-form--contact .iti__country-name,
.sea-form--contact .iti__selected-dial-code,
.sea-form--contact .iti__dial-code {
    font-size: 14px;
}

.sea-form .wpcf7-radio {
    display: flex;
    gap: 16px;
}

.sea-form .wpcf7-radio .wpcf7-list-item {
    margin: 0;
}

.sea-form .wpcf7-radio .wpcf7-list-item label {
    display: inline-flex;
    align-items: center;
    margin: 0;
    cursor: pointer;
}

.sea-form .wpcf7-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sea-form .wpcf7-radio .wpcf7-list-item-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border: 1px solid var(--sea-form-choice-border);
    border-radius: 8px;
    background: var(--sea-form-choice-bg);
    color: var(--sea-form-choice-color);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.02em;
    text-align: center;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sea-form--contact .wpcf7-radio .wpcf7-list-item-label {
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: normal;
}

.sea-form .wpcf7-radio input[type="radio"]:checked + .wpcf7-list-item-label {
    border-color: var(--sea-form-choice-selected-border);
    background: var(--sea-form-choice-selected-bg);
    color: var(--sea-form-choice-selected-color);
}

@media (max-width: 781px) {
    .sea-form__grid {
        grid-template-columns: 1fr;
    }
}
