/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #2c5f8d;
    --secondary-teal: #4a9ba8;
    --accent-blue: #1e3a5f;
    --light-blue: #e8f4f8;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --white: #ffffff;
    --border-color: #dee2e6;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-teal) 100%);
    color: var(--white);
    padding: 2rem 0;
    box-shadow: var(--shadow);
}

header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Filters */
.filters {
    background: var(--white);
    padding: 2rem;
    margin: 2rem auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.filter-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    background-color: var(--white);
    color: var(--text-dark);
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-group select:hover {
    border-color: var(--secondary-teal);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(44, 95, 141, 0.1);
}

/* Results */
.results {
    margin-bottom: 3rem;
}

.results-count {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.dentist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Dentist Card */
.dentist-card {
    background: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border-top: 4px solid var(--secondary-teal);
}

.dentist-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.dentist-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dentist-card-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary-teal);
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.dentist-card-photo-placeholder {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-teal) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
}

.dentist-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dentist-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 0;
    line-height: 1.3;
}

.appointment-button {
    background-color: var(--secondary-teal);
    color: var(--white);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.appointment-button:hover {
    background-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(74, 155, 168, 0.3);
}

.appointment-button:active {
    transform: translateY(0);
}

.dentist-location {
    color: var(--secondary-teal);
    font-weight: 500;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dentist-location::before {
    content: "📍";
    font-size: 0.9rem;
}

.dentist-card-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 1rem 0;
    padding-left: 1rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.card-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.feature-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.feature-text {
    color: var(--text-dark);
    font-size: 0.9rem;
}

.specialties-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.specialty-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.specialty-tag {
    background: var(--light-blue);
    color: var(--primary-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.dentist-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    margin-top: 0;
}

.dentist-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.contact-button.phone {
    background-color: var(--primary-blue);
    color: var(--white);
}

.contact-button.phone:hover {
    background-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(44, 95, 141, 0.3);
}

.contact-button.whatsapp {
    background-color: #25D366;
    color: var(--white);
}

.contact-button.whatsapp:hover {
    background-color: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.contact-button.website {
    background-color: var(--secondary-teal);
    color: var(--white);
}

.contact-button.website:hover {
    background-color: #3d8a96;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(74, 155, 168, 0.3);
}


/* Dentist Detail View */
.dentist-detail {
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.back-button {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 2rem;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-button:hover {
    background-color: var(--accent-blue);
}

.dentist-detail-card {
    background: var(--white);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--secondary-teal);
}

.dentist-detail-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.dentist-detail-info {
    display: flex;
    flex-direction: column;
}

.appointment-form-container {
    background: var(--light-blue);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.appointment-form-container h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
}

.appointment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

/* Multi-step form styles */
.form-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 0.5rem;
}

.progress-step {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-color);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.progress-step.active {
    background-color: var(--primary-blue);
    width: 14px;
    height: 14px;
    box-shadow: 0 0 0 3px rgba(44, 95, 141, 0.2);
}

.progress-line {
    flex: 1;
    height: 2px;
    background-color: var(--border-color);
    max-width: 60px;
    transition: background-color 0.3s ease;
}

.progress-line.active {
    background-color: var(--primary-blue);
}

.form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    gap: 1rem;
}

.form-next-button,
.form-back-button {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-back-button {
    background-color: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.form-back-button:hover {
    background-color: var(--light-blue);
}

.form-next-button:hover {
    background-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(44, 95, 141, 0.3);
}

.form-navigation .form-submit-button {
    margin-top: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-dark);
    background-color: var(--white);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(44, 95, 141, 0.1);
}

.form-submit-button {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    align-self: flex-end;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-submit-button:hover {
    background-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(44, 95, 141, 0.3);
}

.form-submit-button:active {
    transform: translateY(0);
}

.dentist-name-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.dentist-profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--secondary-teal);
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.dentist-profile-placeholder {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-teal) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 600;
}

.dentist-name-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dentist-detail-name {
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 0;
}

.dentist-detail-location {
    color: var(--secondary-teal);
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dentist-header-contact-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.dentist-header-contact-buttons .contact-button {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    flex: 1;
    min-width: 140px;
}

.dentist-review-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.star-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.star {
    font-size: 1.5rem;
    color: #ddd;
    line-height: 1;
}

.star-filled {
    color: #FFD700;
}

.star-half {
    color: #FFD700;
    opacity: 0.6;
}

.star-empty {
    color: #ddd;
}

.rating-number {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
}

.review-quote {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-dark);
    font-style: italic;
    margin: 0;
    padding: 0;
    border-left: 3px solid var(--secondary-teal);
    padding-left: 1.5rem;
    quotes: '"' '"' "'" "'";
}

.review-quote::before {
    content: open-quote;
}

.review-quote::after {
    content: close-quote;
}

.dentist-photo-gallery {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--light-blue);
    position: relative;
}

.photo-gallery-carousel {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-gallery-image {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: var(--shadow);
    transition: opacity 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--primary-blue);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.carousel-arrow-left {
    left: 1rem;
}

.carousel-arrow-right {
    right: 1rem;
}

.carousel-arrow:hover {
    transform: translateY(-50%) scale(1.2);
    box-shadow: var(--shadow-hover);
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.photo-placeholder {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-teal) 100%);
}

.about-photo-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.dentist-detail-description {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.dentist-detail-description h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 1rem;
}

.dentist-detail-description p {
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.8;
}

.dentist-detail-specialties-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.dentist-detail-specialties-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
}

.specialties-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.office-map-container {
    width: 100%;
}

.map-placeholder {
    width: 100%;
    height: 300px;
    background: var(--light-blue);
    border-radius: 8px;
    border: 2px dashed var(--secondary-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.map-placeholder-content {
    text-align: center;
    padding: 2rem;
    z-index: 1;
}

.map-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.map-address {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.map-note {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    margin: 0;
}

.top-specialties-container {
    display: flex;
    flex-direction: column;
}

.top-specialties-container h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
}

.view-all-visit-reasons {
    font-size: 0.95rem;
    color: var(--primary-blue);
    text-decoration: none;
    margin-top: 0.75rem;
    display: inline-block;
    transition: color 0.2s ease;
}

.view-all-visit-reasons:hover {
    color: var(--accent-blue);
    text-decoration: underline;
}

.top-specialties-list {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1.5rem;
    column-gap: 2rem;
}

.top-specialties-list li {
    color: var(--text-dark);
    font-size: 1.2rem;
    line-height: 1.6;
    padding: 0;
    background: none;
    border: none;
    padding-left: 0;
    margin: 0;
}

.dentist-education-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.dentist-education-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
}

.education-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.education-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--light-blue);
    border-radius: 6px;
    border-left: 3px solid var(--secondary-teal);
}

