/* Booking Form Custom Styles */

/* Step indicator styles - Cannot be done with Tailwind utilities alone */
.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step-indicator.active .step-number {
    background-color: #3b82f6;
    color: white;
}

.step-indicator.completed .step-number {
    background-color: #10b981;
    color: white;
}

.step-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    text-align: center;
    max-width: 5rem;
}

.step-indicator.active .step-label {
    color: #3b82f6;
}

.step-indicator.completed .step-label {
    color: #10b981;
}

.step-line {
    height: 2px;
    width: 3.75rem;
    background-color: #e5e7eb;
    margin: 0 1rem;
    margin-top: -1.25rem;
}

.step-line.completed {
    background-color: #10b981;
}

/* Custom button styles removed - using pure Tailwind classes in HTML */

/* Venue card styles - Regular CSS for better compatibility */
.venue-card {
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.venue-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.venue-card.selected {
    border-color: #3b82f6 !important;
    background-color: #eff6ff !important;
}

.venue-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.venue-card.disabled:hover {
    border-color: #e5e7eb;
    box-shadow: none;
}

/* FullCalendar Custom Styles */
#booking-calendar {
    min-height: 600px;
}

.fc-theme-standard .fc-scrollgrid {
    border: 1px solid #e5e7eb;
}

/* Calendar day states */
.fc-daygrid-day.available-start {
    background-color: #f0fdf4;
    cursor: pointer;
    border: 1px solid #bbf7d0;
}

.fc-daygrid-day.available-start:hover {
    background-color: #dcfce7;
    border-color: #16a34a;
}

.fc-daygrid-day.unavailable {
    background-color: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.fc-daygrid-day.existing-booking {
    background-color: #fef2f2;
    border: 1px solid #fca5a5;
    cursor: not-allowed;
}

/* Selected day styling - for individual day toggle selection */
.fc-daygrid-day.selected-day {
    background-color: #3b82f6 !important;
    border: 2px solid #1d4ed8 !important;
    cursor: pointer;
}

.fc-daygrid-day.selected-day .fc-daygrid-day-number {
    color: white !important;
    font-weight: 600 !important;
}

.fc-daygrid-day.selected-day:hover {
    background-color: #2563eb !important;
    border-color: #1e40af !important;
}

/* Selected range styling (for visual grouping) */
.fc-daygrid-day.selected-range {
    background-color: #dbeafe !important;
    border: 1px solid #93c5fd !important;
}

.fc-daygrid-day-number {
    font-weight: 500;
    padding: 4px;
}

/* Custom tooltip styles */
.calendar-tooltip {
    position: absolute;
    background: #1f2937;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    z-index: 1000;
    max-width: 200px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.calendar-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #1f2937 transparent transparent transparent;
}

/* Package info tooltip styles */
.package-info-tooltip {
    position: fixed;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 100;
    max-width: 400px;
    min-width: 280px;
    max-height: 500px;
    overflow-y: auto;
    transition: opacity 0.2s ease-in-out;
}

.package-info-tooltip.hidden {
    opacity: 0;
    pointer-events: none;
}

.package-info-tooltip.show {
    opacity: 1;
    pointer-events: auto;
}

/* Arrow for tooltip */
.package-info-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent white transparent;
    filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.05));
}

.package-info-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -9px;
    border-width: 9px;
    border-style: solid;
    border-color: transparent transparent #e5e7eb transparent;
    z-index: -1;
}

/* When tooltip is positioned below the icon */
.package-info-tooltip.below::before {
    content: '';
    position: absolute;
    top: -16px;
    bottom: auto;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent white transparent;
    transform: rotate(180deg);
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.05));
}

.package-info-tooltip.below::after {
    content: '';
    position: absolute;
    top: -18px;
    bottom: auto;
    left: 50%;
    margin-left: -9px;
    border-width: 9px;
    border-style: solid;
    border-color: transparent transparent #e5e7eb transparent;
    transform: rotate(180deg);
}

