/* === BOOKING STYLES === */

.booking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .booking-grid {
        grid-template-columns: 1fr;
    }
}

.calendar-section,
.time-section {
    background: #f9fafb;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.calendar-section h2,
.time-section h2 {
    color: #374151;
    margin-bottom: 15px;
    font-size: 1.25rem;
    font-weight: 700;
}

/* === MONTH NAVIGATION === */

.month-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 8px;
}

.month-nav button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    flex-shrink: 0;
    font-size: 0.875rem;
}

.month-nav button:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.month-nav button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
}

.month-name {
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    font-size: 1.125rem;
}

/* === CALENDAR === */

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.calendar-header {
    text-align: center;
    font-weight: 600;
    color: #6b7280;
    font-size: 0.75rem;
    padding: 8px 0;
    text-transform: uppercase;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    position: relative;
    font-weight: 600;
}

.calendar-day.empty {
    cursor: default;
}

.calendar-day.past {
    color: #d1d5db;
    cursor: not-allowed;
}

.calendar-day.available {
    background: #d1fae5;
    color: #065f46;
}

.calendar-day.available:hover {
    background: #a7f3d0;
    transform: scale(1.05);
}

.calendar-day.selected {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.3);
}

.calendar-day.unavailable {
    background: #f3f4f6;
    color: #9ca3af;
}

/* === TIME SLOTS === */

.time-slots {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.time-slots::-webkit-scrollbar {
    width: 6px;
}

.time-slots::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.time-slots::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

.time-slots::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.time-slot {
    padding: 15px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-weight: 600;
    color: #374151;
}

.time-slot:hover {
    border-color: var(--primary);
    background: #f0f4ff;
    transform: translateX(3px);
}

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

.no-times {
    text-align: center;
    color: #9ca3af;
    padding: 40px 20px;
    font-style: italic;
}

/* === FORM SECTION === */

.form-section {
    background: #f9fafb;
    padding: 30px;
    border-radius: 12px;
    display: none;
    margin-top: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-section.visible {
    display: block;
    animation: fadeInUp 0.4s ease;
}

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

.form-section h2 {
    color: #1f2937;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 600;
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: inherit;
    transition: all 0.3s;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-submit:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-submit:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
}

/* === MESSAGES === */

.message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

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

.message.visible {
    display: block;
}

.message.success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #6ee7b7;
}

.message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #fca5a5;
}

/* === SELECTED INFO === */

.selected-info {
    background: #e0e7ff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #3730a3;
    font-weight: 600;
    border-left: 4px solid var(--primary);
}

/* === RESPONSIVE === */

@media (max-width: 640px) {
    .calendar-section,
    .time-section {
        padding: 15px;
    }

    .month-nav button {
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    .month-name {
        font-size: 1rem;
    }

    .calendar {
        gap: 4px;
    }

    .calendar-day {
        font-size: 0.75rem;
    }

    .form-section {
        padding: 20px;
    }
}