/* ═══════════════════════════════════════════════════
   Boeki Contact Form — Styles
   Hérite des conventions du thème Boeki :
   - Primary : #D2411C
   - Dark Brown : #531C10
   - Light Pink : #FAECE9
   - Light Cream : #fdf8f7
   - Text : #525251
   - Fonts : Expose-*, RobotoCondensed-*
   - Border-radius : 4px
   - CTA : uppercase, RobotoCondensed-bold, 16px
   ═══════════════════════════════════════════════════ */

/* ─── Body background when form is present ─── */
body.bcf-form-page {
    background-color: #fdf8f7 !important;
}

/* ─── Wrapper ─── */
.bcf-wrapper {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    font-family: 'RobotoCondensed-regular', Arial, Helvetica, sans-serif;
    color: #525251;
    position: relative;
}
/* ─── Progress Bar ─── */
.bcf-progress {
    margin-bottom: 45px;
}

.bcf-progress-bar {
    width: 100%;
    height: 4px;
    background: #FAECE9;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 18px;
}

.bcf-progress-fill {
    height: 100%;
    background: #D2411C;
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

.bcf-progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.bcf-progress-step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #FAECE9;
    color: #D2411C;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'RobotoCondensed-bold', Arial, Helvetica, sans-serif;
    font-size: 14px;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.bcf-progress-step.active {
    background: #D2411C;
    color: #fff;
    transform: scale(1.1);
}

.bcf-progress-step.done {
    background: #D2411C;
    color: #fff;
}

.bcf-progress-labels {
    display: flex;
    justify-content: space-between;
}

.bcf-progress-label {
    font-family: 'RobotoCondensed-regular', Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #525251;
    opacity: 0.5;
    text-align: center;
    width: 32px;
    transition: opacity 0.3s ease;
}

.bcf-progress-label.active {
    opacity: 1;
    color: #D2411C;
    font-family: 'RobotoCondensed-bold', Arial, Helvetica, sans-serif;
}

/* ─── Steps ─── */
.bcf-steps-container {
    position: relative;
    overflow: hidden;
}

.bcf-step {
    display: none;
    opacity: 0;
    transform: translateX(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.bcf-step.active {
    display: block;
    opacity: 1;
}

/* ─── Typography ─── */
.bcf-step-title {
    font-family: 'Expose-bold', Arial, Helvetica, sans-serif;
    font-size: 28px;
    line-height: 36px;
    color: #531C10;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.bcf-step-subtitle {
    font-family: 'RobotoCondensed-regular', Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #525251;
    margin: 0 0 30px;
}

/* ─── Fields ─── */
.bcf-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.bcf-field--full {
    grid-column: 1 / -1;
}

.bcf-field label {
    display: block;
    font-family: 'RobotoCondensed-bold', Arial, Helvetica, sans-serif;
    font-size: 16px;
    color: #531C10;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.bcf-required {
    color: #D2411C;
}

.bcf-hint {
    font-family: 'RobotoCondensed-regular', Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #525251;
    text-transform: none;
    font-weight: normal;
}

/* ─── Titres de questions mis en avant ─── */
.bcf-question-title {
    display: block;
    font-family: 'Expose-bold', Arial, Helvetica, sans-serif;
    font-size: 18px;
    color: #531C10;
    margin-bottom: 12px;
    text-transform: none;
    letter-spacing: 0;
    padding-bottom: 8px;
    /* border-bottom: 2px solid #FAECE9; */
}

.bcf-field input[type="text"],
.bcf-field input[type="email"],
.bcf-field input[type="tel"],
.bcf-field select {
    width: 100%;
    height: 54px;
    padding: 0 16px;
    border: 2px solid #FAECE9;
    border-radius: 4px;
    background: #fff;
    font-family: 'RobotoCondensed-regular', Arial, Helvetica, sans-serif;
    font-size: 16px;
    color: #531C10;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.bcf-field textarea {
    width: 100%;
    height: auto;
    min-height: 120px;
    padding: 14px 16px;
    border: 2px solid #FAECE9;
    border-radius: 4px;
    background: #fff;
    font-family: 'RobotoCondensed-regular', Arial, Helvetica, sans-serif;
    font-size: 16px;
    color: #531C10;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    box-sizing: border-box;
    resize: vertical;
}

.bcf-field input::placeholder,
.bcf-field textarea::placeholder {
    color: #531C10;
    opacity: 0.4;
}

.bcf-field input:focus,
.bcf-field select:focus,
.bcf-field textarea:focus {
    border-color: #D2411C;
    box-shadow: 0 0 0 3px rgba(210, 65, 28, 0.1);
}

/* ─── Agence Cards ─── */
.bcf-agence-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 10px;
}

.bcf-agence-card {
    cursor: pointer;
}

.bcf-agence-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bcf-agence-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 30px 20px;
    background: #fdf8f7;
    border: 2px solid #FAECE9;
    border-radius: 4px;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
    text-align: center;
    height: 140px
}

.bcf-agence-card-inner svg {
    color: #D2411C;
    transition: transform 0.3s ease;
}

.bcf-agence-card-inner strong {
    font-family: 'RobotoCondensed-bold', Arial, Helvetica, sans-serif;
    font-size: 16px;
    color: #531C10;
    text-transform: uppercase;
}

.bcf-agence-card:hover .bcf-agence-card-inner {
    border-color: #D2411C;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(210, 65, 28, 0.1);
}

.bcf-agence-card.selected .bcf-agence-card-inner,
.bcf-agence-card input:checked + .bcf-agence-card-inner {
    border-color: #D2411C;
    background: #FAECE9;
    box-shadow: 0 4px 16px rgba(210, 65, 28, 0.15);
}

.bcf-agence-card.selected .bcf-agence-card-inner svg,
.bcf-agence-card input:checked + .bcf-agence-card-inner svg {
    transform: scale(1.15);
}

/* ─── Radio / Checkbox Cards ─── */
.bcf-radio-group,
.bcf-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bcf-radio-group--vertical {
    flex-direction: column;
}

.bcf-radio-card,
.bcf-checkbox-card {
    cursor: pointer;
    position: relative;
}

.bcf-radio-card input,
.bcf-checkbox-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bcf-radio-card span,
.bcf-checkbox-card span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: #fdf8f7;
    border: 2px solid #FAECE9;
    border-radius: 4px;
    font-family: 'RobotoCondensed-regular', Arial, Helvetica, sans-serif;
    font-size: 15px;
    color: #531C10;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.2s ease;
    user-select: none;
}

