/**
 * trouma-forms-stacked.css
 * CSS de secours pour garantir que seul le step actif est visible
 */

/* Mode stacked : cacher tous les steps par défaut */
.step-panel {
    display: none !important;
}

/* Afficher seulement le step actif */
.step-panel.active {
    display: block !important;
}

/* Alternative si votre structure utilise des wrappers */
/************************
[id^="step-"][id$="-wrapper"] {
    display: none !important;
}

[id^="step-"][id$="-wrapper"].active {
    display: block !important;
}
***************************/
/* Animation douce lors du changement de step (optionnel) */
.step-panel.active {
    animation: fadeIn 0.3s ease-in;
}

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

/* S'assurer que le step 1 est visible au chargement */
/*
.step-panel#step-1,
.step-panel[id="step-1"] {
    display: block !important;
}
*/
/* Si vous utilisez des IDs différents, adaptez ici */
#step1.step-panel {
    display: block !important;
}

.superscript {
            font-size: 0.75em;
    line-height: 0;
    position: absolute !important;
    /*
    top: 20px;
    */
    right: 10px;
    color: yellow;
    z-index: 1000;
}
.header-right-item .superscript {
/*    top: -2px; /* Ajustez cette valeur selon la taille de la police et votre design */
    z-index: 1000;
}

.superscript.dark-bg {
    color: white !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.superscript.light-bg {
    color: #333 !important;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.5);
}

.input-compact {
    padding: 0.4rem 0.75rem !important;  /* haut/bas réduit, gauche/droite inchangé */
    line-height: 1.4;
    height: 2.5rem;                    /* ← hauteur fixe identique */
    -webkit-appearance: none;          /* ← neutralise le style natif iOS */
    appearance: none;
    padding-left: 0.75rem !important;`
}

select.input-compact {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    padding-right: 2rem !important;  /* espace pour la flèche */
}

/* Spécifique iOS via media query */
@supports (-webkit-touch-callout: none) {
    .input-compact,
    input.input-compact,
    select.input-compact {
        padding-left: 10px !important;
        text-indent: 0px;
    }

    /* Téléphone : le input type=tel a besoin d'un traitement spécial */
    input[type="tel"].input-compact {
        padding-left: 12px !important;
        text-indent: 2px;
    }
}
