/**
 * Styles pour le formulaire de réservation Cornet Citron
 * Fichier: assets/css/booking-form.css
 * Compatible avec le thème du site
 * 
 * IMPORTANT: Ce fichier doit être créé dans wp-content/plugins/workshop-booking/assets/css/booking-form.css
 */

/* Container principal */
.workshop-booking-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Layout en 2 colonnes pour calendrier et sessions */
.booking-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .booking-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* === CALENDRIER === */
.booking-calendar-column {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.calendar-wrapper {
    width: 100%;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.calendar-month-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    text-transform: capitalize;
}

.calendar-nav-btn {
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
}

.calendar-nav-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
    color: #333;
}

.calendar-nav-btn:active {
    transform: scale(0.95);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: default;
    color: #666;
}

.calendar-day.header {
    font-weight: 700;
    color: #999;
    font-size: 0.75rem;
    text-transform: uppercase;
    cursor: default;
    aspect-ratio: auto;
    padding: 8px 0;
}

.calendar-day.other-month {
    color: #ccc;
}

.calendar-day.past-day {
    color: #ddd;
    text-decoration: line-through;
}

.calendar-day.available {
    background: #fef5e7;
    color: #f39c12;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
}

.calendar-day.available:hover {
    background: #fdeaa7;
    border-color: #f39c12;
    transform: scale(1.05);
}

.calendar-day.selected {
    background: #f39c12;
    color: white;
    font-weight: 700;
    border: 2px solid #e67e22;
}

/* === SESSIONS DISPONIBLES === */
.booking-sessions-column {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sessions-wrapper {
    width: 100%;
}

.sessions-title {
    margin: 0 0 20px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
}

.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sessions-placeholder {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-style: italic;
}

.session-item {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    transition: all 0.2s ease;
}

.session-item:not(.unavailable) {
    cursor: pointer;
}

.session-item:not(.unavailable):hover {
    border-color: #f39c12;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.2);
    transform: translateY(-2px);
}

.session-item.unavailable {
    opacity: 0.6;
    background: #f5f5f5;
}

.session-time {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.session-price {
    font-size: 1rem;
    color: #27ae60;
    font-weight: 600;
    margin-bottom: 5px;
}

.session-availability {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
}

.session-item.unavailable .session-availability {
    color: #e74c3c;
    font-weight: 600;
}

.btn-select-session {
    width: 100%;
    background: #f39c12;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-select-session:hover {
    background: #e67e22;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(243, 156, 18, 0.3);
}

.btn-select-session:active {
    transform: translateY(0);
}

/* === FORMULAIRE DE RÉSERVATION === */
.workshop-booking-form {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.booking-form-header h3 {
    margin: 0 0 25px 0;
    font-size: 1.5rem;
    color: #2c3e50;
    text-align: center;
}

.booking-form-content {
    display: grid;
    gap: 25px;
}

/* Récapitulatif session */
.selected-session-summary {
    background: #f8f9fa;
    border-left: 4px solid #f39c12;
    padding: 20px;
    border-radius: 8px;
}

.selected-session-summary h4 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    color: #2c3e50;
}

.session-details {
    display: grid;
    gap: 10px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.detail-label {
    color: #666;
}

.detail-value {
    font-weight: 600;
    color: #2c3e50;
}

/* Sélecteur de participants */
.participants-selector {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.participants-selector label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #2c3e50;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #f39c12;
    background: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    color: #f39c12;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: #f39c12;
    color: white;
}

.quantity-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

#participantsCount {
    width: 80px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px;
    color: #2c3e50;
}

.participants-note {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

/* Récapitulatif financier */
.booking-summary {
    background: #fef5e7;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #f39c12;
}

.booking-summary h4 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    color: #2c3e50;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.95rem;
}

.summary-line.total-line {
    border-top: 2px solid #f39c12;
    margin-top: 10px;
    padding-top: 15px;
    font-size: 1.1rem;
}

.summary-line.deposit-line {
    background: white;
    padding: 12px;
    margin: 10px -5px 0 -5px;
    border-radius: 6px;
}

.summary-line.remaining-line {
    padding: 12px 0;
    font-size: 0.9rem;
    color: #666;
}

.total-amount {
    font-size: 1.3rem;
    color: #27ae60;
}

/* Formulaire client */
.customer-form {
    display: grid;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f39c12;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

/* Boutons d'action */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
    }
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #27ae60;
    color: white;
}

.btn-primary:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.btn-primary:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: transparent;
    color: #7f8c8d;
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #f8f9fa;
    border-color: #bdc3c7;
    color: #2c3e50;
}

/* Messages d'erreur */
.booking-error {
    background: #fee;
    border-left: 4px solid #e74c3c;
    padding: 15px 20px;
    border-radius: 8px;
    color: #c0392b;
    font-weight: 500;
    margin: 20px 0;
}