/* Package info content */
.package-info-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.venue-info-item {
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.venue-info-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.venue-info-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
    margin-bottom: 6px;
}

.venue-info-description {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Package info icon styling */
.package-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    background: none;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.package-info-icon:hover {
    background-color: #eff6ff;
}

.package-info-icon:active {
    transform: scale(0.95);
}

/* Scrollbar styling for tooltip */
.package-info-tooltip::-webkit-scrollbar {
    width: 6px;
}

.package-info-tooltip::-webkit-scrollbar-track {
    background: #f9fafb;
    border-radius: 3px;
}

.package-info-tooltip::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.package-info-tooltip::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .package-info-tooltip {
        max-width: calc(100vw - 40px);
        min-width: 260px;
        max-height: 400px;
    }
}

/* Header Toolbar Styling */
.fc-header-toolbar {
    padding: 1rem 0;
    margin-bottom: 1rem !important;
    border-bottom: 1px solid #e5e7eb;
}

.fc-toolbar-title {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    margin: 0 !important;
    text-transform: capitalize;
}

/* Button Styling */
.fc-button {
    background-color: white !important;
    border: 1px solid #d1d5db !important;
    color: #374151 !important;
    font-weight: 500 !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 0.375rem !important;
    font-size: 0.875rem !important;
    transition: all 0.15s ease-in-out !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.fc-button:hover {
    background-color: #f9fafb !important;
    border-color: #9ca3af !important;
    color: #111827 !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
}

.fc-button:focus {
    outline: 2px solid transparent !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    border-color: #3b82f6 !important;
}

.fc-button-active,
.fc-button-active:hover {
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: white !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
}

.fc-button:disabled {
    background-color: #f3f4f6 !important;
    border-color: #e5e7eb !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

/* Button Group Styling */
.fc-button-group {
    border-radius: 0.375rem !important;
    overflow: hidden;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.fc-button-group .fc-button {
    border-radius: 0 !important;
    margin: 0 !important;
    border-right-width: 0 !important;
}

.fc-button-group .fc-button:first-child {
    border-top-left-radius: 0.375rem !important;
    border-bottom-left-radius: 0.375rem !important;
}

.fc-button-group .fc-button:last-child {
    border-top-right-radius: 0.375rem !important;
    border-bottom-right-radius: 0.375rem !important;
    border-right-width: 1px !important;
}

/* Icon Styling */
.fc-icon {
    font-size: 0.75rem !important;
}

/* Today Button Specific */
.fc-today-button {
    text-transform: capitalize !important;
}

/* Toolbar Layout */
.fc-toolbar-chunk {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fc-toolbar-chunk:first-child {
    gap: 0.75rem;
}

/* Remove default focus styles */
.fc-button:not(:disabled):active:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

/* Calendar Grid Styling */
.fc-scrollgrid-section-header .fc-col-header-cell {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
    font-weight: 600 !important;
    color: #475569 !important;
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.05em !important;
    padding: 0.75rem 0.5rem !important;
}

.fc-daygrid-day-frame {
    min-height: 80px !important;
}

.fc-daygrid-day-number {
    font-weight: 500 !important;
    color: #374151 !important;
    padding: 0.5rem !important;
    font-size: 0.875rem !important;
}

.fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
    background-color: #3b82f6 !important;
    color: white !important;
    border-radius: 50% !important;
    width: 2rem !important;
    height: 2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 600 !important;
}

.fc-daygrid-day.fc-day-other .fc-daygrid-day-number {
    color: #9ca3af !important;
}

/* Clean up borders */
.fc-theme-standard td,
.fc-theme-standard th {
    border-color: #e5e7eb !important;
}

.fc-theme-standard .fc-scrollgrid {
    border-color: #e5e7eb !important;
    border-radius: 0.5rem !important;
    overflow: hidden !important;
}