/* Contact Section */
.contact-section {
    position: relative;
    /* padding: 40px 0; */
    padding: 1rem;
   /* margin: 1rem 0; */ /* quand utilisé ajoute un espace avant et après la section*/
    text-align: center;
    overflow: hidden;    
    
}

.contact-section:before {
    content: "";
    display: block;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    /* background-image: url('../D_Asset/Sect_contact_3.jpg'); */
    /* background-image: url('../D_Asset/Sect_contact_Legal-01.jpg') ; */
    background-image: var(--background-image);
    background-color: var(--Blue_Highlight_Dark); /* Fallback color */
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: -1;
}

.contact-section .container {
    position: relative; 
    
}

.contact-section h1 {
    font-family: var(--Font_Primary);
    font-weight: 900;
    font-size: var(--Font_Size_L);
    margin-top: 50px;
    margin-bottom: 20px;
    color: white;
}

.contact-section p {
    font-family: var(--Font_Secondary);
    font-size: var(--Font_Size_M);
    margin-top: 1.25 rem; /* 20px; */
    margin-bottom: 1.875rem ; /* 30px; */
    color: white;
     word-wrap: break-word; /* Allow text to wrap if it doesn't fit */
}

/* Style for the recipient group */
.recipient-group {
    display: none;
}

/* Adjust the contact form if Debug_Contact is 1 */
:root[style*="--Debug_Contact: 1"] .recipient-group {
    display: block;
}

/* Contact Form */
.contact-form {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}


.contact-form {
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: var(--Border_Radius) ;  /* 8px; */
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: var(--Border_Radius) ;  /* 5px; */
    font-size: 16px;
    box-sizing: border-box;
}

.contact-form textarea {
    height: 9.375rem;
    resize: vertical;
}

.contact-form button {
    background-color: var(--Blue_Title_1st_letter);
    color: var(--Blue_Logo);
    padding: 12px 24px;
    border: none;
    border-radius:  var(--Border_Radius) ;  /* 5px; */
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    opacity: 0.9;
}

.feedback-box {
    /*
    margin: 10px 0;
    min-height: 24px;
    color: red;
   
*/
    font-size: var(--Font_Size_S); /* 14px; */
    
    text-align: center;

    margin-bottom: 1rem;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius:  var(--Border_Radius) ;  /* 4px; */

}

/* Your CSS styles for the contact section go here */
.contact-container {
    background-color: var(--Background_Color);
    padding: 1rem;
    margin: 1rem 0;
}

.contact-container h2 {
    font-size: var(--Font_Size_L);
    color: var(--Text_Color);
}

.form-group {
     display: flex;
    align-items: center;
    margin-bottom: 0rem;
}

.form-group label {
    margin-right: 0.5rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.5rem;
    box-sizing: border-box;
}

/* Style for the destination field to show it cannot be modified */
.form-group input[name="destination"] {
    background-color: lightgray;
    cursor: not-allowed;
}

/* Style for the button */ /* in main STM_Sytle_08 */


/* Different background images based on destination */
#contact-section {
    background-image: url('../D_Asset/Sect_contact_3.jpg');
}

#contact-section.rgpd {
    background-image: url('../D_Asset/Sect_contact_Legal-01.jpg');
}

#contact-section.techsupport {
    background-image: url('../D_Asset/Sect_contact_TechSupport-01.jpg');
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .contact-section {
        /* padding: 100px 0 50px; */
        padding: 1.25rem 0 3.125rem;
       
       
    }

    .contact-section h1 {
        font-size: 2.25rem;
    
    }

    .contact-section p {
        word-wrap: break-word; /* Break long words if necessary */
        overflow-wrap: break-word; /* Ensure long words break and wrap */
    }
    .contact-form {
        max-width: 80%;
         margin-left: 0.5rem;
    }
}
