/**
 * Styles pour le formulaire de réservation RDVZen
 * 
 * @package RDVZen
 * @since 1.0.0
 */

/* Container principal */
.rdvzen-booking-form-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Steps */
.rdvzen-step {
    display: none;
}

.rdvzen-step.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.rdvzen-step h3 {
  
    margin-bottom: 20px!important;
    color: #2271b1;
    border-bottom: 2px solid #2271b1;
    padding-bottom: 12px;
}

/* Grille de services */
.rdvzen-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.rdvzen-service-card {
    position: relative;
}

.rdvzen-service-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.rdvzen-service-card label {
    display: block;
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rdvzen-service-card input:checked + label {
    border-color: #2271b1;
    background: #f0f7ff;
}

.rdvzen-service-card label:hover {
    border-color: #2271b1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.service-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.duo-badge {
    display: inline-block;
    padding: 3px 8px;
    background: #2271b1;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 8px;
}

.service-info {
    display: flex;
    justify-content: space-between;
	flex-wrap: wrap;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.service-info .duration::before {
    content: "⏱️ ";
}

.service-info .price {
    font-weight: 400;
    color: #2271b1;
	font-size: 18px;
}

.service-description {
    margin-top: 10px;
    font-size: 14px;
    color: #777;
    line-height: 1.5;
	font-weight:300;
}

/* Grille de praticiens */
.rdvzen-workers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.rdvzen-worker-card {
    position: relative;
}

.rdvzen-worker-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.rdvzen-worker-card label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.rdvzen-worker-card input:checked + label {
    border-color: #2271b1;
    background: #f0f7ff;
}

.rdvzen-worker-card label:hover {
    border-color: #2271b1;
}

.rdvzen-worker-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.worker-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #2271b1;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.worker-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* Sélection date/heure */
.rdvzen-date-time-selection {
    margin-bottom: 30px;
}

.date-picker-container {
    margin-bottom: 30px;
}

.date-picker-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.date-picker-container input[type="date"] {
    width: 100%;
    max-width: 300px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.slots-container label {
    display: block;
    margin-bottom: 15px;
    font-weight: 500;
    color: #333;
}

#rdvzen-slots-loading p {
    text-align: center;
    color: #666;
    padding: 20px;
}

.rdvzen-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.rdvzen-slot-card {
    position: relative;
}

.rdvzen-slot-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.rdvzen-slot-card label {
    display: block;
    padding: 15px 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.rdvzen-slot-card input:checked + label {
    border-color: #2271b1;
    background: #2271b1;
    color: #fff;
}

.rdvzen-slot-card label:hover {
    border-color: #2271b1;
}

.slot-time {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.slot-info {
    font-size: 12px;
    opacity: 0.8;
}

.no-slots, .error {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.error {
    color: #d63638;
}

/* Formulaire d'informations */
.rdvzen-form-fields {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.rdvzen-field.full-width {
    grid-column: 1 / -1;
}

.rdvzen-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.rdvzen-field input[type="text"],
.rdvzen-field input[type="email"],
.rdvzen-field input[type="tel"],
.rdvzen-field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.rdvzen-field input:focus,
.rdvzen-field textarea:focus {
    outline: none;
    border-color: #2271b1;
}

/* Carte cadeau */
.gift-card-input-group {
    display: flex;
    gap: 10px;
}

.gift-card-input-group input {
    flex: 1;
}

.gift-card-status {
    margin-top: 10px;
    font-size: 14px;
}

.gift-card-status .success {
    color: #2d7c2e;
}

.gift-card-status .error {
    color: #d63638;
}

.rdvzen-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.rdvzen-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Récapitulatif */
.rdvzen-summary {
    background: #f7f7f7;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 30px;
}

.rdvzen-summary h4 {
    margin: 0 0 15px;
    font-size: 18px;
    color: #2271b1;
}

.rdvzen-summary p {
    margin: 8px 0;
    font-size: 15px;
}

.rdvzen-summary .summary-price {
    font-size: 20px;
    font-weight: 600;
    color: #2271b1;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.gift-card-applied {
    color: #2d7c2e;
    font-weight: 500;
}

/* Boutons */
.rdvzen-buttons {
    display: flex;
    gap: 15px;
    justify-content: space-between;
}

.rdvzen-btn {
    padding: 14px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #2271b1;
    color: #fff;
}

.rdvzen-btn:hover:not(:disabled) {
    background: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.rdvzen-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.rdvzen-btn-primary {
    background: #2d7c2e;
}

.rdvzen-btn-primary:hover:not(:disabled) {
    background: #1e5a1f;
}

.rdvzen-btn-secondary {
    background: #666;
    padding: 5px 5px;
    font-size: 14px;
}

.rdvzen-btn-secondary:hover {
    background: #333;
}

/* Loading */
.rdvzen-loading {
    text-align: center;
    padding: 60px 20px;
}

.rdvzen-loading .spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2271b1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .rdvzen-booking-form-container {
        padding: 20px;
    }
    
    .rdvzen-services-grid,
    .rdvzen-workers-grid {
        grid-template-columns: 1fr;
    }
    
    .rdvzen-form-fields {
        grid-template-columns: 1fr;
    }
    
    .rdvzen-buttons {
        flex-direction: column;
    }
    
    .rdvzen-buttons .rdvzen-btn {
        width: 100%;
    }
}

/* ========================================
   SLIDER DE DATES HORIZONTAL - MODERN UI
   ======================================== */

.rdvzen-date-time-selection-modern {
    margin: 30px 0;
}

/* Container slider avec navigation */
.rdvzen-date-slider-container {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 15px;
    background: #f8f9fa;
        padding: 10px 5px;
    border-radius: 5px;
}

/* Boutons navigation slider */
.slider-nav {
    flex-shrink: 0;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    border: 2px solid #2271b1;
    background: #fff;
    color: #2271b1;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav:hover {
    background: #2271b1;
    color: #fff;
    transform: scale(1.1);
}

.slider-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: scale(1);
}

/* Slider de dates */
.rdvzen-date-slider {
    flex: 1;
    overflow-x: auto;
    display: flex;
    gap: 8px;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.rdvzen-date-slider::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Carte de date */
.date-card {
    flex-shrink: 0;
    width: 55px;
    padding: 8px 2px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
	    margin-top: 3px;
}


.date-card:hover {
    border-color: #2271b1;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.2);
}

.date-card.selected {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(34, 113, 177, 0.4);
}

.date-card.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.date-card .day-name {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 5px;
}

.date-card.selected .day-name {
    opacity: 1;
}

.date-card .day-number {
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 5px;
}

.date-card .month-name {
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.7;
}

.date-card.selected .month-name {
    opacity: 1;
}

/* Indicateur date aujourd'hui */
.date-card.today {
    border-color: #00a32a;
}

.date-card.today::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 6px;
    height: 6px;
    background: #00a32a;
    border-radius: 50%;
}

/* Info date sélectionnée */
.selected-date-info {
    text-align: center;
    margin-bottom: 10px;
    padding: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);;
    border-radius: 5px;
    color: #fff;
    font-size: 13px;
}

.selected-date-info strong {
    font-weight: 500;
}

/* Container créneaux moderne 
.slots-container-modern {
    min-height: 250px;
}*/

/* Grille de créneaux */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

/* Carte créneau horaire */
.slot-card {
    padding: 15px 10px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #333;
}

.slot-card:hover {
    border-color: #2271b1;
    background: #f0f7ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(34, 113, 177, 0.15);
}

.slot-card.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(102, 126, 234, 0.4);
}

.slot-card.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Spinner de chargement */
.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2271b1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

#rdvzen-slots-loading {
    text-align: center;
    padding: 40px 0;
    color: #666;
}

/* Message pas de créneaux */
.no-slots-message {
    text-align: center;
    padding: 40px 20px;
    background: #fff3cd;
    border: 2px dashed #ffc107;
    border-radius: 10px;
    color: #856404;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .rdvzen-date-slider {gap:3px;}
    .rdvzen-date-slider-container {
        padding: 2px;
    }

    .slider-nav {
        display: none;
    }

    .date-card {
        width: 50px;
        padding: 10px 2px;
    }

    .date-card .day-number {
        font-size: 20px;
    }

    .date-card .day-name,
    .date-card .month-name {
        font-size: 10px;
    }

    .slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
        gap: 5px;
    }

    .slot-card {
        padding: 0px 4px;
        font-size: 14px;
    }
	.slider-arrow {display:none!important}
}

@media (max-width: 480px) {
    .date-card {
        width: 45px;
        padding: 8px 2px;
    }

    .date-card .day-number {
        font-size: 18px;
    }

    .slots-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
