/* ============================
   Style global wizard TBP
   ============================ */

.tbp-repair-wizard {
    max-width: 760px;
    margin: 30px auto;
    padding: 24px 22px 28px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 14px 45px rgba(0, 0, 0, 0.06);
    border: 1px solid #edf1ff;
    font-family: inherit;
}

/* Petits messages au-dessus du form */
.tbp-repair-errors,
.tbp-repair-info {
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.tbp-repair-errors {
    border: 1px solid #ffb3c1;
    background: #fff5f7;
    color: #9b1031;
}

.tbp-repair-errors ul {
    margin: 0;
    padding-left: 18px;
}

.tbp-repair-info {
    border: 1px solid #b3d4ff;
    background: #f4f7ff;
    color: #123067;
}

/* ============================
   Barre de progression (option)
   ============================ */

.tbp-repair-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    position: relative;
}

.tbp-repair-progress::before {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    top: 50%;
    height: 3px;
    background: #e4ebff;
    z-index: 0;
}

.tbp-repair-progress-step {
    position: relative;
    z-index: 1;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #ffffff;
    border: 2px solid #d6def7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e4bae;
}

.tbp-repair-progress-step.is-active {
    background: #1e4bae;
    border-color: #1e4bae;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(30, 75, 174, 0.18);
}

.tbp-repair-progress-step.is-completed {
    background: #e34fa5;
    border-color: #e34fa5;
    color: #ffffff;
}

/* ============================
   Étapes / titres
   ============================ */

.tbp-repair-step {
    margin-top: 6px;
}

.tbp-repair-step-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: #122449;
}

/* ============================
   Boutons “Retour” / “Continuer”
   ============================ */

.tbp-repair-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    border: 1px solid #d7ddf4;
    background: #f7f8ff;
    font-size: 0.9rem;
    cursor: pointer;
    color: #273461;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}

.tbp-repair-back-btn:hover {
    background: #edf0ff;
    border-color: #c6cff3;
    transform: translateY(-1px);
}

.tbp-repair-next-btn,
.tbp-repair-form button[type="submit"].tbp-repair-next-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #1e4bae, #e34fa5);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.12s ease, filter 0.12s ease;
    box-shadow: 0 10px 25px rgba(30, 75, 174, 0.25);
}

.tbp-repair-next-btn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(30, 75, 174, 0.3);
}

/* ============================
   Cartes cliquables (étapes 1 & 2)
   ============================ */

.tbp-choice-grid {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

/* Masque le bouton radio natif */
.tbp-choice-button input[type="radio"] {
    display: none !important;
}

.tbp-choice-button {
    position: relative;
    flex: 1 1 48%;
    min-width: 220px;
    padding: 22px 20px;
    border-radius: 16px;
    border: 1px solid #d6def7;
    background: #f9faff;
    cursor: pointer;
    /* centrage contenu */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    transition: box-shadow 0.18s ease, transform 0.08s ease, border-color 0.18s ease, background 0.18s ease;
}

.tbp-choice-button::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid transparent;
    pointer-events: none;
}

.tbp-choice-button:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
    background: #f4f7ff;
    border-color: #c5cff2;
    transform: translateY(-1px);
}

.tbp-choice-button.selected {
    background: #ffffff;
    border-color: #1e4bae;
    box-shadow: 0 12px 30px rgba(30, 75, 174, 0.18);
}

.tbp-choice-button.selected::after {
    border-color: rgba(227, 79, 165, 0.9);
}

/* bloc textes dans la carte */
.tbp-choice-button-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.tbp-choice-button-label {
    display: block;
    font-weight: 700;
    margin-bottom: 3px;
    color: #1c2650;
    font-size: 1.05rem;
}

.tbp-choice-button-desc {
    font-size: 0.92rem;
    color: #4a5274;
}

/* ============================
   Icônes petit / gros électroménager (étapes 1 & 2)
   ============================ */

/* Pastille icône circulaire */
.tbp-choice-icon {
    width: 120px;
    height: 120px;
    border-radius: 999px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 3px solid #e34fa5;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    background-size: 75%;
    background-position: center;
    background-repeat: no-repeat;
}

/* Étape 1 : petit / gros électroménager */
.tbp-choice-icon--petit {
    background-image: url('../icons/icon-petit-electro.png');
}

.tbp-choice-icon--gros {
    background-image: url('../icons/icon-gros-electro.png');
}

/* Étape 2 : dépôt / domicile gros électroménager */
.tbp-choice-icon--gros-depot {
    background-image: url('../icons/icon-gros-electro-depot.png');
}

.tbp-choice-icon--gros-domicile {
    background-image: url('../icons/icon-gros-electro-domicile.png');
}

/* Option : quand la carte est sélectionnée, renforcer l’icône */
.tbp-choice-button.selected .tbp-choice-icon {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

/* ============================
   Formulaire texte (étape 4)
   ============================ */

.tbp-repair-form p {
    margin-bottom: 13px;
}

.tbp-repair-form label {
    display: inline-block;
    font-weight: 600;
    margin-bottom: 4px;
    color: #192647;
    font-size: 0.92rem;
}

.tbp-repair-form input[type="text"],
.tbp-repair-form input[type="email"],
.tbp-repair-form input[type="tel"],
.tbp-repair-form textarea,
.tbp-repair-form select {
    width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
    border: 1px solid #d6def7;
    padding: 8px 10px;
    font-size: 0.95rem;
    background: #fdfdff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.tbp-repair-form textarea {
    resize: vertical;
    min-height: 100px;
}

.tbp-repair-form input[type="text"]:focus,
.tbp-repair-form input[type="email"]:focus,
.tbp-repair-form input[type="tel"]:focus,
.tbp-repair-form textarea:focus,
.tbp-repair-form select:focus {
    outline: none;
    border-color: #1e4bae;
    box-shadow: 0 0 0 2px rgba(30, 75, 174, 0.25);
    background: #ffffff;
}

/* ============================
   Calendrier (étape 3)
   ============================ */

.tbp-repair-calendar-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    margin-top: 14px;
}