/* ─── Indicateurs visuels Radio (cercle) ─── */
.bcf-radio-card span::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid #FAECE9;
    border-radius: 50%;
    background: #fff;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.bcf-radio-card:hover span::before {
    border-color: #D2411C;
}

.bcf-radio-card input:checked + span::before {
    border-color: #D2411C;
    background: #D2411C;
    box-shadow: inset 0 0 0 3px #fff;
}

/* ─── Indicateurs visuels Checkbox (carré avec coche) ─── */
.bcf-checkbox-card span::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid #FAECE9;
    border-radius: 3px;
    background: #fff;
    transition: border-color 0.3s ease, background 0.3s ease;
    position: relative;
}

.bcf-checkbox-card:hover span::before {
    border-color: #D2411C;
}

.bcf-checkbox-card input:checked + span::before {
    border-color: #D2411C;
    background: #D2411C;
}

.bcf-checkbox-card input:checked + span::after {
    content: '';
    position: absolute;
    left: 31px;
    top: 48%;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: translateY(-55%) rotate(45deg);
}

.bcf-radio-card:hover span,
.bcf-checkbox-card:hover span {
    border-color: #D2411C;
    /* transform: translateY(-2px); */
}

.bcf-radio-card.selected span,
.bcf-radio-card input:checked + span,
.bcf-checkbox-card.selected span,
.bcf-checkbox-card input:checked + span {
    border-color: #D2411C;
    background: #FAECE9;
    color: #D2411C;
    font-family: 'RobotoCondensed-bold', Arial, Helvetica, sans-serif;
}

/* ─── Upload Zone ─── */
.bcf-upload-zone {
    border: 2px dashed #FAECE9;
    border-radius: 4px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease;
    background: #fdf8f7;
}

.bcf-upload-zone:hover,
.bcf-upload-zone.bcf-drag-over {
    border-color: #D2411C;
    background: #FAECE9;
}

.bcf-upload-placeholder svg {
    color: #D2411C;
    margin-bottom: 12px;
    opacity: 0.6;
}

