/* =========================================================
   TNHA DPS Manager - Formulaire public
   ========================================================= */

.tnha-dps-formulaire {
    max-width: 900px;
    margin: 0 auto;
}

.tnha-dps-formulaire h2 {
    margin-bottom: 15px;
}

.tnha-dps-formulaire > p {
    margin-bottom: 35px;
}

/* Étapes */

.tnha-dps-etapes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 35px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
}

.tnha-dps-etapes span {
    padding: 8px 12px;
    border-radius: 5px;
    background: #e5e5e5;
    color: #555;
    font-size: 14px;
}

.tnha-dps-etapes span.active {
    background: #1e73be;
    color: #fff;
    font-weight: 600;
}

/* Bloc d'étape */

.tnha-dps-etape {
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.tnha-dps-etape h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 24px;
}

.tnha-dps-introduction {
    margin-bottom: 30px;
    color: #555;
}

/* Champs */

.tnha-dps-champ {
    margin-bottom: 22px;
}

.tnha-dps-champ label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
}

.tnha-dps-champ label span {
    color: #c00;
}

.tnha-dps-champ input,
.tnha-dps-champ select,
.tnha-dps-champ textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #bbb;
    border-radius: 5px;
    background: #fff;
    font-size: 16px;
}

.tnha-dps-champ input:focus,
.tnha-dps-champ select:focus,
.tnha-dps-champ textarea:focus {
    outline: none;
    border-color: #1e73be;
    box-shadow: 0 0 0 2px rgba(30, 115, 190, 0.12);
}

.tnha-dps-champ textarea {
    min-height: 100px;
    resize: vertical;
}

.tnha-dps-champ small {
    display: block;
    margin-top: 6px;
    color: #666;
}

/* Deux champs côte à côte */

.tnha-dps-ligne {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

/* Navigation */

.tnha-dps-navigation {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.tnha-dps-navigation .tnha-dps-precedent {
    background: #777;
}

.tnha-dps-navigation .tnha-dps-precedent:hover {
    background: #555;
}
.tnha-dps-bouton {
    display: inline-block;
    padding: 12px 28px;
    border: 0;
    border-radius: 5px;
    background: #1e73be;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.tnha-dps-bouton:hover {
    background: #155a91;
}

/* Téléphone */

@media (max-width: 700px) {

    .tnha-dps-formulaire {
        width: 100%;
    }

    .tnha-dps-etapes {
        flex-direction: column;
    }

    .tnha-dps-etapes span {
        width: 100%;
        box-sizing: border-box;
    }

    .tnha-dps-etape {
        padding: 20px;
    }

    .tnha-dps-ligne {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .tnha-dps-navigation {
        justify-content: stretch;
    }

    .tnha-dps-bouton {
        width: 100%;
    }
/* =========================================================
   Conditions - case à cocher
   ========================================================= */

.tnha-dps-conditions label {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    cursor: pointer;
}

.tnha-dps-conditions input[type="checkbox"] {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    margin: 2px 0 0 0 !important;
    padding: 0 !important;
    flex: 0 0 18px !important;
}

.tnha-dps-conditions .tnha-dps-conditions-texte {
    display: block !important;
    flex: 1 !important;
    color: inherit !important;
    font-weight: 600;
    line-height: 1.5;
}

.tnha-dps-conditions .tnha-dps-conditions-texte strong {
    color: #c00;
}
}
}