/* Booking Modal Styles */

/* Inline panel animations (light) */
#booking-panel {
    transition: opacity 0.2s ease-in-out;
}

/* Form improvements */
.form-section {
    transition: all 0.2s ease-in-out;
}

.form-section:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Accordion styles */
.accordion-toggle {
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.accordion-toggle:hover {
    background-color: #f9fafb;
}

.accordion-toggle svg {
    transition: transform 0.3s ease-in-out;
}

.accordion-content {
    transition: all 0.3s ease-in-out;
}

.accordion-content.hidden {
    display: none;
}

/* Room cards */
.room-card {
    position: relative;
}

.room-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.room-label {
    display: block;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    position: relative;
}

.room-label:hover {
    border-color: #3b82f6;
    background-color: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.room-checkbox:checked + .room-label {
    border-color: #3b82f6;
    background-color: #eff6ff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.room-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.room-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}

.room-capacity {
    font-size: 12px;
    color: #6b7280;
}

.room-checkmark {
    position: absolute;
    top: 8px;
    right: 8px;
    color: #3b82f6;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.room-checkbox:checked + .room-label .room-checkmark {
    opacity: 1;
}

/* Input focus states */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Error states */
input.border-red-500, select.border-red-500, textarea.border-red-500 {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

input.bg-red-50, select.bg-red-50, textarea.bg-red-50 {
    background-color: #fef2f2;
}

.error-message {
    display: block;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #dc2626;
    margin-top: 0.25rem;
}

.error-message.hidden {
    display: none;
}


/* Button improvements */
button {
    transition: all 0.2s ease-in-out;
}

button:hover {
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

/* Constrain rooms list height inside the booking panel */
#modal-rooms-container {
    max-height: 50vh;
    overflow-y: auto;
}
