@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    /* Variables CSS pour step2 */
    --sky-blu: #01A6C7;
    --turquoise: #01A6C7;
    --blue-gradient: #01A6C7;
    --blue-gradient-hover: #003B66;
    --light-blue: #e3f2fd;
    --dark-blue: #0056b3;
    --red: #d95053;
    --white: #ffffff;
    --light-gray: #f8f9fc;
    --border-radius: 12px;
    --shadow: 0 4px 20px rgba(1, 166, 199, 0.15);
    --shadow-hover: 0 8px 30px rgba(1, 166, 199, 0.25);
}

/* ===== STYLES POUR FORMULAIRES MODERNES - CHAMPS SUR MÊME LIGNE ===== */
.form-section {
    margin-bottom: 30px;
    width: 100%;
}

.form-section h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #01A6C7;
    text-align: center;
}

/* Centrer les titres h5 avec mt-50 et mb-50 */
h5.mt-50,
h5.mb-50 {
    text-align: center;
}

.form-row,
div.form-row {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
    flex-wrap: wrap;
    align-items: flex-start;
}

.form-row.double,
div.form-row.double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}

/* Règles générales pour modern-form-group */
.modern-form-group,
div.modern-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    box-sizing: border-box;
}

/* Règles spécifiques pour les champs simples (pleine largeur) */
.form-row.single>.modern-form-group,
.form-row:not(.double)>.modern-form-group {
    width: 100%;
}

/* Règles spécifiques pour les champs doubles (côte à côte) */
.form-row.double>.modern-form-group,
div.form-row.double>.modern-form-group,
.form-row.double>div.modern-form-group,
.form-row.double .modern-form-group {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Fix pour le dropdown qui ne doit pas affecter la largeur */
#krankenkasse-field .searchable-select-dropdown,
.modern-form-group .searchable-select-dropdown {
    position: absolute;
    width: auto;
    left: 0;
    right: 0;
}

.modern-form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 0.95rem;
    display: block;
}

.modern-form-control,
input.modern-form-control {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    width: 100%;
    box-sizing: border-box;
    display: block;
}

.modern-form-control:focus {
    outline: none;
    border-color: #01A6C7;
    box-shadow: 0 0 0 3px rgba(1, 166, 199, 0.1);
}

.modern-form-control::placeholder {
    color: #999;
}

.modern-form-control.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* ===== STYLES POUR CHAMP DE RECHERCHE KRANKENKASSE ===== */
.searchable-select-wrapper {
    position: relative;
    width: 100%;
}

.searchable-select-search {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M11.742€ 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    padding-right: 45px;
    cursor: pointer;
}

.searchable-select-search:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23009ee1' viewBox='0 0 16 16'%3E%3Cpath d='M11.742€ 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
}

.searchable-select-dropdown {
    display: none;
    position: absolute;
    top: auto;
    bottom: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #01A6C7;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 10000;
    box-shadow: 0 8px 16px rgba(1, 166, 199, 0.15);
    margin-top: 0;
    margin-bottom: 4px;
    width: 100%;
}

.searchable-select-dropdown:not(.step2-hidden) {
    display: block;
}

.searchable-select-dropdown>div {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
    font-size: 0.95rem;
}

.searchable-select-dropdown>div:last-child {
    border-bottom: none;
}

.searchable-select-dropdown>div:hover {
    background-color: #f5f9fc;
    color: #01A6C7;
}

/* Scrollbar personnalisée pour le dropdown */
.searchable-select-dropdown::-webkit-scrollbar {
    width: 10px;
}

.searchable-select-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.searchable-select-dropdown::-webkit-scrollbar-thumb {
    background: #01A6C7;
    border-radius: 4px;
    border: 2px solid #f1f1f1;
}

.searchable-select-dropdown::-webkit-scrollbar-thumb:hover {
    background: #007ab8;
}

/* Pour Firefox */
.searchable-select-dropdown {
    scrollbar-width: thin;
    scrollbar-color: #01A6C7 #f1f1f1;
}

/* ===== STYLES POUR LES CHAMPS DE FORMULAIRE ===== */
/* Note: Les styles Bootstrap par défaut sont définis ligne ~307 */
/* Les styles spécifiques pour #step2 sont définis ligne ~324 */

.form-label {
    
font-size: 1.05rem;
 font-weight: 550;
  color: #003B66 ;
 margin: auto;
 font-family: Quicksand, sans-serif;
}

/* ===== STYLES SPÉCIFIQUES À #STEP2 ===== */
#step2 .form-check {
    margin-bottom: 0;
    padding: 0;
    position: relative;
}

#step2 .form-check-inline {
    margin-right: 0 ;
    margin-bottom: 0 ;
    padding: 0 ;
    flex: 1 ;
    min-width: 200px ;
}

/* Cacher le radio button original */
#step2 .form-check-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

/* Style pour tous les boutons radio - comme les boutons Versicherter/Angehöriger */
/* Les styles détaillés sont définis dans la section "Surcharge pour les form-check-label" */

/* Hover sur le label - comme insurance-button */
#step2 .form-check-label:hover {
    border-color: #2563eb;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

/* Style quand le radio est sélectionné - comme insurance-button */
#step2 .form-check-input:checked+.form-check-label {
    background: #ffffff;
    border-color: #2563eb;
    border-width: 3px;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
    color: #1e40af;
    font-weight: 600;
}
#basket-form .form-group .form-check-inline{
    min-width:245px
    }
/* Focus sur le radio (accessibilité) - style cohérent */
#step2 .form-check-input:focus+.form-check-label {
    border-color: #2563eb;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
    outline: none;
}
.form-control,.form-control:focus,button,button:focus
{
    outline:0;-webkit-box-shadow:none;
    -ms-box-shadow:none;
    -o-box-shadow:none;
    box-shadow:none
}

/* Style général pour form-control - valeurs par défaut Bootstrap */
/* Les styles spécifiques pour #step2 sont définis dans la section suivante */
.form-control {
    display: block;
    width: 100%;
    height: calc(1.5em + .75rem + 2px);
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

/* Style pour les champs de texte dans step2 - comme les boutons Versicherter/Angehöriger */
#step2 .form-control,
#step2 #basket-form .form-control,
#step2 input[type="text"].form-control,
#step2 input[type="date"].form-control,
#step2 input.flatpickr-input {
    display: block;
    width: 100%;
    padding: 16px 24px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: #1e40af;
    line-height: 1.5;
    transition: all 0.3s ease;
    height: auto;
    min-height: calc(1.5em + 32px + 4px);
}