.bcf-upload-placeholder p {
    font-family: 'RobotoCondensed-regular', Arial, Helvetica, sans-serif;
    font-size: 16px;
    color: #525251;
    margin: 0 0 6px;
}

.bcf-upload-browse {
    color: #D2411C;
    font-family: 'RobotoCondensed-bold', Arial, Helvetica, sans-serif;
    text-decoration: underline;
}

.bcf-upload-placeholder small {
    font-family: 'RobotoCondensed-regular', Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #525251;
    opacity: 0.6;
}

/* ─── Photo Previews ─── */
.bcf-previews {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.bcf-preview-item {
    position: relative;
    width: 140px;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid #FAECE9;
    background: #fdf8f7;
    animation: bcfFadeIn 0.35s ease;
}

.bcf-preview-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}

.bcf-preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #D2411C;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    padding: 0;
    transition: transform 0.2s ease;
    font-family: Arial, Helvetica, sans-serif;
}

.bcf-preview-remove:hover {
    transform: scale(1.15);
}

.bcf-preview-name {
    display: block;
    padding: 6px 8px;
    font-family: 'RobotoCondensed-regular', Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #525251;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─── Navigation Buttons ─── */
.bcf-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #FAECE9;
}

.bcf-btn {
    padding: 17.5px 48px;
    text-transform: uppercase;
    font-family: 'RobotoCondensed-bold', Arial, Helvetica, sans-serif;
    font-size: 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    outline: none;
}

.bcf-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(210, 65, 28, 0.2);
}

.bcf-btn:active {
    transform: translateY(-1px);
}

.bcf-btn-next,
.bcf-btn-submit {
    background: #D2411C;
    color: #fff;
}

.bcf-btn-prev {
    background: #fdf8f7;
    color: #531C10;
    border: 2px solid #FAECE9;
}

.bcf-btn-prev:hover {
    background: #FAECE9;
    box-shadow: 0 4px 12px rgba(83, 28, 16, 0.08);
}

.bcf-btn--loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ─── Error Messages ─── */
.bcf-step-error {
    margin-top: 15px;
    padding: 12px 18px;
    background: #FAECE9;
    border-left: 3px solid #D2411C;
    border-radius: 0 4px 4px 0;
    font-family: 'RobotoCondensed-regular', Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #D2411C;
    animation: bcfSlideDown 0.3s ease;
}

/* ─── Success Screen ─── */
.bcf-success {
    text-align: center;
    padding: 60px 20px;
}

.bcf-success-inner {
    animation: bcfFadeIn 0.6s ease;
}

.bcf-success-inner svg {
    margin-bottom: 20px;
}

.bcf-success .bcf-step-title {
    color: #D2411C;
}

.bcf-success .bcf-step-subtitle {
    max-width: 400px;
    margin: 8px auto 0;
}

/* ─── Animations ─── */
@keyframes bcfFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bcfSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bcf-fade-in {
    animation: bcfFadeIn 0.6s ease;
}

/* ─── Responsive ─── */
@media screen and (max-width: 767px) {
    .bcf-wrapper {
        padding: 25px 15px 40px;
    }

    .bcf-step-title {
        font-size: 22px;
        line-height: 30px;
    }

    .bcf-agence-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .bcf-agence-card-inner {
        flex-direction: row;
        padding: 20px;
    }

    .bcf-fields-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .bcf-btn {
        padding: 15px 30px;
        font-size: 14px;
    }

    .bcf-radio-group,
    .bcf-checkbox-group {
        gap: 8px;
    }

    .bcf-radio-card span,
    .bcf-checkbox-card span {
        padding: 10px 16px;
        font-size: 14px;
    }

    .bcf-progress-labels {
        display: none;
    }

    .bcf-preview-item {
        width: calc(50% - 8px);
    }

    .bcf-upload-zone {
        padding: 25px 15px;
    }
}

@media screen and (max-width: 480px) {
    .bcf-previews {
        gap: 10px;
    }

    .bcf-preview-item {
        width: 100%;
    }

    .bcf-nav {
        flex-direction: column-reverse;
        gap: 12px;
    }

    .bcf-btn {
        width: 100%;
        text-align: center;
    }
}

/* ─── Loading Spinner ─── */
.bcf-btn--loading {
    position: relative;
    pointer-events: none;
    color: transparent !important;
}

.bcf-btn--loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bcf-spin 0.8s linear infinite;
}

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