.education-label {
    font-weight: 600;
    color: var(--accent-blue);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.education-value {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
}

.dentist-reviews-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.dentist-reviews-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
}

.review-count {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-dark);
    opacity: 0.7;
}

.star-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light-blue);
    border-radius: 8px;
}

.star-breakdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.star-breakdown-label {
    min-width: 70px;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}

.star-breakdown-bar {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.star-breakdown-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-teal) 0%, var(--primary-blue) 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.star-breakdown-percentage {
    min-width: 45px;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 600;
    text-align: right;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    padding: 1.5rem;
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.review-stars {
    display: flex;
    gap: 0.15rem;
}

.review-stars .star {
    font-size: 1rem;
}

.review-author {
    font-weight: 600;
    color: var(--accent-blue);
    font-size: 0.95rem;
}

.review-text {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.dentist-detail-contact h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
}

.detail-contact-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.detail-contact-buttons .contact-button {
    flex: 1;
    min-width: 200px;
}

/* Footer */
footer {
    background-color: var(--accent-blue);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
}

footer p {
    opacity: 0.9;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .filters {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .filter-group {
        min-width: 100%;
    }

    .dentist-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .dentist-card {
        padding: 1.25rem;
    }

    .dentist-card-header {
        gap: 0.75rem;
    }

    .dentist-card-photo {
        width: 70px;
        height: 70px;
    }

    .dentist-card-photo-placeholder {
        font-size: 1.3rem;
    }

    .dentist-name {
        font-size: 1.3rem;
    }

    .appointment-button {
        font-size: 0.9rem;
        padding: 0.65rem 0.9rem;
    }

    .dentist-card-features {
        gap: 0.4rem;
        margin: 0.75rem 0;
        padding: 0.75rem 0;
        padding-left: 0.75rem;
    }

    .card-feature {
        font-size: 0.85rem;
    }

    .feature-icon {
        font-size: 0.9rem;
        width: 18px;
    }

    .feature-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    header {
        padding: 1.5rem 0;
    }

    header h1 {
        font-size: 1.75rem;
    }

    .filters {
        padding: 1.25rem;
        margin: 1.5rem auto;
    }

    .dentist-card {
        padding: 1rem;
    }

    .dentist-detail-card {
        padding: 1.5rem;
    }

    .dentist-detail-header {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .appointment-form-container {
        padding: 1.25rem;
    }

    .appointment-form-container h3 {
        font-size: 1.2rem;
    }

    .form-group input,
    .form-group select {
        font-size: 0.9rem;
        padding: 0.65rem;
    }

    .form-submit-button {
        font-size: 0.95rem;
        padding: 0.65rem 1.25rem;
    }

    .about-photo-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .dentist-photo-gallery {
        min-height: 250px;
        order: 1;
    }

    .dentist-detail-description {
        order: 0;
    }

    .photo-gallery-image {
        min-height: 250px;
    }

    .carousel-arrow {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }

    .carousel-arrow-left {
        left: 0.5rem;
    }

    .carousel-arrow-right {
        right: 0.5rem;
    }

    .dentist-name-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .dentist-name-info {
        width: 100%;
    }

    .dentist-profile-photo {
        width: 100px;
        height: 100px;
    }

    .dentist-profile-placeholder {
        font-size: 2rem;
    }

    .dentist-detail-name {
        font-size: 1.75rem;
    }

    .dentist-detail-location {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .dentist-header-contact-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .dentist-header-contact-buttons .contact-button {
        min-width: 100%;
        font-size: 0.85rem;
        padding: 0.55rem 0.9rem;
    }

    .star-rating {
        margin-bottom: 0.75rem;
        gap: 0.5rem;
    }

    .star {
        font-size: 1.3rem;
    }

    .rating-number {
        font-size: 1.1rem;
    }

    .review-quote {
        font-size: 1rem;
        padding-left: 1rem;
    }

    .dentist-detail-specialties-section h3 {
        font-size: 1.3rem;
    }

    .specialties-two-column {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .map-placeholder {
        height: 250px;
    }

    .map-icon {
        font-size: 2.5rem;
    }

    .map-address {
        font-size: 0.95rem;
    }

    .map-note {
        font-size: 0.8rem;
    }

    .top-specialties-container h4 {
        font-size: 1.1rem;
    }

    .top-specialties-list {
        grid-template-columns: 1fr;
        gap: 0.4rem;
        padding-left: 1.25rem;
        column-gap: 0;
    }

    .top-specialties-list li {
        font-size: 1rem;
    }

    .dentist-education-section h3 {
        font-size: 1.3rem;
    }

    .education-item {
        padding: 0.875rem;
    }

    .education-label {
        font-size: 0.85rem;
    }

    .education-value {
        font-size: 0.95rem;
    }

    .dentist-reviews-section h3 {
        font-size: 1.3rem;
    }

    .star-breakdown {
        padding: 1rem;
        gap: 0.5rem;
    }

    .star-breakdown-item {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .star-breakdown-label {
        min-width: 60px;
        font-size: 0.85rem;
    }

    .star-breakdown-bar {
        flex: 1;
        min-width: 100px;
    }

    .star-breakdown-percentage {
        min-width: 40px;
        font-size: 0.85rem;
    }

    .review-item {
        padding: 1rem;
    }

    .review-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .review-text {
        font-size: 0.95rem;
    }

    .detail-contact-buttons {
        flex-direction: column;
    }

    .detail-contact-buttons .contact-button {
        min-width: 100%;
    }
}

/* Visit Reasons Modal */
.visit-reasons-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.visit-reasons-modal {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.visit-reasons-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.visit-reasons-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin: 0;
}

.visit-reasons-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-dark);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.visit-reasons-close:hover {
    background-color: var(--light-blue);
}

.visit-reasons-content {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.visit-reasons-list {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.visit-reasons-list li {
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .visit-reasons-modal {
        max-width: 90%;
        max-height: 85vh;
    }

    .visit-reasons-header {
        padding: 1.25rem;
    }

    .visit-reasons-header h3 {
        font-size: 1.3rem;
    }

    .visit-reasons-content {
        padding: 1.25rem;
    }

    .visit-reasons-list li {
        font-size: 1rem;
    }
}

/* Appointment Modal */
.appointment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.appointment-modal {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.appointment-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.appointment-modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin: 0;
}

.appointment-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-dark);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.appointment-modal-close:hover {
    background-color: var(--light-blue);
}

.appointment-modal-content {
    padding: 1.5rem;
}

.appointment-modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.appointment-modal-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.appointment-modal-form .form-group label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.appointment-modal-form .form-group input,
.appointment-modal-form .form-group select {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.appointment-modal-form .form-group input:focus,
.appointment-modal-form .form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(44, 95, 141, 0.1);
}

.appointment-modal-form .form-submit-button {
    align-self: flex-end;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .appointment-modal {
        max-width: 90%;
    }

    .appointment-modal-header {
        padding: 1.25rem;
    }

    .appointment-modal-header h3 {
        font-size: 1.3rem;
    }

    .appointment-modal-content {
        padding: 1.25rem;
    }

    .appointment-modal-form .form-group input,
    .appointment-modal-form .form-group select {
        font-size: 0.9rem;
        padding: 0.65rem;
    }
}