/* Focus pour les champs de texte dans step2 */
#step2 .form-control:focus,
#step2 #basket-form .form-control:focus,
#step2 input[type="text"].form-control:focus,
#step2 input[type="date"].form-control:focus,
#step2 input.flatpickr-input:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
    outline: none;
    color: #1e40af;
}

/* Placeholder pour les champs de texte dans step2 */
#step2 .form-control::placeholder,
#step2 #basket-form .form-control::placeholder,
#step2 input[type="text"].form-control::placeholder,
#step2 input[type="date"].form-control::placeholder,
#step2 input.flatpickr-input::placeholder {
    color: #9ca3af;
    opacity: 1;
}
    button,input,optgroup,select,textarea{
        margin:0;
        font-family:inherit;
        font-size:inherit;line-height:inherit}

/* Style pour les groupes de boutons radio - comme insurance-buttons-container */
#step2 .form-group,
#step2 #insured-1 .form-group,
#step2 #basket-form .form-group {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 0;
    background: transparent;
    border: none;
    margin-bottom: 20px;
}

#step2 .form-group h5 {
    width: 100%;
    margin-bottom: 12px;
    color: var(--sky-blu);
    font-weight: 600;
    font-size: 16px;
}



/* Style pour les boutons Pflegegrad - ajustement de taille si nécessaire */
#step2 #pflegegrad-selector .form-check-label {
    min-width: 120px;
    padding: 12px 16px;
}

/* Style pour les boutons consultation */
#step2 #consultation-question .form-check-label {
    min-width: 200px;
}

/* Style pour les boutons d'assurance */
#step2 .form-group:has(input[name="insurance_type"]) .form-check-label {
    min-width: 200px;
}

/* Style pour les boutons "Ich bin" */
#step2 .form-group:has(input[name="insured"]) .form-check-label {
    min-width: 200px;
}

/* Style pour le groupe contenant les boutons genre (Herr/Frau) - comme Versicherter/Angehöriger */
#step2 .form-group:has(input[name="title_name"]) {
    display: flex;
    flex-direction: row;
    gap: 16px;
    padding: 0;
    background: transparent;
    border: none;
    margin-bottom: 0;
    margin-top: 15px;
}

/* Style pour les boutons genre (Herr/Frau) - comme les boutons Versicherter/Angehöriger */
#step2 .form-group:has(input[name="title_name"]) .form-check {
    flex: 1;
    min-width: 200px;
}

/* Les styles pour .form-check-label sont hérités de la règle générale (ligne ~2140) */
#step2 .form-group:has(input[name="title_name"]) .form-check-label {
    width: 100%;
}

/* Hover pour les boutons genre - comme insurance-button */
#step2 .form-group:has(input[name="title_name"]) .form-check-label:hover {
    border-color: #2563eb;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

/* Style quand le radio genre est sélectionné - comme insurance-button */
#step2 .form-group:has(input[name="title_name"]) .form-check-input:checked + .form-check-label {
    background: #ffffff;
    border-color: #2563eb;
    border-width: 3px;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
    color: #1e40af;
    font-weight: 600;
}

/* ===== STYLES POUR LA GESTION DES ERREURS ===== */
/* Bordure d'erreur pour les champs de formulaire */
.error {
    border-color: #dc3545;
}

/* Style unifié pour tous les messages d'erreur - défini plus bas (ligne ~1070) */

.error-border {
    border: 2px solid #dc3545;
    border-radius: 8px;
    background-color: #fff5f5;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.3);
}

.error-text label {
    color: #dc3545;
    font-weight: 600;
}

/* Style pour les checkboxes non cochées (validation consentement) */
.border-red-checkbox {
    border: 2px solid #dc3545;
    outline: 2px solid #dc3545;
    outline-offset: 2px;
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.5);
}

.checkbox-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    display: block;
    clear: both;
}

/* ===== STYLES POUR LES BOUTONS INFO ET TOOLTIP ===== */
.info-btn-insurance {
    transition: all 0.3s ease;
    visibility: visible;
    opacity: 1;
}

.info-btn-insurance:hover {
    background: #2ba89a;
    transform: scale(1.1);
}

label[for="insurance-no"] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

label[for="insurance-no"] button,
#insurance-info-btn,
.info-btn-insurance,
button#insurance-info-btn,
button.info-btn-insurance {
    visibility: visible;
    opacity: 1;
    display: inline-flex;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    background: #01A6C7;
    color: white;
    border: 2px solid #01A6C7;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(57, 205, 193, 0.5);
    position: relative;
    z-index: 99999;
    margin: 0;
    padding: 0;
}

