/**
 * RAVICIEL BOOKING - Styles d'intégration Houzez
 * Version simplifiée avec IDs uniques
 */

/* Styles de base pour le conteneur de réservation */
.raviciel-booking-container {
    margin: 20px 0;
    font-family: inherit;
}

.raviciel-booking-form {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.raviciel-booking-form h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

/* Sections de réservation */
.booking-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.booking-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.booking-section h4 {
    margin: 0 0 15px 0;
    color: #555;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.booking-section h4 i {
    color: #0073aa;
    width: 20px;
}

/* Sélecteur de dates avec calendrier */
.date-range-container {
    position: relative;
}

.date-range-container input[type="text"] {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.3s ease;
    cursor: pointer;
}

.date-range-container input[type="text"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.date-range-container::after {
    content: '\f073';
    font-family: 'FontAwesome';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #0073aa;
    font-size: 18px;
    pointer-events: none;
}

/* Sélecteur de voyageurs */
.guests-selector {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.guest-type {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.guest-type label {
    font-weight: 500;
    color: #555;
    min-width: 80px;
}

.guest-btn {
    width: 35px;
    height: 35px;
    border: 2px solid #0073aa;
    background: #fff;
    color: #0073aa;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guest-btn:hover {
    background: #0073aa;
    color: #fff;
}

.guest-count {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    min-width: 30px;
    text-align: center;
}

/* Méthodes de paiement */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.payment-method {
    display: block;
    position: relative;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.payment-method:hover {
    border-color: #0073aa;
    background-color: #f8f9fa;
}

.payment-method input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.payment-method input[type="radio"]:checked + .payment-method-content {
    color: #0073aa;
}

        .payment-method input[type="radio"]:checked ~ .payment-method {
            border-color: #0073aa;
            background-color: #e3f2fd;
        }
        
        /* Style pour la méthode de paiement sélectionnée */
.payment-method.selected {
    border-color: #0073aa !important;
    background-color: #e3f2fd !important;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2) !important;
}

.payment-method.selected .payment-method-content {
    color: #0073aa;
}

.payment-method.selected .payment-method-icon {
    color: #0073aa;
}

/* Animation pour l'affichage des sections */
.booking-section {
    transition: all 0.3s ease-in-out;
}

.booking-section.hidden {
    display: none !important;
}

/* Style pour les sections qui apparaissent après sélection des dates */
.booking-section.guests-section,
.booking-section.payment-section {
    display: none !important;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease-in-out;
}

.booking-section.guests-section.show,
.booking-section.payment-section.show {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
}

/* Amélioration du style du bouton de réservation */
.raviciel-booking-submit {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.raviciel-booking-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.raviciel-booking-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Style pour le message de connexion */
.booking-login-message {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
    font-weight: 500;
}

.booking-login-message .login-link {
    color: #0073aa;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
}

.booking-login-message .login-link:hover {
    color: #005a87;
}

/* Styles spécifiques pour chaque méthode de paiement */
.payment-method-bank {
    border-color: #0073aa;
    background-color: #f8f9fa;
}

.payment-method-bank:hover {
    border-color: #005a87;
    background-color: #e3f2fd;
}

.payment-method-cash {
    border-color: #28a745;
    background-color: #f8f9fa;
}

.payment-method-cash:hover {
    border-color: #1e7e34;
    background-color: #e8f5e8;
}

.payment-method-content {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.payment-method-icon {
    font-size: 24px;
    width: 40px;
    text-align: center;
    color: #0073aa;
}

.payment-method-info h5 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.payment-method-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Résumé de réservation */
.booking-summary {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.summary-container h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.summary-section {
    margin-bottom: 15px;
}

.summary-section:last-child {
    margin-bottom: 0;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.summary-row:last-child {
    margin-bottom: 0;
}

.summary-label {
    color: #666;
    font-weight: 500;
}

.summary-value {
    color: #333;
    font-weight: 600;
}

.summary-row.total {
    font-size: 16px;
    font-weight: 700;
    color: #0073aa;
    border-top: 1px solid #e9ecef;
    padding-top: 10px;
    margin-top: 10px;
}

/* Bouton de réservation */
.raviciel-booking-submit {
    width: 100%;
    padding: 15px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.raviciel-booking-submit:hover {
    background: #005a87;
}

.raviciel-booking-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Lien de connexion */
.login-link {
    text-align: center;
    margin-top: 15px;
}

.login-link a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Modal de confirmation */
.raviciel-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.raviciel-modal-content {
    background: #fff;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.raviciel-modal-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.raviciel-modal-header .dashicons {
    font-size: 48px;
    color: #4caf50;
    margin-bottom: 10px;
}

.raviciel-modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 20px;
}

.raviciel-modal-body {
    padding: 20px;
    text-align: center;
}

.raviciel-modal-body p {
    margin: 0 0 10px 0;
    color: #666;
}

.raviciel-modal-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.raviciel-modal-footer .button {
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.raviciel-modal-footer .button:hover {
    background: #005a87;
}

/* Responsive */
@media (max-width: 768px) {
    .raviciel-booking-form {
        padding: 20px;
    }
    
    .date-inputs {
        flex-direction: column;
    }
    
    .date-inputs input[type="date"] {
        min-width: auto;
    }
    
    .guest-type {
        flex-wrap: wrap;
    }
    
    .payment-method-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
} 