:root {
    --primary-color: #4299e1;
    --primary-dark: #3182ce;
    --text-dark: #2d3748;
    --text-light: #718096;
    --background-light: #f7fafc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-light);
    color: var(--text-dark);
}

.find-doctor-hero {
    background: linear-gradient(rgba(66, 153, 225, 0.1), rgba(66, 153, 225, 0.2));
    padding: 80px 0;
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.search-container {
    max-width: 800px;
    margin: -40px auto 60px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 20px;
    align-items: end;
}

.search-box {
    position: relative;
}

.search-box label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

.search-box input,
.search-box select {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-box input:focus,
.search-box select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

.search-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 48px;
}

.search-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.doctor-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.doctor-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.doctor-info {
    padding: 20px;
}

.doctor-specialty {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.doctor-name {
    font-size: 20px;
    margin-bottom: 10px;
}

.doctor-rating {
    color: #ecc94b;
    margin-bottom: 15px;
}

.doctor-location {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.doctor-availability {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.next-available {
    font-size: 14px;
    color: var(--text-light);
}

.book-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.book-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.filter-btn {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 8px 20px;
    border-radius: 25px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .search-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 32px;
    }

    .doctors-grid {
        grid-template-columns: 1fr;
    }

    .filters {
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .filter-btn {
        white-space: nowrap;
    }
}