div:has(#insurance-info-btn),
div:has(button#insurance-info-btn) {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Force l'affichage du bouton même si caché */
* {
    --insurance-btn-display: inline-flex;
}

button[id="insurance-info-btn"] {
    display: inline-flex;
    visibility: visible;
    opacity: 1;
}

.insurance-image-tooltip {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Styles pour le tooltip dans l'étape 2 */
.form-label-tooltip {
    position: relative;
}

.form-label-tooltip label {
    cursor: help;
}

.tooltip-img-wrap {
    display: none;
    position: absolute;
    z-index: 10000;
    background: white;
    border: 2px solid #01A6C7;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    top: 30px;
    left: 0;
    animation: fadeIn 0.3s ease;
}

.form-label-tooltip:hover .tooltip-img-wrap {
    display: block;
}

.tooltip-img-wrap img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Styles pour le bouton info dans l'étape 2 */
.insurance-info-btn-step2 {
    transition: all 0.3s ease;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.insurance-info-btn-step2:hover {
    opacity: 0.7;
}

.insurance-info-btn-step2:active {
    opacity: 0.5;
}

.beihilfe-label-tooltip {
    position: relative;
}

.beihilfe-tooltip-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.beihilfe-info-tooltip {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 10px;
    min-width: 280px;
    max-width: 420px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #ffffff;
    color: #0a3d7a;
    border: 1px solid #d9e2ef;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
    font-size: 13px;
    line-height: 1.35;
    z-index: 50;
    display: none;
    white-space: normal;
}

.beihilfe-tooltip-wrap:hover .beihilfe-info-tooltip {
    display: block;
}

/* Permettre au clic de contrôler l'affichage même avec le hover */
.form-label-tooltip .tooltip-img-wrap.show-on-click {
    display: block;
}

/* ===== STYLES POUR LA CARD DE CONNEXION ===== */
.card:has(.card-header h5:contains("E-Mail-Adresse oder Versichertennummer eingeben")) {
    min-height: 200px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: block;
}

.card:has(.card-header h5:contains("E-Mail-Adresse oder Versichertennummer eingeben")) .card-body {
    padding: 40px 30px;
}

/* Alternative pour les navigateurs qui ne supportent pas :has() */
.login-card {
    min-height: 200px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: block;
}

.login-card .card-body {
    padding: 40px 30px;
}

/* S'assurer que le conteneur parent utilise toute la largeur disponible */
.login-card .col-md-12 {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: center;
}

/* Étendre jusqu'au trait jaune */
.login-card .col-md-12.mb-4 {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: center;
}

/* Conteneur parent centré */
.login-card .row {
    margin: 0;
    justify-content: center;
    display: flex;
}

/* Centrage parfait du bloc de connexion */
.login-card .col-md-12 .card {
    margin: 0 auto;
}

/* ===== STYLES POUR LES MODALS D'ERREUR - SUPPRIMÉS ===== */

/* ===== MODERN MODAL STYLES ===== */
.modern-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-modal.show {
    opacity: 1;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.modal-container {
    position: relative;
    z-index: 1;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modern-modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.modal-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.modal-title {
    flex: 1;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem 1.5rem;
}

.modal-body p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #2c3e50;
    text-align: center;
}

.modal-footer {
    padding: 1rem 1.5rem 1.5rem;
    text-align: center;
}

.btn-modal-close {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-modal-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.6);
}

.btn-modal-close:active {
    transform: translateY(0);
}

/* Animation d'entrée */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modern-modal.show .modal-content {
    animation: modalSlideIn 0.4s ease-out;
}

/* ===== MODERN ALERT STYLES ===== */
.alert {
    position: relative;
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid var(--sky-blu);
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border-left: 4px solid #ffc107;
}

/* ===== STYLES POUR LA RECHERCHE D'EMAIL ===== */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.fade-out {
    animation: fadeOut 0.5s ease-out;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.customer-found {
    border: 2px solid #28a745;
    background-color: #f8fff9;
}

.password-fields {
    transition: all 0.3s ease;
}

/* Cacher le formulaire principal par défaut - garder visible seulement la recherche d'email */
.main-form-content {
    display: none;
}

/* Masquer seulement les blocs de consentement par défaut - ils s'afficheront avec le formulaire */
#consent-section-3 {
    display: none;
}

/* Le bouton submit-section est géré par JavaScript */
#submit-section {
    display: none;
}

/* ===== STYLES POUR LES CASES DE TAILLE ===== */
.lengend-action-buttons label {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--turquoise);
    background: white;
    color: #333;
}

.lengend-action-buttons label:hover {
    background-color: rgba(57, 205, 193, 0.1);
    border: 1px solid var(--turquoise);
}

/* Désactiver tous les changements de style lors de la sélection */
.lengend-action-buttons label.size-selected,
.lengend-action-buttons label.selected,
.lengend-action-buttons label:has(input[type="radio"]:checked) {
    background: var(--turquoise);
    color: white;
    border: 2px solid var(--turquoise);
    font-weight: 600;
}

.lengend-action-buttons label.size-selected span,
.lengend-action-buttons label.selected span,
.lengend-action-buttons label:has(input[type="radio"]:checked) span {
    background: transparent;
    color: white;
    border: none;
    font-weight: 600;
}

/* Réduire la bordure des boutons de taille à une seule bordure */
.lengend-action-buttons label.prod-count {
    border: 1px solid var(--turquoise);
}

.lengend-action-buttons label.prod-count span {
    border: none;
}

/* ===== STYLES POUR LA CHECKBOX DE CRÉATION DE COMPTE ===== */
#create_account_checkbox {
    transition: all 0.2s ease;
}

#create_account_checkbox:hover {
    transform: scale(1.1);
}

label:has(#create_account_checkbox) {
    transition: all 0.3s ease;
}

label:has(#create_account_checkbox):hover {
    background: #d6eefa;
}

/* ===== UTILITAIRES POUR LES FORMULAIRES ===== */
.field-row {
    margin-top: 12px;
    margin-bottom: 12px;
}

.field-row label.form-label {
    margin-bottom: 6px;
}
.form-control:disabled,.form-control[readonly]
  {background-color:#e9ecef;
    opacity:1}
/* Extra spacing between Geburtsdatum and Pflegegrad */
.geburt-col {
    margin-right: 280px;
}

