/* Styles personnalisés pour Gravity Forms basés sur capacite-acquisition.php */

/* Structure globale */
.wpb-content--blank {
    width: 100%;
    background-color: #f9fafb;
    min-height: 100vh;
}

.entry-content {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
}

/* Conteneur principal */
.gform_wrapper {
    width: 100%;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}
.gform_page_fields{
    width: 100%;
}

/* Style du formulaire */
.gform-body {
    width: 100%;
    padding: 2rem;
}

.gform_body {
    width: 100%;
}

/* En-tête du formulaire */
.gform_heading {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #E5E7EB;
}

.gform_title {
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 700;
    color: #2E488F;
    margin-bottom: 1rem;
}

.gform_description {
    color: #6B7280;
    margin-top: 0.5rem;
}

.gform_required_legend {
    font-size: 0.875rem;
    color: #6B7280;
    margin-top: 1rem;
}

/* Barre de progression */
.gf_page_steps {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem ;
    padding: 1rem 2rem 0rem 2rem;
    flex-wrap: wrap;
}
.gf_step_pending {
    display: none;
    
}

/* Style des étapes */
.gf_step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    min-width: 120px;
    text-align: center;
}

/* Masquer le numéro */
.gf_step_number {
    display: none;
}

/* Style du label */
.gf_step_label {
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Barre de progression */
.gf_step::after {
    content: '';
    display: block;
    width: 100%;
    height: 0.75rem;
    background-color: #FF753A;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

/* Style des étapes en attente */
.gf_step_pending::after {
    background-color: transparent;
    border: 1px solid #FF753A;
}

/* Style de l'étape active */
.gf_step_active .gf_step_label .gf_step_completed{
    color: #FF753A;
    font-weight: 600;
}

.gf_step_active::after {
    background-color: #FF753A;
    animation: pulse 2s infinite;
}

/* Style des étapes précédentes */

.gf_step_active ~ .gf_step_pending::after {
    background-color: rgba(255, 117, 58, 0.3);
    border: none;
}

/* Animation de pulsation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 117, 58, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 117, 58, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 117, 58, 0);
    }
}

/* Style des étapes cachées */
.gf_step_hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .gf_page_steps {
        flex-direction: row;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        align-items: end;
    }

    .gf_page_steps::-webkit-scrollbar {
        display: none;
    }

    .gf_step {
        min-width: 100px;
        flex: 0 0 auto;
    }

    .gf_step::after {
        width: 100%;
        height: 0.5rem;
    }

    .gf_step_label {
        font-size: 0.75rem;
        max-width: 100px;
    }
}

/* Pages du formulaire */
.gform_page {
    padding: 2rem;
}

/* Conteneur des champs */
.gform_fields {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 768px) {
    .gform_fields {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Style des champs */
.gfield {
    margin-bottom: 1.5rem;
    padding: 0;
    list-style: none;
    width: 100%;
}

.gfield--width-full {
    grid-column: 1 / -1;
}

.gfield--width-half {
    grid-column: span 1;
}

/* Labels */
.gfield_label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #2E488F;
    margin-bottom: 0.75rem;
}

/* Conteneurs d'input */
.ginput_container {
    position: relative;
    width: 100%;
}

/* Style des inputs */
.ginput_container input[type="text"],
.ginput_container input[type="email"],
.ginput_container input[type="tel"],
.ginput_container input[type="number"],
.ginput_container select,
.ginput_container textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 0.375rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #374151;
    background-color: white;
    transition: all 0.2s ease-in-out;
}

.ginput_container input:focus,
.ginput_container select:focus,
.ginput_container textarea:focus {
    outline: none;
    border-color: #FF753A;
    box-shadow: 0 0 0 2px rgba(255, 117, 58, 0.2);
}

/* Fieldset et légendes */
fieldset.gfield {
    border: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

fieldset.gfield legend.gfield_label {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2E488F;
    margin-bottom: 1rem;
    width: 100%;
}

/* Style des choix radio */
.gchoice {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 1rem !important;
    background-color: white !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    border-radius: 0.5rem !important;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

/* Style du conteneur des boutons radio */
.ginput_container_radio {
    width: 100%;
}

.gfield_radio {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 768px) {
    .gfield_radio {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gchoice:has(.gfield-choice-input:checked) {
    border-color: #FF753A !important;
}

.gchoice:hover {
    border-color: #FF753A !important;
}

/* Style du label et de l'input */
.gchoice label {
    cursor: pointer !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Étendre la zone cliquable */
.gchoice label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.gchoice:has(.gfield-choice-input:checked) label {
    color: #FF753A !important;
}

/* Style de l'input radio */
.gfield-choice-input {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 24px !important;
    height: 24px !important;
    border: 2px solid #94a3b8 !important;
    border-radius: 4px !important;
    margin: 0 !important;
    cursor: pointer !important;
    position: relative !important;
    transition: all 0.2s ease !important;
    background-color: white !important;
    z-index: 2 !important;
}

.gfield-choice-input:checked {
    border-color: #FF753A !important;
    background-color: #FF753A !important;
}

.gfield-choice-input:checked::after {
    content: '' !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 12px !important;
    height: 12px !important;
    background-color: white !important;
    border-radius: 2px !important;
}

/* Style du texte dans le label */
.gform-field-label--type-inline {
    font-size: 1.125rem !important;
    line-height: 1.5 !important;
    color: #374151 !important;
    margin-right: 1rem !important;
    z-index: 2 !important;
    pointer-events: none !important;
}

/* Suppression des styles Tailwind conflictuels */
.gfield.gfield--type-radio {
    appearance: initial !important;
    width: 100% !important;
    height: auto !important;
    border: none !important;
    background: none !important;
    border-radius: 0 !important;
}

/* Style du titre de la section radio */
.gfield_label.gform-field-label {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
    display: block !important;
}

/* Footer du formulaire */
.gform_page_footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0rem;
    border-top: 1px solid #E5E7EB;

    border-radius: 0 0 0.5rem 0.5rem;
}

/* Boutons */
.gform_previous_button,
.gform_next_button,
#gform_submit_button_2 {
    min-width: 120px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.gform_previous_button {
    border: 1px solid #FF753A;
    color: #FF753A;
    background-color: transparent;
}

.gform_previous_button:hover {
    background-color: rgba(255, 117, 58, 0.1);
}

.gform_next_button,
#gform_submit_button_2 {
    background-color: #FF753A;
    color: white;
    border: none;
}

.gform_next_button:hover,
#gform_submit_button_2:hover {
    background-color: #ff6021;
}

/* Messages d'erreur */
.gform_validation_errors {
    background-color: #FEF2F2;
    border: 1px solid #EF4444;
    border-radius: 0.375rem;
    padding: 1rem;
    margin: 2rem;
    color: #B91C1C;
}

.gfield_validation_message {
    color: #FF753A;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Champs requis */
.gfield_required {
    color: #FF753A;
    margin-left: 0.25rem;
}

/* Champs désactivés */
.ginput_container input:disabled,
.ginput_container select:disabled,
.gfield-choice-input[type="radio"]:disabled {
    background-color: #F3F4F6;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Style spécifique pour le conteneur du simulateur */
#grille_container_simulateur {
    background-color: #f9fafb;
    padding: 2.5rem;
}

/* Style pour le conteneur de devis */
#devis_en_ligne {
    background-color: #2E488F;
    padding: 2.5rem;
    margin-top: 5rem;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .entry-content {
        padding: 1rem;
    }

    .gform_wrapper {
        margin: 0;
    }

    .gform-body {
        padding: 1rem;
    }

    .gform_heading {
        padding: 1rem;
    }

    .gform_title {
        font-size: 1.5rem;
    }

    .gform_page_footer {
        flex-direction: column;
        gap: 1rem;
    }

    .gform_previous_button,
    .gform_next_button,
    #gform_submit_button_2 {
        width: 100%;
    }

    .gf_page_steps {
        flex-direction: row;
        overflow-x: auto;
        justify-content: center;
        align-items: end;
        padding: 0rem 1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .gf_page_steps::-webkit-scrollbar {
        display: none;
    }

    .gf_step {
        min-width: 100px;
        flex: 0 0 auto;
    }

    .gf_step::after {
        width: 100%;
        height: 0.5rem;
    }

    .gf_step_label {
        font-size: 0.75rem;
        max-width: 100px;
    }
} 