/* Time Slot Modal Styles */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.time-slot-btn {
    padding: 0.5rem 0.25rem;
    font-size: 0.875rem;
    border: 2px solid #007bff;
    background: white;
    color: #007bff;
    transition: all 0.2s ease;
    border-radius: 6px;
    text-align: center;
}

.time-slot-btn:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.time-slot-btn:active {
    transform: translateY(0);
}

.time-group-title {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #e9ecef;
}

.available-slots-container {
    max-height: 400px;
    overflow-y: auto;
}

/* Calendar Day Styling */
.flatpickr-day.available-day {
    position: relative;
    background-color: #e8f5e8 !important;
    border: 2px solid #28a745 !important;
    font-weight: bold;
    color: #155724 !important;
}

.availability-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 6px;
    height: 6px;
    background-color: #28a745;
    border-radius: 50%;
}

.flatpickr-day.available-day:hover {
    background-color: #28a745 !important;
    color: white !important;
}

.flatpickr-day.available-day.selected {
    background-color: #28a745 !important;
    color: white !important;
    border-color: #28a745 !important;
}

.flatpickr-day.no-slots-day {
    opacity: 0.5;
    background-color: #f8f9fa !important;
    color: #6c757d !important;
}

.flatpickr-day.no-slots-day:hover {
    background-color: #e9ecef !important;
    color: #495057 !important;
}

/* No Slots Icon */
.no-slots-icon {
    opacity: 0.5;
}

/* Time Selection Feedback */
#timeSelectionFeedback {
    border-left: 4px solid #28a745;
}

/* Modal Responsive Design */
@media (max-width: 576px) {
    .time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 0.375rem;
    }
    
    .time-slot-btn {
        font-size: 0.8rem;
        padding: 0.375rem 0.125rem;
    }
    
    .available-slots-container {
        max-height: 300px;
    }
}

/* Loading State */
.loading-slots {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23007bff"><path d="M12 2a10 10 0 1010 10A10 10 0 0012 2zm0 18a8 8 0 118-8 8 8 0 01-8 8z" opacity=".5"/><path d="M12 2a10 10 0 1010 10A10 10 0 0012 2zm0 18a8 8 0 118-8 8 8 0 01-8 8z"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 16px 16px !important;
    animation: spin 1s linear infinite !important;
}

.flatpickr-innerContainer {
    overflow: visible !important;
}

.flatpickr-calendar.animate.arrowLeft.open.arrowTop {
    width: 100%;
}

.phone-input-group .input-group {
    flex-wrap: nowrap;
}

.country-code-selector {
    min-width: 120px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-right: none;
}

.country-flag {
    font-size: 1.2em;
}

.country-code {
    font-weight: 500;
}

.country-code-dropdown {
    max-height: 300px;
    overflow-y: auto;
}

.country-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

button.country-option {
    width: 100%;
    text-align: left;
}

.country-option:hover {
    background-color: #f8f9fa;
}

.country-option.active {
    background-color: #007bff;
    color: white;
}

.country-option .country-flag {
    width: 20px;
    text-align: center;
}

.country-option .country-name {
    flex: 1;
    font-size: 0.9em;
}

.country-option .country-code {
    font-weight: 500;
    color: #6c757d;
}

.country-option:hover .country-code,
.country-option.active .country-code {
    color: inherit;
}

/*@keyframes spin {*/
/*    0% { transform: rotate(0deg); }*/
/*    100% { transform: rotate(360deg); }*/
/*}*/