.info-text {
    background: rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(79, 172, 254, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin: 0;
    color: #2c3e50;
    font-size: 0.9rem;
    text-align: center;
}

.info-text i {
    color: #4facfe;
    margin-right: 0.5rem;
}

/* ===== CLASSES POUR REMPLACER LES STYLES INLINE ===== */

/* Display utilities */
.step2-hidden {
    display: none;
}

.step2-block {
    display: block ;
}

.step2-flex {
    display: flex ;
}

.step2-inline-flex {
    display: inline-flex ;
}

/* ===== STYLES UNIFIÉS POUR TOUS LES MESSAGES D'ERREUR ===== */
/* Style de base pour tous les messages d'erreur */
.error-msg-red,
.error-msg-red-bold,
.error-msg-red-bold-visible,
.error-msg-red-none,
.error-message,
.error-text,
span[class*="_error_msg"] {
    color: #dc3545;
    font-weight: 600;
    font-size: 0.875rem;
    display: block;
    margin-top: 5px;
    line-height: 1.4;
}

/* Masquer les messages d'erreur par défaut (seront affichés via JavaScript) */
.error-msg-red-none {
    display: none;
}

/* Afficher les messages d'erreur visibles */
.error-msg-red-bold-visible {
    visibility: visible;
    opacity: 1;
}

/* Statut reCAPTCHA (attente / challenge) — pas une erreur */
.recaptcha_error_msg.recaptcha-info-msg {
    color: #64748b;
    font-weight: 500;
    font-size: 0.875rem;
    display: block;
    margin-top: 5px;
    line-height: 1.4;
}

/* Style pour les messages d'erreur avec classe show */
.error-message.show {
    display: block;
}

/* Alert styles */
.alert-warning-custom {
    display: none;
    background-color: #fff3cd;
    border: 3px solid #ffc107;
    color: #856404;
    padding: 25px;
    border-radius: 10px;
    font-size: 18px;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.alert-info-custom {
    display: none;
    background-color: #d1ecf1;
    border: 3px solid #17a2b8;
    color: #0c5460;
    padding: 25px;
    border-radius: 10px;
    font-size: 18px;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.alert-icon-large {
    font-size: 24px;
}

.alert-title-large {
    font-size: 20px;
    color: #856404;
}

.alert-title-info {
    font-size: 20px;
    color: #0c5460;
}

.alert-text-medium {
    font-size: 18px;
    color: #0c5460;
}

.alert-text-medium-warning {
    font-size: 18px;
    color: #856404;
}

.alert-link-info {
    color: #0c5460;
    text-decoration: underline;
}

/* Contact intro block */
.contact-intro-text {
    margin: 0;
    font-size: 16px;
}

.contact-intro-link {
    font-weight: 700;
    text-decoration: underline;
}

/* Login search block */
.login-link {
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
}

.debug-info {
    font-size: 12px;
    color: #6c757d;
}

/* Form row layouts */
.form-row-flex {
    display: flex ;
    flex-direction: row ;
    gap: 15px;
    width: 100%;
    margin-top: 15px;
}

.form-row-flex-simple {
    display: flex;
    gap: 15px;
    width: 100%;
    margin-top: 15px;
}

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

.form-col-flex-1-simple {
    flex: 1;
}

.form-col-flex-30 {
    flex: 0 0 30%;
    min-width: 150px;
}

/* Account creation checkbox section */
.account-checkbox-section {
    margin-top: 30px;
    margin-bottom: 20px;
    padding: 20px;
    background: #e3f2fd;
    border: 2px solid #009ee1;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 158, 225, 0.1);
}

.account-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    cursor: pointer;
}

.account-checkbox-input {
    width: 22px;
    height: 22px;
    min-width: 22px;
    cursor: pointer;
    margin-top: 3px;
    accent-color: #009ee1;
}

.account-checkbox-text {
    flex: 1;
}

.account-checkbox-text-inner {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

.account-checkbox-strong {
    color: #009ee1;
}

/* Password fields */
.password-fields-inline {
    display: flex;
    flex-direction: row ;
    gap: 15px;
    width: 100%;
    margin-top: 15px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease, margin-top 0.5s ease;
}

/* Insurance section */
.insurance-section-wrapper {
    width: 100%;
    margin-bottom: 20px;
}

.insurance-section-title {
    width: 100%;
    margin-bottom: 15px;
}

.insurance-row {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.krankenkasse-field-wrapper {
    position: relative;
    flex: 1;
    width: 50%;
    box-sizing: border-box;
}

.krankenkasse-field-wrapper .searchable-select-dropdown {
    position: absolute;
    top: auto;
    bottom: calc(100% + 4px);
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10000;
    margin-top: 0;
    margin-bottom: 4px;
}

.krankenkasse-label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.krankenkasse-input {
    width: 100%;
    box-sizing: border-box;
}

.insurance-no-wrapper {
    flex: 1;
    width: 50%;
    box-sizing: border-box;
    position: relative;
}

.insurance-no-input {
    width: 100%;
    box-sizing: border-box;
}

.insurance-info-btn {
    background: white;
    color: #000;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    transition: all 0.3s ease;
}

.insurance-info-icon {
    font-size: 12px;
    color: white;
}

/* Angehöriger contact */
.angehoriger-contact-wrapper {
    clear: both;
    display: block;
    width: 100%;
}

.angehoriger-title {
    display: block;
    width: 100%;
    clear: both;
    float: none;
    margin-bottom: 20px;
}

.angehoriger-row {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-bottom: 15px;
    clear: both;
}

.angehoriger-email-wrapper {
    clear: both;
    width: 50%;
    padding-right: 7.5px;
}

/* Insurance type display */
.insurance-type-display {
    margin-top: 10px;
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    display: none;
}

/* Email verification block */
.email-verification-block {
    display: none;
    background: #e3f2fd;
    padding: 30px;
    margin: 25px 0;
    border: 2px solid #2196f3;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.email-verification-icon {
    font-size: 64px;
    color: #2196f3;
    margin-bottom: 20px;
}

.email-verification-title {
    color: #003B66;
    margin-bottom: 20px;
    font-weight: 600;
}

.email-verification-check-icon {
    color: #4caf50;
    margin-right: 10px;
}

.email-verification-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.6;
}

.email-verification-warning-box {
    background: #fff3cd;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #ffc107;
}

.email-verification-warning-text {
    margin: 0;
    color: #856404;
    font-size: 16px;
    font-weight: 600;
}

.email-verification-warning-icon {
    color: #ffc107;
    margin-right: 8px;
}

.email-verification-info-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #2196f3;
}

.email-verification-info-text {
    margin: 0;
    color: #666;
    font-size: 16px;
}

.email-verification-info-icon {
    color: #2196f3;
    margin-right: 8px;
}

.email-verification-buttons {
    margin-top: 25px;
}

.email-verification-btn {
    margin-right: 15px;
    margin-bottom: 10px;
}

/* Consent form block */
.consent-form-block {
    display: none;
    background: #ffffff;
    padding: 32px;
    margin: 0 0 16px 0;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    max-width: 100%;
}

.consent-check-wrap {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.consent-checkbox {
    margin-top: 5px;
    transform: scale(1.2);
}

.consent-label {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    cursor: pointer;
}

.consent-strong {
    color: #003B66 ;
}

.consent-hint {
    font-size: 14px;
    color: #666;
}

.consent-hint strong {
    color: #666;
}

.consent-link {
    color: #1976d2;
}

/* Submit section */
.submit-section-hidden {
    display: none;
}

.step3-button-section {
    display: none;
    margin-top: 20px;
}

.edit-button {
    padding: 10px 25px;
    font-size: 14px;
}

.continue-button {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
}
 .mb-3,.my-3{margin-bottom:1rem}

/* Font vertical align (legacy) */
.font-vertical-align {
    vertical-align: inherit;
}

/* Dropdown no results message */
.dropdown-no-results {
    padding: 10px;
    color: #999;
}

/* Consent error message with display */
.consent-error-display {
    display: block;
    margin-bottom: 10px;
}
/* Apply only if the page contains the step2 containers */
        [id="step2"][data-step2] > .row,
        [id="step2"][data-step21] > .row {
            width: 100%;
            max-width: 1200px;            /* constrain the whole turquoise area */
            margin-left: auto;
            margin-right: auto;           /* center within background */
            box-sizing: border-box;
        }
        [id="step2"][data-step2] > .row > .col-md-12,
        [id="step2"][data-step21] > .row > .col-md-12 { width: 100%; }

        [id="step2"][data-step2] > .row,
        [id="step2"][data-step21] > .row {
          /*  background: linear-gradient(180deg, rgba(20,184,166,.22), rgba(14,165,233,.10)) ;plus soutenu */
            border-radius: 18px ;
            padding: 18px 18px ;
            margin-top: 6px; 
            margin-bottom: 18px ;
        }
        .step2.active .step-number {
            background: linear-gradient(135deg, #0ea5e9, #14b8a6) ;
            color: #fff ;
        }
    
        /* Step 2 polish: professional spacing, readable labels, accessible focus */
        /* Center the whole login container */
        #step2 #basket-form {
            display: block ;
            width: 100%;
            max-width: 1040px;
            margin-left: auto;
            margin-right: auto;
        }
        #step2 .card.login-card { 
            display: block; 
            border: 1px solid #e6f4f8; 
            border-radius: 18px; 
            box-shadow: 0 16px 38px rgba(2,132,199,.28); 
            width: 100% ;
            max-width: 1040px ;
            margin-left: auto ;
            margin-right: auto ;
            margin-top: 8px; 
            margin-bottom: 8px; 
            align-self: center;
            box-sizing: border-box;
        }
        #step2 .card.login-card .card-body { padding-top: 18px; padding-bottom: 18px; }
        /* Center the exact wrapper column */
        #step2 #basket-form > .col-md-12.mb-4 { 
            display: flex; 
            justify-content: center; 
            width: 100%;
        }
        #step2 #basket-form > .col-md-12.mb-4 > .card.login-card { 
            flex: 1 1 auto;
            min-width: 0;
            max-width: 1040px;
        }

        /* Headline and subtitle spacing */
        #step2 h2, #step2 h3 { margin-top: 8px; margin-bottom: 14px; font-weight: 800; }
        #step2 p, #step2 .form-text { line-height: 1.6; }

        /* Inputs visual consistency */
        #step2 .form-control { height: 48px; font-size: 15px; }
        #step2 .form-control::placeholder { color: #6b7280; opacity: .9; }

        /* Primary button sizing */
        #step2 .btn__primary { height: 46px; padding: 0 22px; font-weight: 700; letter-spacing: .2px; }
        #step2 .btn__primary i { margin-right: 6px; }

        /* Secondary links under the button */
        #step2 a { color: #0284c7; }
        #step2 a:hover { color: #0369a1; text-decoration: underline; }

        /* Consent / info blocks */
        #step2 #consent-section, #step2 #consent-block-step2 { box-shadow: 0 10px 28px rgba(14,165,233,.18); border-radius: 18px; }

        /* Center the 'Warum fragen wir das?' block inside turquoise area */
        #step2 .why-asking { 
            width: 100%;
            max-width: 1080px; 
            margin: 18px auto 6px; 
            display: flex; 
            align-items: center; 
            justify-content: center; 
            gap: 12px; 
            flex-wrap: wrap;
        }
        #step2 .why-asking span { font-weight: 700; color: #0f172a; }
        #step2 .why-asking a.iAm-question,
        #step2 .why-asking a.insured-question {
            display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center;
            border: 1.5px solid #0ea5e9; border-radius: 10px; background: #ffffff;
            box-shadow: 0 8px 20px rgba(2,132,199,.14);
        }

        


        /* Personal Data Form Modernization */
        .personal-data-form {
            background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
            border-radius: 20px;
            padding: 2rem;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            margin: 1rem 0;
        }

        .personal-data-form h2 {
            color: #2563eb;
            font-weight: 700;
            font-size: 2rem;
            margin-bottom: 1rem;
            text-align: center;
        }

        .personal-data-form p {
            color: #64748b;
            font-size: 1.1rem;
            line-height: 1.6;
            margin-bottom: 2rem;
            text-align: center;
        }

        /* Styles spécifiques pour personal-data-form */
        .personal-data-form .form-section {
            background: rgba(255, 255, 255, 0.8);
            border-radius: 16px;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(37, 99, 235, 0.1);
        }

        .personal-data-form .modern-form-group {
            margin-bottom: 1.5rem;
        }

        .modern-form-group label {
            color: #374151;
            font-weight: 600;
            font-size: 0.95rem;
            margin-bottom: 0.5rem;
            display: block;
        }

        .modern-form-control {
            width: 100%;
            padding: 0.875rem 1rem;
            border: 2px solid #e5e7eb;
            border-radius: 12px;
            font-size: 1rem;
            transition: all 0.3s ease;
            background: rgba(255, 255, 255, 0.9);
        }

        .modern-form-control:focus {
            outline: none;
            border-color: #06b6d4;
            box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
            background: white;
        }

        .modern-form-control::placeholder {
            color: #9ca3af;
            font-style: italic;
        }

        .modern-radio-group {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
            margin-bottom: 1rem;
        }

        .modern-radio-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.75rem 1rem;
            background: rgba(255, 255, 255, 0.7);
            border: 2px solid #e5e7eb;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            min-width: 140px;
        }

        .modern-radio-item:hover {
            border-color: #06b6d4;
            background: rgba(6, 182, 212, 0.05);
        }

        .modern-radio-item input[type="radio"] {
            margin: 0;
            width: 18px;
            height: 18px;
            accent-color: #06b6d4;
        }

        .modern-radio-item input[type="radio"]:checked + label {
            color: #2563eb;
            font-weight: 600;
        }

        .modern-radio-item:has(input[type="radio"]:checked) {
            border-color: #06b6d4;
            background: rgba(6, 182, 212, 0.1);
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }

        .modern-date-input {
            position: relative;
        }

        .modern-date-input::after {
            content: "📅";
            position: absolute;
            right: 1rem;
            top: 50%;
            transform: translateY(-50%);
            pointer-events: none;
            font-size: 1.2rem;
        }

        /* Style spécifique pour error-message dans personal-data-form */
        .personal-data-form .error-message {
            color: #dc2626;
            font-size: 0.875rem;
            margin-top: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }

        .personal-data-form .error-message::before {
            content: "⚠️";
            font-size: 0.75rem;
        }

        .why-asking-btn {
            background: linear-gradient(135deg, #2563eb, #06b6d4);
            color: white;
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }

        .why-asking-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        }

        /* Styles spécifiques pour form-row dans personal-data-form */
        .personal-data-form .form-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1rem;
            margin-bottom: 1rem;
        }

        .personal-data-form .form-row.single {
            grid-template-columns: 1fr;
        }

        .personal-data-form .form-row.double {
            grid-template-columns: 1fr 1fr;
        }

        .personal-data-form .form-row.triple {
            grid-template-columns: 1fr 1fr 1fr;
        }

        /* Section Separators */
        .personal-data-form .form-section + .form-section {
            margin-top: 2.5rem;
            position: relative;
        }

        .personal-data-form .form-section + .form-section::before {
            content: '';
            position: absolute;
            top: -1.25rem;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 4px;
            background: linear-gradient(90deg, #06b6d4, #2563eb);
            border-radius: 2px;
            box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3);
        }

        /* Enhanced section spacing - appliqué uniquement dans personal-data-form */
        .personal-data-form .form-section {
            position: relative;
            margin-bottom: 2rem;
        }

        .personal-data-form .form-section:not(:last-child)::after {
            content: '';
            position: absolute;
            bottom: -1.25rem;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.3), transparent);
        }


        /* Special styling for main sections */
        .personal-data-form .form-section:first-child h5 {
            font-size: 1.4rem;
            margin-bottom: 2rem;
        }

        .personal-data-form .form-section:first-child h5::before {
            height: 32px;
            width: 6px;
        }

        /* Additional separators for non-form-section elements */
        .modern-radio-group + .modern-radio-group {
            margin-top: 2rem;
            padding-top: 1.5rem;
            border-top: 1px solid rgba(6, 182, 212, 0.2);
        }

        /* Enhanced spacing for form groups - appliqué uniquement dans personal-data-form */
        .personal-data-form .modern-form-group:last-child {
            margin-bottom: 0;
        }

        /* Clean section separators without icons */
        .section-divider {
            position: relative;
            margin: 3rem 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.4), transparent);
        }

        .section-divider::before {
            content: '';
            position: absolute;
            top: -2px;
            left: 50%;
            transform: translateX(-50%);
            width: 40px;
            height: 4px;
            background: linear-gradient(90deg, #06b6d4, #2563eb);
            border-radius: 2px;
        }

        /* Visual hierarchy improvements */
        .personal-data-form .form-section h5 {
            margin-bottom: 1.5rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid rgba(6, 182, 212, 0.1);
        }

        .section-divider span {
            background: linear-gradient(135deg, #06b6d4, #2563eb);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-size: 1.5rem;
            font-weight: bold;
            padding: 0.5rem 1rem;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.9);
            box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
        }

        /* Section spacing improvements */
        .personal-data-form > * {
            margin-bottom: 2rem;
        }

        .personal-data-form > *:last-child {
            margin-bottom: 0;
        }

        /* Better visual separation for main sections */
        .personal-data-form .form-section:not(:first-child) {
            margin-top: 3rem;
            padding-top: 2rem;
            border-top: 1px solid rgba(6, 182, 212, 0.1);
        }

        /* Enhanced spacing for non-form-section elements */
        .col-md-12[id="insured"] {
            margin-top: 2rem;
            padding-top: 1.5rem;
            border-top: 1px solid rgba(6, 182, 212, 0.1);
        }

        /* Add separators before main section titles */
        .personal-data-form h5.mt-50 {
            margin-top: 3rem;
            padding-top: 2rem;
            border-top: 1px solid rgba(6, 182, 212, 0.2);
            position: relative;
        }

        .personal-data-form h5.mt-50::before {
            content: '';
            position: absolute;
            top: -1px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 2px;
            background: linear-gradient(90deg, #06b6d4, #2563eb);
        }

        /* Better spacing for all main sections */
        .personal-data-form .row:has(h5.mt-50) {
            margin-top: 2.5rem;
            padding-top: 1.5rem;
        }

        /* Enhanced visual separation */
        .personal-data-form > .row:not(:first-child) {
            margin-top: 2.5rem;
            padding-top: 1.5rem;
            border-top: 1px solid rgba(6, 182, 212, 0.15);
        }

/* ===== MODERN CARD STYLES ===== */
.card {
    border: 2px solid var(--light-blue);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    background: var(--white);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--sky-blu);
}

/* ===== CARD HEADER - STYLE CONSOLIDÉ ===== */
.card-header {
    background: var(--blue-gradient);
    color: var(--white);
    border: none;
    border-bottom: 1px solid rgba(0,0,0,.125);
    padding: 20px;
    margin-bottom: 0;
    font-weight: 600;
    font-size: 18px;
}

.card-body {
    padding: 25px;
    background: var(--white);
}

.card-header:first-child {
    border-radius: calc(.25rem - 1px) calc(.25rem - 1px) 0 0;
}

 .card-header+.list-group .list-group-item:first-child{border-top:0}
 .card-footer{padding:.75rem 1.25rem;background-color:rgba(0,0,0,.03);border-top:1px solid rgba(0,0,0,.125)}.card-footer:last-child{border-radius:0 0 calc(.25rem - 1px) calc(.25rem - 1px)}.card-header-tabs{margin-right:-.625rem;margin-bottom:-.75rem;margin-left:-.625rem;border-bottom:0}.card-header-pills{margin-right:-.625rem;margin-left:-.625rem}
.card{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-width:0;word-wrap:break-word;background-color:#fff;background-clip:border-box;border:1px solid rgba(0,0,0,.125);border-radius:.25rem}
 .card>hr{margin-right:0;margin-left:0}
 .card>.list-group{border-top:inherit;border-bottom:inherit}
 .card>.list-group:first-child{border-top-width:0;border-top-left-radius:calc(.25rem - 1px);border-top-right-radius:calc(.25rem - 1px)}
 .card>.list-group:last-child{border-bottom-width:0;border-bottom-right-radius:calc(.25rem - 1px);border-bottom-left-radius:calc(.25rem - 1px)}
 .card-body{-ms-flex:1 1 auto;flex:1 1 auto;min-height:1px;padding:1.25rem}
 .card-title{margin-bottom:.75rem}.card-subtitle{margin-top:-.375rem;margin-bottom:0}
 .card-text:last-child{margin-bottom:0}.card-link:hover{text-decoration:none}
 .card-link+.card-link{margin-left:1.25rem}
 
 .card-img-overlay{position:absolute;top:0;right:0;bottom:0;left:0;padding:1.25rem}
 .card-img,.card-img-bottom,.card-img-top{-ms-flex-negative:0;flex-shrink:0;width:100%}
 .card-img,.card-img-top{border-top-left-radius:calc(.25rem - 1px);border-top-right-radius:calc(.25rem - 1px)}.card-img,.card-img-bottom{border-bottom-right-radius:calc(.25rem - 1px);border-bottom-left-radius:calc(.25rem - 1px)}.card-deck .card{margin-bottom:15px}
h1,h2,h3,h4,h5,h6{
                        color:#0e204d;
                        font-family:Quicksand,sans-serif;
                        text-transform:none;
                        line-height:1.3;
                        margin-bottom:20px
                    }
                        
                            h1{font-size:52px}
                            h2{font-size:42px}
                            h3{font-size:38px}
                            h4{font-size:32px}
                            .contact-panel__title,.related__products-title,h5{
                            font-size:24px
                        }

/* Surcharge pour les form-check-label dans #step2 - style insurance-button */
#step2 #basket-form label.form-check-label,
#step2 #insured-1 .form-check-label,
#step2 .form-check-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    color: #1e40af;
    text-align: center;
    user-select: none;
    white-space: nowrap;
    min-width: 100px;
    flex: 1;
    margin-bottom: 1px;
}

/* Hover pour tous les form-check-label dans #step2 */
#step2 #basket-form label.form-check-label:hover,
#step2 #insured-1 .form-check-label:hover,
#step2 .form-check-label:hover {
    border-color: #2563eb;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

/* Style checked pour tous les form-check-label dans #step2 */
#step2 #basket-form .form-check-input:checked + label.form-check-label,
#step2 #insured-1 .form-check-input:checked + .form-check-label,
#step2 .form-check-input:checked + .form-check-label {
    background: #003d66;
    border-color: white;
    border-width: 3px;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
    color: white;
    font-weight: 600;
}

