.search-container {
    position: relative;
    margin-bottom: 20px;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 5px;
}

.search-result-item {
    padding: 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    text-align: right;
    direction: rtl;
    transition: background-color 0.3s ease;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-item .doctor-name {
    font-weight: bold;
    margin-bottom: 5px;
    color: #3C4858;
}

.search-result-item .clinic-specialty {
    font-size: 0.9em;
    color: #999;
}

.no-results {
    padding: 15px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* Additional styles to match the form theme */
#doctorSearch {
    direction: rtl;
}

.search-container .form-control {
    background-image: linear-gradient(#f44336, #f44336), linear-gradient(#D2D2D2, #D2D2D2);
}

.search-container .form-control:focus {
    background-image: linear-gradient(#f44336, #f44336), linear-gradient(#D2D2D2, #D2D2D2);
}

/* Improve search input styling */
.wizard-card .form-group.label-floating .search-container .form-control {
    text-align: right;
    direction: rtl;
    padding-right: 15px;
}

/* Fix label position */
.wizard-card .form-group.label-floating label.control-label {
    right: 0;
    left: auto;
    text-align: right;
}

/* Schedule styling */
.schedule-container {
    padding: 20px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.schedule-info {
    text-align: right;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.available-dates {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.date-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 15px;
    text-align: right;
    cursor: pointer;
    transition: all 0.3s ease;
}

.date-card:hover {
    border-color: #008D5C;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.date-card.selected {
    background: #008D5C;
    color: white;
    border-color: #008D5C;
}

.date-card .day-name {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.date-card .date {
    color: #666;
    margin-bottom: 10px;
}

.date-card.selected .date {
    color: rgba(255,255,255,0.8);
}

.date-card .time {
    font-size: 0.9em;
    color: #999;
}

.date-card.selected .time {
    color: rgba(255,255,255,0.9);
}
.loading-message {
    text-align: center;
    color: #666;
    padding: 20px;
}

.match-indicator {
    font-size: 0.8em;
    color: #666;
    font-style: italic;
    margin-top: 5px;
    padding: 2px 8px;
    background-color: #f0f0f0;
    border-radius: 12px;
    display: inline-block;
}

.search-result-item[style*="background-color: #fff3e0"] {
    border-left: 4px solid #FF6B35;
}

.search-result-item[style*="background-color: #f3e5f5"] {
    border-left: 4px solid #9C27B0;
}

.search-result-item[style*="background-color: #fff3e0"]:hover,
.search-result-item[style*="background-color: #f3e5f5"]:hover {
    background-color: #f8f9fa !important;
}
