/* ============================================
   FORMULAIRES - CONTACT & RÉSERVATION
   Chalet Panorama Ovronnaz
   ============================================ */

/* === SECTIONS === */
.reservation-section,
.contact-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #A1A595;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6c757d;
    line-height: 1.6;
}

/* === CONTENEUR FORMULAIRE === */
.booking-form,
.contact-form {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* === LIGNES & GROUPES === */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

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

.form-group-full {
    grid-column: 1 / -1;
}

/* === LABELS === */
.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.required {
    color: #dc3545;
    font-weight: bold;
}

/* === INPUTS === */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #A1A595;
    box-shadow: 0 0 0 3px rgba(44, 95, 45, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #adb5bd;
}

/* === SELECT CUSTOM === */
.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232c5f2d' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 45px;
}

/* === TEXTAREA === */
.form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

/* === HONEYPOT (caché) === */
.honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

/* === BOUTONS === */
.form-actions {
    text-align: center;
    margin-top: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-size: 1.05rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #A1A595 0%, #A1A595 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(44, 95, 45, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #8B8F82 0%, #3a7a3d 100%);
    box-shadow: 0 6px 16px rgba(44, 95, 45, 0.4);
    transform: translateY(-2px);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(44, 95, 45, 0.3);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-large {
    padding: 18px 50px;
    font-size: 1.125rem;
}

/* === SPINNER LOADING === */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === NOTES === */
.form-note {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
}

/* === ALERTES === */
.alert {
    max-width: 900px;
    margin: 30px auto 0;
    padding: 25px 30px;
    border-radius: 8px;
    text-align: center;
}

.alert h3 {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
}

.alert p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

.alert-success {
    background-color: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border: 2px solid #dc3545;
    color: #721c24;
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 768px) {
    .reservation-section,
    .contact-section {
        padding: 50px 15px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .booking-form,
    .contact-form {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .btn {
        width: 100%;
        padding: 16px 30px;
    }
    
    .alert {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .booking-form,
    .contact-form {
        padding: 25px 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Évite zoom auto sur iOS */
    }
}
