/**
 * LEB Forms — Styles frontend pour les colonnes CF7
 * Ajouté automatiquement quand CF7 est actif
 */

.leb-row {
    display: flex;
    gap: 16px;
    margin-bottom: 1em;
}

.leb-col {
    flex: 1;
    min-width: 0;
}

/* Alignement : quand une row contient un label quelque part,
   les colonnes sans label reçoivent un padding-top pour compenser */
.leb-row:has(.leb-col > label) .leb-col > .wpcf7-form-control-wrap:first-child {
    padding-top: calc(14px * 1.5 + 6px);
}

.leb-col[data-width="30"] { flex: 0 0 calc(30% - 8px); max-width: calc(30% - 8px); }
.leb-col[data-width="40"] { flex: 0 0 calc(40% - 8px); max-width: calc(40% - 8px); }
.leb-col[data-width="50"] { flex: 0 0 calc(50% - 8px); max-width: calc(50% - 8px); }
.leb-col[data-width="60"] { flex: 0 0 calc(60% - 8px); max-width: calc(60% - 8px); }
.leb-col[data-width="70"] { flex: 0 0 calc(70% - 8px); max-width: calc(70% - 8px); }
.leb-col[data-width="100"] { flex: 1 1 100%; max-width: 100%; }

.leb-col label,
.leb-col input,
.leb-col textarea,
.leb-col select {
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .leb-row {
        flex-direction: column;
    }

    .leb-col[data-width="30"],
    .leb-col[data-width="40"],
    .leb-col[data-width="50"],
    .leb-col[data-width="60"],
    .leb-col[data-width="70"] {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }
}

/* =============================================
   Multi-step
   ============================================= */

.leb-steps-progress {
    margin-bottom: 2em;
}

.leb-steps-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 12px;
}

.leb-steps-fill {
    height: 100%;
    background: #2563eb;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.leb-steps-labels {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.leb-steps-label {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 500;
    transition: color 0.2s;
}

.leb-steps-label.active {
    color: #2563eb;
    font-weight: 600;
}

.leb-steps-label.done {
    color: #374151;
}

.leb-steps-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5em;
    gap: 12px;
}

.leb-steps-prev,
.leb-steps-next {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.leb-steps-prev {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.leb-steps-prev:hover {
    background: #e5e7eb;
}

.leb-steps-next {
    background: #2563eb;
    color: #fff;
    border: none;
    margin-left: auto;
}

.leb-steps-next:hover {
    background: #1d4ed8;
}

.leb-steps-prev:active,
.leb-steps-next:active {
    transform: scale(0.98);
}

.leb-step-error {
    display: block;
    font-size: 13px;
    color: #ef4444;
    margin-top: 4px;
}
