/* Form Multi-Steps Hypersuper */
.form-multisteps-hypersuper {
    padding: 20px;
    font-family: "loos-compressed", Sans-serif;
    font-weight: 200;
}

.form-multisteps-hypersuper[data-current-step="8"] .form-titre-general {
    display: none;
}

/* Titre Général */
.form-titre-general,
.remerciement-titre {
    text-align: center;
    margin-bottom: 1.5em;
    position: relative;
}

.form-titre-general-image {
    position: absolute;
    pointer-events: none;
}

.remerciement-titre {
    margin-bottom: 0.5em;
}

.form-titre-general h1,
.form-titre-general h2,
.form-titre-general h3 {
    margin: 0;
}

.multisteps-form {
    position: relative;
}

/* Étapes */
.form-step {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: relative;
}

.form-step.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.3s ease-in;
}

/* Bouton retour en haut à gauche */
.btn-back-top {
    position: absolute;
    top: -7em;
    left: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    font-size: 24px;
    color: #000;
    transition: all 0.3s ease;
    z-index: 10;
     box-shadow: none;
}

.btn-back-top:hover {
   transform: translateX(-5px);
   background: none;
    box-shadow: none;
     color: #000;
}

.btn-back-top i {
    display: block;
}

/* Masquer le bouton retour sur l'étape intro */
.form-step-intro .btn-back-top {
    display: none;
}

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

/* Introduction */
.form-step-intro .step-content {
    text-align: center;
    padding: 40px 20px;
}