/* Règle générale pour les autres contextes */
.form-check-label {
    margin-bottom: 0;
}

label {
    display: inline-block;
    margin-bottom: .5rem;
}

/* ===== ALERT STYLES - CONSOLIDÉ ===== */
.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.alert-warning hr {
    border-top-color: #ffe8a1;
}

.alert-warning .alert-link {
    color: #533f03;
}

.mt-3, .my-3 {
    margin-top: 1rem;
}

/* ============================================ */
/* CARTE MODERNE DE SÉLECTION D'ASSURANCE */
/* ============================================ */
.insurance-selection-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 32px;
    margin-bottom: 16px;
    max-width: 100%;
    position: relative;
    overflow: visible;
}


.insurance-question-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    gap: 0;
}

.why-asking-inline {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    position: relative;
}

.why-asking-inline span {
    font-weight: 500;
    color: #1e40af;
    font-size: 0.75rem;
}

.why-asking-inline .insured-question {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border: 2px solid #01A6C7;
    border-radius: 6px;
    background: #ffffff;
    color: #01A6C7;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.why-asking-inline .insured-question:hover {
    background: #f8fafc;
    border-color: #2563eb;
    transform: scale(1.05);
}

/* Styles pour le tooltip dans why-asking-inline - position relative ajouté */

