/* Contact Page CSS */

/* Container principal */
.contact-page {
    padding-top: 80px;
    /* Header fixe */
}

.contact-container {
    display: flex;
    min-height: 100vh;
    margin-top: -80px;
    /* Compenser le padding */
}

/* ===== PARTIE GAUCHE (Rouge) ===== */
.contact-left-section {
    flex: 1;
    color: white;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}


.contact-content {
    flex: 1;
    display: flex;
    background-image: url('../icons/hero-n-2.svg');
    flex-direction: column;
    justify-content: center;
    padding: 184px 40px 56px 40px;
    z-index: 2;
    background-repeat: no-repeat;
    background-size: cover;
    gap: 24px;
    max-height: 536px;
    padding-left: 120px;
    padding-right: 4px;
}

.contact-image {
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    z-index: 1;
}

.contact-truck-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    border-radius: 0% 0% 75px 0px;
}

/* Breadcrumb dans la section rouge */
.contact-left-section .breadcrumb {
    position: absolute;
    top: 130px;
    left: 10%;
    right: 5%;
    margin: 0;
    padding: 0;
    z-index: 10;
}

.contact-left-section .breadcrumb a,
.contact-left-section .breadcrumb span {
    color: white;
    text-decoration: none;
}

.contact-left-section .breadcrumb a:hover {
    text-decoration: underline;
}

.contact-content h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0;
    line-height: 1.2;
}

.contact-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 80%;
}

/* CTAs */
.contact-ctas {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.btn-outline-white,
.btn-continue {
    padding: 12px 24px;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-continue {
    align-self: flex-start;
    background-color: #900C22;
    cursor: pointer;
}

.btn-outline-white:hover,
.btn-continue:hover {
    background: white;
    color: #c41e3a !important;
}

.btn-link-white {
    color: white;
    text-decoration: underline;
    padding: 12px 0;
}

/* ===== PARTIE DROITE (Blanche) ===== */
.contact-right-section {
    flex: 1;
    background: white;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* padding: 2rem 2rem 0 2rem; */
    margin-bottom: 600px;
}

.contact-form-container {
    width: 90%;
    padding: 1rem 4rem;
    background: #F6F6F6; /* Fond gris pour toute la zone formulaire */
    border-radius: 24px;
    margin-top:18rem;
    margin-bottom: 128px;
}

.contact-form-container h2 {
    font-size: 20px;
    color: #900C22;
    line-height: 26px;
    font-weight: 700;
    letter-spacing: 0;
    font-size: 1.4rem;
    line-height: 1.4;
    font-weight: 600;
}


/* ===== FORMULAIRE PARTIE DROITE ===== */
.profile-selection {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* Enlever le fond gris d'ici puisque c'est maintenant sur le container */
    padding: 0;
    margin-bottom: 2rem;
    flex:1;
    width: 90%;
}

.profile-option {
    width:90%;
    display: inline-flex;
    flex: 1;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    padding: 2.25rem 1.5rem;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: #000;
    font-weight: 700;
    background: white;
    position: relative;
    padding-left: 3.5rem;
}

.profile-option input[type="radio"] {
    cursor: pointer;
    background-color: black;
    width: 20px;
    height: 20px;
}
/* Styles des options radio */
.profile-option label {
    display: flex;
    align-items: center;

}

.profile-option label::before {
    content: '';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 6px solid #ddd;
    border-radius: 50%;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
} 

.profile-option input[type="radio"]:checked + label {
    border-color: transparent;
    background: white;
}

.profile-option input[type="radio"]:checked ~ label::before {
    border-color: #900C22;
    width: 16px;
    height: 16px;
    box-shadow: inset 0 0 0 4px white;
}
.profile-option input[type="radio"]:checked ~ label::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid #900C22;
    border-radius: 8px;
    pointer-events: none;
  }
.profile-option:hover {
    border-color: #900C22;
}

.btn-continue:disabled {
    color: white;
    cursor: not-allowed;
    transform: none;
}

/** RESPONSIVE **/
@media screen and (max-width: 768px) {
    .contact-page {
        padding: 0;
    }
    
    .contact-container {
        display: block;
        padding-top: 80px;
    }

    .contact-ctas {
        display: none;
    }

    .contact-content {
        padding-top: 100px;
    }

    .contact-content h1 {
        font-size: 32px;
    }

    .contact-content p {
        font-size : 18px;
        max-width: 100%;
        margin-bottom: 0;
        margin-top: 0;
    }

    .contact-left-section .breadcrumb {
        top: 80px;
    }

    .contact-truck-imag {
        border-radius: 0% 0% 24px 24px;
    }

    .contact-form-container {
        width: 100%;
        margin-top: 0;
        padding: 2rem 2rem;
    }

    .profile-option {
        padding: 2.25rem 1rem;
    }
}