/* Public Booking Specific Styles */
.booking-section {
    padding: 4rem 0;
    background: var(--bg-light);
    min-height: calc(100vh - 80px);
}

.booking-header {
    text-align: center;
    margin-bottom: 3rem;
}

.booking-header h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.booking-header p {
    font-size: 1.125rem;
    color: var(--text-light);
}

.booking-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.booking-form {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-section {
    margin-bottom: 2.5rem;
}

.form-section h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

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

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

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.form-actions .btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

/* Info Box */
.info-box {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.info-box h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.info-box h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
    color: var(--text-dark);
}

.info-box p {
    color: var(--text-light);
    line-height: 1.8;
}

.info-box hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.5rem 0;
}

.phone-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1rem 0;
}

/* Success/Error Messages */
.success-message,
.error-message {
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2rem;
}

.success-message {
    background: #f0fdf4;
    border: 1px solid #86efac;
}

.error-message {
    background: #fef2f2;
    border: 1px solid #fca5a5;
}

.success-icon,
.error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.success-icon {
    color: var(--success);
}

.error-icon {
    color: #ef4444;
}

.success-message h3 {
    color: #166534;
    margin-bottom: 0.5rem;
}

.error-message h3 {
    color: #991b1b;
    margin-bottom: 0.5rem;
}

.success-message p {
    color: #166534;
}

.error-message p {
    color: #991b1b;
}

/* Loading State */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Time Slots Grid */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.time-slot {
    padding: 0.75rem 1rem;
    background: white;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
}

.time-slot:hover {
    background: var(--bg-light);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.time-slot.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

.info-message {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 1rem;
}

.error-message {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Styles pour la sélection du type de service */
#serviceTypes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.service-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
}

.service-card:hover {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
    transform: translateY(-3px);
}

.service-card.selected {
    border-color: #007bff;
    background-color: #e7f3ff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.service-name {
    font-weight: bold;
    margin-bottom: 0.25rem;
    color: #333;
}

.service-duration {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.service-price {
    font-weight: bold;
    color: #0056b3;
}

/* Responsive */
@media (max-width: 968px) {
    .booking-container {
        grid-template-columns: 1fr;
    }

    .info-box {
        position: static;
    }
}

@media (max-width: 768px) {
    .booking-section {
        padding: 2rem 0;
    }

    .booking-form {
        padding: 1.5rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions .btn {
        width: 100%;
    }
}

/* ===================================
   DARK THEME - Public Booking
   =================================== */
body.theme-dark .booking-section {
    background: #0a0e1a;
}

body.theme-dark .booking-form,
body.theme-dark .info-box {
    background: #111827;
}

body.theme-dark .form-section h2 {
    color: #f1f5f9;
    border-bottom-color: #2d3748;
}

body.theme-dark .service-card {
    background: #1a2332;
    border-color: #2d3748;
}

body.theme-dark .service-card:hover,
body.theme-dark .service-card.selected {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
}

body.theme-dark .service-name {
    color: #f1f5f9;
}

body.theme-dark .service-duration {
    color: #94a3b8;
}

body.theme-dark .service-price {
    color: #6366f1;
}

body.theme-dark .time-slots {
    background: #1a2332;
}

body.theme-dark .time-slot {
    background: #111827;
    border-color: #2d3748;
    color: #f1f5f9;
}

body.theme-dark .time-slot:hover:not(.disabled),
body.theme-dark .time-slot.selected {
    background: #6366f1;
}

body.theme-dark .time-slot.disabled {
    background: #1a2332;
    color: #64748b;
}

body.theme-dark .info-section h3 {
    color: #f1f5f9;
}

body.theme-dark .info-item {
    color: #94a3b8;
}

body.theme-dark .summary-item {
    border-bottom-color: #2d3748;
    color: #94a3b8;
}

body.theme-dark .summary-item strong {
    color: #f1f5f9;
}