.why-asking-inline .insured-question-ans {
    position: absolute;
    top: calc(100% + 20px);
    right: 0;
    left: auto;
    width: 400px;
    max-width: calc(100vw - 40px);
    padding: 20px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: none;
    animation: fadeIn 0.3s ease;
    transform: none;
    margin-top: 0;
}

/* Ajustement spécifique pour le tooltip dans insurance-selection-card */
.insurance-selection-card .why-asking-inline .insured-question-ans {
    top: calc(100% + 10px);
}

/* S'assurer que le tooltip ne cache pas les boutons - le placer après la boîte */
.insurance-selection-card:has(.why-asking-inline:hover) {
    margin-bottom: 300px;
    transition: margin-bottom 0.3s ease;
}

.why-asking-inline:hover .insured-question-ans,
.why-asking-inline .insured-question:hover + .insured-question-ans,
.why-asking-inline .insured-question-ans:hover {
    display: block;
}

.why-asking-inline .insured-question-ans h5 {
    color: #1e40af;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.why-asking-inline .insured-question-ans p {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.insurance-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.insurance-icon {
    font-size: 28px;
    color: #2563eb;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 2px solid #93c5fd;
}

.insurance-question {
    font-size: 1.25rem;
    font-weight: 700;
    color: #003B66 ;
    margin: 1rem;
    flex: 1;
}

