/* ================================================================
   Styles pour la page Proposer un Covoiturage
   ================================================================ */

/* Section principale */
.offer-ride-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 80px - 100px); /* Hauteur minimale moins header et footer */
    background-color: #f8f9fa;
    padding: 4rem 2rem;
}

/* Conteneur du formulaire */
.offer-ride-container {
    background-color: #fff;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.offer-ride-container h1 {
    margin-bottom: 1rem;
    color: #1e3a8a;
}

.offer-ride-container .intro-text {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Formulaire */
.offer-ride-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
    text-align: left;
}

.offer-ride-form h2 {
    color: #4CAF50;
    text-align: left;
    margin-bottom: 0.5rem;
    margin-top: 2.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.offer-ride-form h2 i {
    font-size: 1.2rem;
}

/* Groupes de champs */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input:not([type="checkbox"]),
.form-group textarea,
.form-group select {
    width: calc(100% - 24px);
    padding: 0.75rem 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-group input:focus:not([type="checkbox"]),
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

.form-group textarea {
    resize: vertical;
}

/* Checkbox groupe (voyage écologique) */
.form-group.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
}

.form-group.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
}

.form-group.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-left: 0;
    transform: scale(1.2);
    cursor: pointer;
}

/* Message d'information (pas de véhicule) */
.info-message {
    background-color: #fff3cd;
    color: #856404;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    border-left: 4px solid #ffc107;
    margin-top: 0.5rem;
}

.info-message a {
    color: #004085;
    font-weight: 600;
    text-decoration: underline;
}

.info-message a:hover {
    color: #002752;
}

/* Bouton de soumission */
.offer-ride-form .participate-button {
    margin-top: 2.5rem;
    width: auto;
    align-self: center;
    padding: 1rem 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .offer-ride-section {
        padding: 2rem 1rem;
    }

    .offer-ride-container {
        padding: 2rem 1.5rem;
    }

    .offer-ride-container h1 {
        font-size: 1.8rem;
    }

    .offer-ride-form h2 {
        font-size: 1.2rem;
        margin-top: 2rem;
    }

    .offer-ride-form .participate-button {
        width: 100%;
        padding: 1rem 2rem;
    }
}

@media (max-width: 480px) {
    .offer-ride-section {
        padding: 1.5rem 0.5rem;
    }

    .offer-ride-container {
        padding: 1.5rem 1rem;
    }

    .offer-ride-container h1 {
        font-size: 1.5rem;
    }

    .offer-ride-container .intro-text {
        font-size: 1rem;
    }

    .form-group input:not([type="checkbox"]),
    .form-group textarea,
    .form-group select {
        font-size: 0.95rem;
    }
}