.intro-texte {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Contenu des étapes */
.step-content {
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 30px;
}

.step-title {
    font-size: 2em;
    margin-bottom: 10px;
    color: #333;
}

.step-subtitle {
    font-size: 1.5em;
    font-weight: 200;
    color: #000;
    margin-bottom: 30px;
    text-align: center;
}

/* Choix de format */
.format-choices {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

/* Type choices - Similar styling to format choices */
.type-choices {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.format-choice,
.type-choice {
    cursor: pointer;
}

.format-choice input[type="radio"],
.type-choice input[type="radio"] {
    display: none;
}

.format-card,
.type-card {
    border: 1px solid #000;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.type-choice:hover .type-card,
.format-choice:hover .format-card {
    background-color: #000;
    color: #fff;
}
.type-choice:hover .type-card .type-label ,
.format-choice:hover .format-card .format-label {
    color: #fff;
}

.form-step-2 .type-choice:hover .type-card .type-label ,
.form-step-2 .format-choice:hover .format-card .format-label {
    color: #000;
}

.format-choice input[type="radio"]:checked + .format-card,
.type-choice input[type="radio"]:checked + .type-card {
    background-color: #000;
    color: #fff;
}
.form-step-2 .format-choice input[type="radio"]:checked + .format-card {
    background-color: transparent;
    color: #000;
}

.format-card img {
    max-width: 150px;
    height: auto;
    margin-bottom: 15px;
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

.form-step-2 .format-card  {
    border: none;
}

.form-step-2 .type-choice:hover .type-card, 
.form-step-2 .format-choice:hover .format-card {
    background-color: transparent;
    color: #000;
}

.format-label,
.type-label {
    display: block;
    font-weight: 200;
    font-size: 1.4em;
    color: #333;
}

.format-choice input[type="radio"]:checked + .format-card .format-label,
.type-choice input[type="radio"]:checked + .type-card .type-label {

    color: #fff;
}

.form-step-2 .format-choice input[type="radio"]:checked + .format-card .format-label,
.form-step-2 .type-choice input[type="radio"]:checked + .type-card .type-label {
    color: #000;
}


/* Champs du formulaire */
.form-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-field,
.form-group {
    display: flex;
    flex-direction: column;
}

.form-field label,
.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

label[for="project_details"] {
    position: relative;
    top: 47px;
    font-size: 1.3em;
    font-weight: 200;
    left: 15px;
    text-transform: uppercase;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="file"],
.form-field textarea,
.form-field select,
.form-control {
    padding: 12px;
    border: 1px solid #000;
    border-radius: none;
    font-size: 16px;
    text-transform: uppercase;
    height: fit-content;
    transition: border-color 0.3s ease;
    background-color: transparent;
    color: #333;
}

.form-field textarea {
    text-transform: initial;
    padding-top: 50px;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus,
.form-control:focus {
    outline: none;
}

.form-field input.error,
.form-field textarea.error,
.form-field select.error,
.form-control.error {
    border-color: #dc3545;
}

/* Page type selectors */
.page-type-single {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-type-multiple {
    display: grid;
    /** 2 colonnes */
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.page-type-multiple .form-field {
    margin-bottom: 0;
}

/* Address Row - Step 6 */
.address-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Upload Area */
.upload-area {
    border: 1px dashed #bbbbbb;
    border-radius: 0px;
    padding: 40px;
    min-height: 300px;
    display: flex;
    text-align: center;
    transition: all 0.3s ease;
    background-color: transparent;
    align-content: center;
    flex-direction: column;
    justify-content: center;
}

.upload-area.dragover {
    border-color: #4CAF50;
    background-color: #f0f8f0;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.upload-btn {
    padding: 15px 30px;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    background-color: #333;
}

.upload-info {
    font-size: 14px;
    color: #000;
    text-align: center;
    line-height: 1.6;
    margin: 0;
}

.upload-info .eicon {
    font-size: 16px;
    vertical-align: middle;
    margin-right: 5px;
}

.upload-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.upload-preview img {
    max-width: 300px;
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.preview-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.preview-info p {
    margin: 0;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.remove-file {
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.remove-file:hover {
    background-color: #c82333;
    transform: scale(1.1);
}

.checkbox-field {
    flex-direction: row;
    align-items: center;
}

.checkbox-field label {
    margin-bottom: 0;
    margin-left: 8px;
    font-weight: normal;
    cursor: pointer;
}

label[for="conditions"] {
    font-size: 0.8em;
}

label[for="conditions"] a {
    color: #000;
    text-decoration: underline;
}

.checkbox-field input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

/* Navigation */
.step-navigation,
.step-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 4.5em;
}

.step-actions {
    justify-content: center;
}

.btn-next,
.btn-submit,
.btn-remerciement {
    padding: 12px 30px;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 200;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-remerciement {
    background-color: #C90013;
    text-decoration: none !important;
    border: 1px solid #C90013;
    color: #fff;
}

.btn-remerciement:hover {
    background:transparent;
    color: #C90013;
}

.btn-next,
.btn-submit {
    background-color: #000;
    color: white;
}

.btn-next:hover,
.btn-submit:hover {
    background-color: #000;
}

.btn-next:disabled,
.btn-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Remerciement */
.form-step-remerciement .step-content {
    text-align: center;
    padding: 60px 20px;
}

.remerciement-content {
    max-width: 600px;
    margin: 0 auto;
}
.remerciement-soustitre {
    margin-bottom: 1.5em;
}


.remerciement-texte {
    font-size: 1em;
    color: #000000;
    margin-bottom: 35px;
    line-height: 1em;
    margin-top: 1.5em;
}

.remerciement-texte p {
    margin-bottom: 15px;
}


/* Confirmation message (step 3a) */
.confirmation-message {
    text-align: center;
    padding: 40px 20px;
    font-size: 2em;
    line-height: 1.1em;
}

.confirmation-message p {
    margin-bottom: 20px;
}

.form-step-5 .form-fields{ 
    display: grid;
    gap: 15px;
    grid-template-columns: 1fr 1fr;
}

/* Responsive */
@media (max-width: 768px) {
    .form-multisteps-hypersuper {
        padding: 15px;
    }
    
    .step-navigation {
        flex-direction: column;
    }
    
    .btn-next,
    .btn-submit {
        width: 100%;
    }
    
    .intro-titre,
    .remerciement-titre {
        font-size: 1.8em;
    }
    
    .intro-soustitre,
    .remerciement-soustitre {
        font-size: 1.1em;
    }
    
    .form-step-intro .step-content,
    .form-step-remerciement .step-content {
        padding: 30px 15px;
    }
    
    .format-choices {
        grid-template-columns: 1fr;
    }
}
