.booa-form-multistep {
    position: relative;
    width: 100%;
}

.booa-multistep-progress {
    width: calc(100% - 103px);
    position: absolute;
    bottom: 28px;
    left: 58px;
    right: 45px;
}

.booa-progress-dots {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
}

.booa-progress-dot {
    height: 5px;
    flex: 1;
    background-color: #E6E6E6;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 10px;
    min-width: 40px;
}

.booa-progress-dot.active {
    background-color: #E2DF8F;
}

.booa-progress-dot.completed {
    background-color: #E2DF8F;
}

.booa-form-step {
    height: 100%;
    min-height: 650px;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.booa-step-content {
    height: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}


.booa-hero-step {
    height: 100%;
    text-align: center;
    display: grid;
    align-items: center;
    justify-content: center;
}

.booa-step-title {
    font-size: 1.75rem;
    font-weight: 400;
    color: #675D5B;
    text-align: center;
    margin-bottom: 50px;
}

.booa-hero-step:has(.booa-hero-image) {
    flex: 1;
    grid-template-columns: 1fr 1fr;
    text-align: left;
}

.booa-hero-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.booa-hero-image img {
    width: 100%;
    height: 100%;
    border-radius: 10px 0px 0px 10px;
    object-fit: cover;
}

.booa-hero-step .section-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #999;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.booa-text-side {
    padding-left: 14%;
    max-width: calc(500px + 14%);
    text-align: left;
}

.booa-form-multistep .booa-form-field-wrapper {
  position: relative;
  z-index: 10;
}

.booa-form-multistep .booa-form-field-wrapper[data-name="postal_code"] {
  z-index: 100;
}


.booa-form-multistep .booa-form-field-wrapper {
    display: flex;
    flex-direction: column;
}

.booa-form-multistep .booa-form-field-wrapper[data-name="postal_code"] + .booa-form-field-wrapper[data-name="terrain"] {
    margin-top: 70px;
}

.booa-form-multistep .radio-field-label {
    display: none;
}

.booa-form-multistep .radio-options-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 26px 20px;
}

.booa-form-multistep .radio-options-wrapper .booa-form-label {
    margin-bottom: 0;
}

.booa-form-multistep .radio-options-wrapper input[type="radio"] {
    margin-right: 0.75rem;
    width: 20px;
    height: 20px;
    min-width: 20px;
}

.booa-form-multistep .radio-options-wrapper label:hover {
    border-color: #E2DF8F;
    background: #FFFEFC;
}

.booa-form-multistep .checkbox-field label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.booa-form-multistep .booa-form-error {
    box-shadow: unset;
}

.booa-form-multistep .booa-form-field-wrapper.has-error label {
    color: initial;
}

.booa-form-multistep .checkbox-field input[type="checkbox"] {
    margin: 0;
    appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid #C1BCB5;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transition: all 0.25s ease;
}

.booa-form-multistep .checkbox-field input[type="checkbox"]:checked {
    background-color: #E2DF8F;
    border-color: #E2DF8F;
}

.booa-form-multistep .checkbox-field input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 6px;
    border: solid #675D5B;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
}