.tbp-cal-container {
    flex: 1 1 320px;
    max-width: 380px;
    border-radius: 18px;
    padding: 14px 14px 16px;
    box-sizing: border-box;
    border: 1px solid #dfe6ff;
    background: radial-gradient(circle at top left, #f2f6ff 0, #ffffff 60%);
}

.tbp-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.tbp-cal-month-label {
    font-weight: 700;
    text-transform: capitalize;
    color: #1e2a4e;
    font-size: 0.98rem;
}

.tbp-cal-nav {
    border: none;
    background: #f1f3ff;
    border-radius: 999px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.08s ease;
}

.tbp-cal-nav:hover {
    background: #e0e4ff;
    transform: translateY(-1px);
}

.tbp-cal-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 0.86rem;
}

.tbp-cal-table th {
    padding: 4px 0;
    font-weight: 600;
    color: #70779b;
}

.tbp-cal-table td {
    padding: 3px 0;
    height: 38px;
}

.tbp-cal-day {
    width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: transparent;
    transition: background 0.15s ease, color 0.15s ease, transform 0.08s ease;
    font-size: 0.9rem;
}

.tbp-cal-day:hover {
    background: #e4edff;
    transform: translateY(-1px);
}

.tbp-cal-day-disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.tbp-cal-day-disabled:hover {
    background: transparent;
    transform: none;
}

.tbp-cal-day-selected {
    background: #1e4bae;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 0 0 3px rgba(30, 75, 174, 0.2);
}

.tbp-cal-legend {
    display: block;
    margin-top: 8px;
    font-size: 0.76rem;
    color: #757da6;
}

/* ============================
   Créneaux horaires
   ============================ */

.tbp-slots-container {
    flex: 1 1 260px;
    max-width: 340px;
}

.tbp-slots-title {
    font-weight: 700;
    margin-bottom: 4px;
    color: #1c2650;
}

.tbp-slots-subtitle {
    font-size: 0.84rem;
    color: #787fa5;
    margin-bottom: 10px;
}

.tbp-slots-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tbp-slot-btn {
    flex: 1 1 46%;
    min-width: 120px;
    padding: 7px 8px;
    border-radius: 999px;
    border: 1px solid #d7def3;
    background: #ffffff;
    cursor: pointer;
    font-size: 0.9rem;
    text-align: center;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.08s ease, box-shadow 0.12s ease, color 0.12s ease;
    color: #262f59;
}

.tbp-slot-btn:hover:not(.is-disabled) {
    background: #f2f5ff;
    border-color: #c7cff4;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.tbp-slot-btn.is-selected {
    border-color: #e34fa5;
    background: linear-gradient(135deg, #e34fa5, #1e4bae);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 10px 26px rgba(227, 79, 165, 0.35);
}

.tbp-slot-btn.is-disabled {
    cursor: not-allowed;
    opacity: 0.45;
    background: #f2f3f7;
    border-style: dashed;
    border-color: #c0c4d8;
    box-shadow: none;
}

/* ============================
   Responsive
   ============================ */

@media (max-width: 768px) {
    .tbp-repair-wizard {
        margin: 18px auto;
        padding: 18px 14px 22px;
        border-radius: 14px;
    }

    .tbp-choice-button {
        flex: 1 1 100%;
    }

    .tbp-repair-calendar-layout {
        flex-direction: column;
    }

    .tbp-cal-container,
    .tbp-slots-container {
        max-width: 100%;
    }
}
/* ===== Bouton Réparation – Menu ===== */
.tbp-menu-repair {
    display: inline-flex;
    align-items: center;

    padding: 8px 16px;
    border-radius: 999px;

    background: linear-gradient(135deg, #1e4bae 0%, #e34fa5 100%);
    color: #ffffff !important;

    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    line-height: 1; /* important */

    box-shadow: 0 6px 16px rgba(30, 75, 174, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tbp-menu-repair:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(30, 75, 174, 0.35);
}

/* ===== Icône clé ===== */
.tbp-menu-repair-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 26px;          /* ⬅️ un peu plus large */
    height: 26px;

    margin-right: 8px;
    color: #ffffff;

    flex-shrink: 0;
    line-height: 0;       /* 🔑 empêche tout décalage */
}

/* SVG clé */
.tbp-menu-repair-icon svg {
    width: 20px;
    height: 20px;

    display: block;
    overflow: visible;    /* 🔑 empêche toute coupe */
    fill: currentColor;
}

/* Texte */
.tbp-menu-repair-text {
    white-space: nowrap;
}

/* ===== Mobile : icône seule ===== */
@media (max-width: 768px) {
    .tbp-menu-repair {
        padding: 8px 12px;
    }

    .tbp-menu-repair-icon {
        margin-right: 0;
    }

    .tbp-menu-repair-text {
        display: none;
    }
}