.insurance-buttons-container {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.insurance-radio-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.insurance-button {
    flex: 1;
    min-width: 200px;
    padding: 16px 24px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    color: #1e40af;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.insurance-button:hover {
    border-color: #2563eb;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.insurance-radio-input:checked + .insurance-button {
    background: #003d66;
    border-color: white;
    border-width: 3px;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
    color: white;
    font-weight: 600;
}

.insurance-button-gesetzlich {
    flex: 1.5;
    min-width: 280px;
}

.insurance-button-privat {
    flex: 1;
    min-width: 180px;
}

.insurance-button-small {
    min-width: 80px;
    flex: 0 0 auto;
    padding: 12px 16px;
}

.insurance-button-medium {
    min-width: 150px;
    flex: 1;
}

.section-separator {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 32px 0;
}
[type=button]:not(:disabled)
 ,[type=reset]:not(:disabled),[type=submit]:not(:disabled),
 button:not(:disabled){cursor:pointer}
/* ===== STYLE CONSOLIDÉ POUR a.fa-question ===== */
a.fa-question {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    text-align: center;
    border: 1px solid #21cdc0;
    color: #21cdc0;
    margin-left: 20px;
    cursor: pointer;
}

#basket-form {
    padding: 20px 10px;
}
    body
{
    -webkit-font-smoothing:antialiased;
 -moz-osx-font-smoothing:grayscale;
 background-color:#fff;
 font-size:14px;
 color:#507895;
    overflow-x:hidden
}
.form-group,.gallery-layout2 .gallery-img{
    position:relative;margin-bottom:30px}


    @media (max-width: 768px) {

        /* Header de la question en colonne (sauf iAm - Kontaktdaten) */
        .insurance-question-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 10px;
        }
        /* iAm : Ihre Kontaktdaten + logo sur la même ligne */
        #iAm .insurance-question-header {
            flex-direction: row;
            align-items: center;
            gap: 12px;
        }
    
        /* Le div interne aussi en colonne pour ordre correct (sauf iAm) */
        .insurance-question-header > div {
            display: flex ;
            flex-direction: column ;
            align-items: flex-start ;
            gap: 10px ;
            width: 100% ;
        }
        #iAm .insurance-question-header > div {
            flex-direction: row;
            width: auto;
        }
    
        /* Titre - apparaît en premier */
        .insurance-question {
            font-size: 20px;
            line-height: 1.3;
            width: 100%;
            order: 1;
        }
    
        /* Bloc pourquoi - apparaît en deuxième (sous le titre) */
        .why-asking-inline {
            display: flex;
            align-items: center;
            gap: 6px;
            order: 2;
            width: 100%;
            margin-left: 0 ;
        }
    
        .why-asking-inline span {
            font-size: 13px;
            white-space: nowrap;
            text-align: left;
        }
    
        /* Bouton ? */
        .why-asking-inline .insured-question {
            width: 24px;
            height: 24px;
            font-size: 13px;
        }
    
        /* Boutons assurance en colonne */
        .insurance-buttons-container {
            flex-direction: column;
            gap: 14px;
        }
        /* iAm : Versicherter et Angehöriger sur la même ligne */
        #iAm .insurance-buttons-container {
            flex-direction: row;
            flex-wrap: wrap;
            gap: 10px;
        }
        #iAm .insurance-buttons-container .insurance-button {
            flex: 1;
            min-width: 120px;
        }
        /* iAm : Herr et Frau sur la même ligne, taille réduite sur mobile */
        #iAm .form-group:has(input[name="title_name"]) {
            display: flex;
            flex-direction: row;
            gap: 12px;
            flex-wrap: wrap;
        }
        #iAm .form-group:has(input[name="title_name"]) .form-check {
            flex: 0 0 auto;
            min-width: 0;
            max-width: 70px;
        }
        #iAm .form-group:has(input[name="title_name"]) .form-check-label {
            padding: 8px 12px;
            font-size: 0.85rem;
            min-width: 0;
        }

        /* Pflegegrad : 3 champs par ligne sur mobile */
        #pflegegrad-selector .pflegegrad-buttons-container {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            flex-direction: row;
            gap: 10px;
        }

        #pflegegrad-selector .pflegegrad-buttons-container .insurance-button,
        #pflegegrad-selector .pflegegrad-buttons-container .insurance-button-small {
            width: 100%;
            min-width: 0;
            padding: 10px 8px;
            font-size: 0.85rem;
            white-space: normal;
        }
    
        .insurance-button {
            width: 100%;
            min-width: 0;
            padding: 14px;
            font-size: 15px;
            white-space: normal;
        }
    
        /* Vorname et Nachname : un champ par ligne sur mobile */
        #step2 .form-row-flex:has(#first_name) {
            flex-direction: column;
            gap: 15px;
        }
        #step2 .form-row-flex:has(#first_name) .form-col-flex-1 {
            width: 100%;
        }

        /* Telefonnummer et E-Mail : un champ par ligne sur mobile */
        #step2 .form-row-flex:has(#telno) {
            flex-direction: column;
            gap: 15px;
        }
        #step2 .form-row-flex:has(#telno) .form-col-flex-1 {
            width: 100%;
        }

        /* Krankenkasse et Versichertennummer : un champ par ligne sur mobile */
        #step2 .insurance-row {
            flex-direction: column;
            gap: 15px;
        }
        #step2 .insurance-row .krankenkasse-field-wrapper,
        #step2 .insurance-row .insurance-no-wrapper {
            width: 100%;
            flex: none;
        }

        /* Carte plus compacte */
        .insurance-selection-card {
            padding: 18px;
        }
        #step2 #basket-form > .col-md-12.mb-4 { display: block; }
            #step2 .form-control { height: 50px; }
            #step2 .btn__primary { width: 100%; margin-top: 12px; }
            #step2 .card.login-card { max-width: 100%; margin: 0; }
            #step2 .why-asking { max-width: 100%; padding: 0 12px; }

        /* Contrôle de la row principale step2 sur mobile */
        #step2[data-step21] > .row {
            width: 100%;
            max-width: 100%;
            margin-left: 0;
            margin-right: 0;
            padding-left: 8px;
            padding-right: 8px;
            box-sizing: border-box;
        }

        /* Largeur augmentée des champs sur mobile */
        #step2 #basket-form {
            width: 100%;
            max-width: 100%;
            padding-left: 1px;
            padding-right: 1px;
            box-sizing: border-box;
        }
        #step2 #basket-form .card-body,
        #step2 .card.login-card .card-body,
        #step2 .card-body {
            width: 100%;
            max-width: 100%;
            padding-left: 16px;
            padding-right: 16px;
            box-sizing: border-box;
        }
    }
    
    
