/* Formulaire de réservation - Style élégant et moderne */

/* Style général du formulaire */
.rtb-booking-form {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: linear-gradient(145deg, #ffffff, #f9f9f9);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
}

.rtb-booking-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #10302B, #1a4a43);
}

.rtb-booking-form-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Style des légendes */
fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

legend {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #10302B;
    width: 100%;
    position: relative;
}

/* Style des champs */
.rtb-text, .rtb-select, .rtb-textarea {
    margin-bottom: 1.5rem;
    position: relative;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    font-size: 1rem;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    border-color: #10302B;
    box-shadow: 0 0 0 3px rgba(16, 48, 43, 0.1);
    outline: none;
}

/* Style spécifique pour les champs date et heure */
.date, .time {
    position: relative;
}

.picker__input {
    cursor: pointer;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23555" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>');
    background-repeat: no-repeat;
    background-position: calc(100% - 12px) center;
    background-size: 18px;
    padding-right: 40px;
}

/* Style pour le sélecteur de personnes */
.rtb-select select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23555" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: calc(100% - 12px) center;
    background-size: 16px;
    padding-right: 40px;
}

/* Style pour le message */
.rtb-textarea textarea {
    min-height: 120px;
    resize: vertical;
}

/* Style pour le lien "Ajouter un message" */
.add-message {
    margin-bottom: 1rem;
}

.add-message a {
    color: #10302B;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.add-message a:hover {
    color: #1a4a43;
}

.add-message a::before {
    content: '+';
    margin-right: 5px;
    font-weight: bold;
}

/* Style du bouton de soumission */
.rtb-form-submit button {
    background: linear-gradient(90deg, #10302B, #1a4a43);
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 48, 43, 0.3);
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rtb-form-submit button:hover {
    background: linear-gradient(90deg, #0d2724, #15413a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 48, 43, 0.4);
}

.rtb-form-submit button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(16, 48, 43, 0.3);
}

/* Disposition responsive */
@media (min-width: 768px) {
    .reservation {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 1rem;
    }
    
    .rtb-contact {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .rtb-text.phone {
        grid-column: span 2;
    }
    
    .rtb-textarea.message {
        grid-column: span 2;
    }
    
    .add-message {
        grid-column: span 2;
    }
}

/* Animation des champs */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.rtb-text, .rtb-select, .rtb-textarea {
    animation: fadeIn 0.5s ease forwards;
}

.rtb-text:nth-child(1) { animation-delay: 0.1s; }
.rtb-text:nth-child(2) { animation-delay: 0.2s; }
.rtb-text:nth-child(3) { animation-delay: 0.3s; }

/* Style pour le message de confirmation */
.rtb-message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    font-weight: 500;
}

.rtb-message.success {
    background-color: #e7f7ed;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

.rtb-message.error {
    background-color: #fdeded;
    color: #d32f2f;
    border-left: 4px solid #d32f2f;
}

/* Style pour le reCAPTCHA */
#rtb_recaptcha {
    margin-bottom: 1.5rem;
}

/* Effet de focus amélioré */
.rtb-text:focus-within label,
.rtb-select:focus-within label,
.rtb-textarea:focus-within label {
    color: #10302B;
}

/* Effet de survol sur les champs */
input:hover, select:hover, textarea:hover {
    border-color: #ddd;
}

/* Style pour les champs obligatoires */
input[aria-required="true"],
select[aria-required="true"] {
    background-color: #f8faf9;
}

/* Effet de validation */
input:valid, select:valid {
    border-color: #e0e0e0;
}

/* Effet d'erreur */
input:invalid:not(:placeholder-shown),
select:invalid:not(:placeholder-shown) {
    border-color: #f44336;
}