.booa-form-multistep .checkbox-field span {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.booa-step-navigation {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0 45px 60px 45px;
    position: absolute;
    bottom: 0;
    border-top: none;
}

.booa-button-back,
.booa-button-next,
.booa-button-submit {
    height: 63px;
    padding: 23px 26px;
    font-size: 20px;
    border: 1px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.booa-button-next {
    background-color: transparent;
    border-color: #675D5B;
    color: #675D5B;
}

.booa-button-next:hover {
    background-color: #E2DF8F;
    border-color: #E2DF8F;
    color: #675D5B;
}

.booa-button-next::after {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 10.928 10.459'%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Cpath fill='%23675D5B' d='M0 10.928h10.459V0H0Z' data-name='Tracé 9'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg data-name='Groupe 10'%3E%3Cg clip-path='url(%23a)' data-name='Groupe 9' transform='rotate(-90 5.23 5.23)'%3E%3Cg data-name='Groupe 8'%3E%3Cpath fill='%23675D5B' d='M9.276 4.515 7.407 6.39q-.244.253-.508.538-.263.284-.526.588l-.512.584q-.249.285-.465.544l.54.087a22 22 0 0 0 .123-1.446q.022-.395.021-.747V0H4.371v6.542q0 .354.021.747c.021.393.033.517.054.764s.042.475.062.682l.555-.087q-.3-.345-.635-.735-.338-.39-.688-.787a10 10 0 0 0-.7-.736L1.168 4.515 0 5.7l5.222 5.229L10.459 5.7Z' data-name='Tracé 8'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E%0A");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    width: 11px;
    height: 11px;
    margin-left: 12px;
}

.booa-button-back {
    background-color: #F2EEE3;
    color: #675D5B;
}

.booa-button-back::before {
    content: '';
    margin-right: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 10.928 10.459'%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Cpath fill='%23675d5b' d='M0 10.928h10.459V0H0Z' data-name='Tracé 9'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg data-name='Groupe 10'%3E%3Cg clip-path='url(%23a)' data-name='Groupe 9' transform='rotate(90 5.23 5.23)'%3E%3Cg data-name='Groupe 8'%3E%3Cpath fill='%23675d5b' d='M9.276 4.515 7.407 6.39q-.244.253-.508.538-.263.284-.526.588l-.512.584q-.249.285-.465.544l.54.087a22 22 0 0 0 .123-1.446q.022-.395.021-.747V0H4.371v6.542q0 .354.021.747c.021.393.033.517.054.764s.042.475.062.682l.555-.087q-.3-.345-.635-.735-.338-.39-.688-.787a10 10 0 0 0-.7-.736L1.168 4.515 0 5.7l5.222 5.229L10.459 5.7Z' data-name='Tracé 8'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E%0A");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    width: 11px;
    height: 11px;
}

.booa-button-start {
    background-color: #E2DF8F;
    border-color: #E2DF8F;
    color: #FFFEFC;
    transition: all 0.25s ease;
}

.booa-button-start:hover {
    color: #FFFEFC;
    scale: 1.05;
}

.booa-button-start::after {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 10.928 10.459'%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Cpath fill='%23FFFEFC' d='M0 10.928h10.459V0H0Z' data-name='Tracé 9'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg data-name='Groupe 10'%3E%3Cg clip-path='url(%23a)' data-name='Groupe 9' transform='rotate(-90 5.23 5.23)'%3E%3Cg data-name='Groupe 8'%3E%3Cpath fill='%23FFFEFC' d='M9.276 4.515 7.407 6.39q-.244.253-.508.538-.263.284-.526.588l-.512.584q-.249.285-.465.544l.54.087a22 22 0 0 0 .123-1.446q.022-.395.021-.747V0H4.371v6.542q0 .354.021.747c.021.393.033.517.054.764s.042.475.062.682l.555-.087q-.3-.345-.635-.735-.338-.39-.688-.787a10 10 0 0 0-.7-.736L1.168 4.515 0 5.7l5.222 5.229L10.459 5.7Z' data-name='Tracé 8'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E%0A");
}

.booa-button-back:hover {
    background-color: transparent;
    border-color: #675D5B;
    color: #675D5B;
}

.booa-button-submit {
    background-color: #E2DF8F;
    color: #675D5B;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transform-origin: left;
}

.booa-button-submit:hover {
    scale: 1.05;
}

.booa-button-next:disabled,
.booa-button-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.booa-step-navigation:has(.booa-button-next:only-child) {
    justify-content: center;
}

.booa-multistep-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border: 1px solid #f5c6cb;
    text-align: center;
    line-height: 1.5;
}

.booa-form-field-wrapper.has-error input,
.booa-form-field-wrapper.has-error textarea {
    border-color: #dc3545;
}

.booa-form-error {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.booa-button-submit.loading {
    position: relative;
    color: transparent;
}

.booa-button-submit.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FFFEFC;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.booa-form-multistep {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fefcf6;
    border: 1px solid #c1bcb5;
    border-radius: 10px;

    @media screen and (max-width: 767px) {
        height: auto;
    }
}

.booa-form-step[data-step="0"].active[data-step-id="hero"] ~ .booa-multistep-progress {
    display: none;
}

.booa-form-step[data-step="0"].active[data-step-id="hero"] .booa-step-navigation {
    display: none;
}

.booa-form-step .booa-step-content {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 160px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.booa-form-step .booa-step-content .booa-step-title, .booa-form-step .booa-step-content .booa-form-field-wrapper {
    grid-column: 1 / -1;
}

.booa-form-step[data-step-id="contact"] .booa-step-content .booa-form-field-wrapper[data-name="nom"],
.booa-form-step[data-step-id="contact"] .booa-step-content .booa-form-field-wrapper[data-name="prenom"],
.booa-form-step[data-step-id="contact"] .booa-step-content .booa-form-field-wrapper[data-name="email"],
.booa-form-step[data-step-id="contact"] .booa-step-content .booa-form-field-wrapper[data-name="telephone"] {
    grid-column: span 1;
}

.booa-form-multistep .booa-form-step:not(.active) {
    position: absolute;
    left: -9999px;
    visibility: hidden;
}

.booa-form-multistep .booa-form-step.active {
    position: relative;
    left: auto;
    visibility: visible;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
    animation: fadeIn 0.4s ease;
}

.booa-form-multistep .booa-form-step.active[data-step-id="hero"] {
   align-items: initial;
}

.booa-form-step.active .booa-form-field-wrapper,
.booa-form-step.active .radio-options-wrapper {
    animation: slideUp 0.4s ease forwards;
    opacity: 0;
}

.booa-form-step.active .booa-form-field-wrapper:nth-child(1),
.booa-form-step.active .radio-options-wrapper:nth-child(1) {
    animation-delay: 0.1s;
}

.booa-form-step.active .booa-form-field-wrapper:nth-child(2),
.booa-form-step.active .radio-options-wrapper:nth-child(2) {
    animation-delay: 0.15s;
}

.booa-form-step.active .booa-form-field-wrapper:nth-child(3),
.booa-form-step.active .radio-options-wrapper:nth-child(3) {
    animation-delay: 0.2s;
}

.booa-form-step.active .booa-form-field-wrapper:nth-child(4),
.booa-form-step.active .radio-options-wrapper:nth-child(4) {
    animation-delay: 0.25s;
}

.booa-form-step.active .booa-form-field-wrapper:nth-child(5),
.booa-form-step.active .radio-options-wrapper:nth-child(5) {
    animation-delay: 0.3s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 1199px) {
    .booa-hero-step:has(.booa-hero-image) {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .booa-step-navigation {
        padding: 0 16px 60px 16px;
    }
    
    .booa-multistep-progress {
        width: calc(100% - 48px);
        left: 16px;
        right: 16px;
    }

    .booa-button-back,
    .booa-button-next,
    .booa-button-submit {
        height: 36px;
        padding: 18px 22px;
        font-size: 15px;
    }

    .booa-form-step[data-step-id="contact"] .booa-step-content .booa-form-field-wrapper[data-name="nom"],
    .booa-form-step[data-step-id="contact"] .booa-step-content .booa-form-field-wrapper[data-name="prenom"],
    .booa-form-step[data-step-id="contact"] .booa-step-content .booa-form-field-wrapper[data-name="email"],
    .booa-form-step[data-step-id="contact"] .booa-step-content .booa-form-field-wrapper[data-name="telephone"] {
        grid-column: 1 / -1;
    }

    .booa-button-submit {
        position: relative;
        left: unset;
        transform: none;
    }

    .booa-text-side {
        padding: 0 16px;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .booa-hero-image {
        order: -1;
        align-items: start;
    }

    .booa-hero-image img {
        max-height: 320px;
    }

    .booa-hero-step .booa-text-side {
        max-width: 100%;
    }
}