/* Home page specific styles */
.home-page-container {
    /* Your styles here */
} 

.hero-section {
    height: 100vh;
    display: flex;
    align-items: center; /* Center content vertically */
    background-color: #E8F8ED;
    padding-top: 100px;
    padding-bottom: 80px;
    padding-left: 40px;
    padding-right: 40px;
    text-align: left;
    margin: 0;
}

/* Add responsive adjustments for mobile */
@media (max-width: 768px) {
    .home-page-container {
        width: 100%;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    
    .hero-section {
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 40px;
    }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 4rem; /* Default size for desktop */
    color: #1B1B1B;
    margin-bottom: 40px;
    line-height: 1.2;
    font-weight: bold;
    max-width: 1000px;
}

/* Add responsive text scaling */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: 80px; /* Increase top padding to account for header */
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 40px;
        height: auto; /* Allow section to grow with content */
    }

    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding-top: 80px;
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .hero-line {
        margin-bottom: 8px;
    }
}

/* For very small screens */
@media (max-width: 360px) {
    .hero-section {
        padding-top: 80px;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }
}

.hero-line {
    display: block;
    margin-bottom: 10px;
}

/* Search form styles */
#home-page-search-form {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    margin-bottom: 40px;
    border-radius: 10px;
    padding: 10px;
}

.home-page-location-field {
    width: 75%;
    margin-right: 16px; /* Adds space to the right of the zip code field */
}

.location-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.location-pin-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    z-index: 1;
    width: 25.6px;
    height: 25.6px;
}

#zipcode {
    width: 100%;
    padding: 12px 12px 12px 48px; /* Top Right Bottom Left */
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 20px;
    line-height: 32px;
}

.home-page-search-button {
    background-color: #047727;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.home-page-search-button:hover {
    background-color: #047727;;
}

.home-page-search-button i {
    font-size: 25.6px;
    width: 25.6px;
    height: 25.6px;
}

/* Popular searches section */
.popular-searches {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content horizontally */
}

.popular-searches h3 {
    color: #1B1B1B;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.search-tags {
    display: flex;
    gap: 15px;
    white-space: nowrap;
}

.search-tag {
    padding: 8px 20px;
    border: 1px solid #0B6D3C;
    border-radius: 20px;
    color: #0B6D3C;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.search-tag:hover {
    background: #0B6D3C;
    color: white;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    #home-page-search-form {
        flex-direction: column;
        align-items: initial; /* Removes the center alignment */
    }
    
    .search-parameter-fields, 
    .home-page-location-field,
    .home-page-search-button {
        width: 100%;
    }
} 

.top-clinics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 30px;
    margin-left: 30px;
    margin-right: 30px;
    padding-bottom: 40px;
}

.top-clinics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 30px;
    padding-right: 30px;
    margin-bottom: 30px;
}

.browse-map-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.browse-map-link:hover {
    color: #0056b3;
    text-decoration: underline;
} 

.top-clinics-section {
    padding-top: 60px;
}

.top-clinic-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-clinic-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    color: inherit;
    text-decoration: none;
}

.clinic-map-container {
    width: 100%;
    height: 200px;
    margin: 15px 0;
    border-radius: 4px;
    overflow: hidden;
}

.clinic-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.clinic-logo {
    width: 40px;
    height: 40px;
    margin-right: 4px;
    object-fit: contain;
    margin: 0;
    order: 2;
    border: 0.5px solid #D9D9D9;
}

.clinic-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    color: #333;
    order: 1;
}

.clinic-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.clinic-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.clinic-category {
    display: inline-block;
    background-color: #F5EFE6;
    margin-right: 4px;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
}

.clinic-address {
    font-size: 14px;
    font-weight: 400;
    color: #666;
    line-height: 1.4;
}

.rating-stars {
    display: inline-flex;
    align-items: center;
    color: #f4a261;
    margin-right: 5px;
}

.star {
    position: relative;
    font-size: 1rem;
    color: #d4d4d4;
    display: inline-block;
}

.star.full {
    color: #f4a261;
}

.star.half:after {
    content: '★';
    color: #f4a261;
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
}

.rating-value {
    font-weight: bold;
}

.rating-text {
    color: #666;
    font-size: 0.875rem;
    white-space: nowrap;
}

.clinic-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.clinic-link {
    display: inline-block;
    padding: 8px 20px;
    background-color: #2a9d8f;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.2s;
    margin-top: auto;
}

.clinic-link:hover {
    background-color: #238b7e;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .top-clinics-grid {
        grid-template-columns: 1fr;
    }
    
    .top-clinic-card {
        width: 100%;
        margin-bottom: 20px;
    }
} 


/* This is for the booking-info-section generated by the shortcode booking_ */
.features-section {
    padding: 40px;
}

.features-section .booking-header-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.features-section .booking-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.booking-header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.booking-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}


.booking-info-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.booking-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.booking-title {
    display: flex;
    flex-direction: column;  /* Change from row to column */
    gap: 1rem;
}

.learn-more-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 1rem;
    display: inline-block;  /* Change from flex to inline-block */
}

.booking-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.features-grid:last-child {
    grid-template-columns: repeat(2, 1fr);
    margin-left: calc(100% / 3);
}

.feature-number {
    background: #E8F8ED;
    color: #047727;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 500;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid:last-child {
        grid-template-columns: repeat(2, 1fr);
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid:last-child {
        grid-template-columns: 1fr;
        margin-left: 0;
    }
    
    .booking-header {
        flex-direction: column;
        text-align: center;
    }
    
    .booking-title {
        flex-direction: column;
    }
}

.booking-header-wrapper {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 4rem;
    align-items: start;
}

.booking-header-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.booking-logo {
    width: 40px;
    height: 40px;
}

.booking-title h3 {
    margin: 0;  /* Remove default margins */
    color: #333;
    font-weight: 600;
    line-height: 1.2;
    font-size: 2rem;
}

.booking-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}


.feature-item {
    display: flex;
    gap: 1rem;
}

@media (max-width: 1024px) {
    .booking-header-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.place-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

/* Three Key Features Section - location, phone, and cost */
.three-key-features-section {
    padding: 80px 40px;
    background-color: #ffffff;
}

.key-features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.key-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.key-feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.key-feature-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    align-self: center;
}

.key-feature-content {
    text-align: center;  /* Centers all text content */
}

.key-feature-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1B1B1B;
    margin: 0 0 12px 0;
    text-align: center;  /* Explicitly center the heading */
}

.key-feature-content p {
    font-size: 16px;
    line-height: 1.5;
    color: #4A4A4A;
    margin: 0;
    text-align: center;  /* Explicitly center the paragraph */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .key-features-grid {
        gap: 32px;
    }
    
    .key-feature-content h3 {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .key-features-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .three-key-features-section {
        padding: 60px 24px;
    }
    
    .key-feature-item {
        text-align: center;
        align-items: center;
    }
}

/* Appointment Status Section */
.appointment-status-section {
    padding: 80px 40px;
    background-color: #ffffff;
    /* background-color: #F5FFF8; */
}

.appointment-status-container {
    max-width: 1200px;
    margin: 0 auto;
}

.appointment-status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.appointment-status-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background-color: #E8F8ED;  /* Light green background */
    height: 100%;
}

.status-flow {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    position: relative;
}

.status-label {
    font-size: 20px;
    color: #4A4A4A;
    margin: 0;
    font-weight: 600;
    text-align: center;
    width: 100%;
}

.status-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.status-badge {
    padding: 12px 24px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 18px;
}

.status-badge.pending {
    background-color: #C17F59; /* Brown color from Figma */
    color: white;
    display: inline-flex;
}

.status-badge.confirmed {
    background-color: #0066CC; /* Blue color from Figma */
    color: white;
    margin-left: 100px;
}

.status-arrow {
    width: 80px;
    height: 80px;
    transform: translateY(-50%);
    position: absolute;
    left: 120px;
    top: 50%;
}

.status-arrow-icon {
    width: 100%;
    height: 100%;
}

.appointment-status-content {
    padding-right: 40px;
    background-color: #ffffff;
}

.appointment-status-content h2 {
    font-size: 36px;
    font-weight: 600;
    color: #1B1B1B;
    margin: 0 0 24px 0;
    line-height: 1.2;
}

.appointment-status-content p {
    font-size: 18px;
    line-height: 1.6;
    color: #4A4A4A;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .appointment-status-grid {
        grid-template-columns: 1fr;
    }
    
    .appointment-status-content {
        padding-right: 0;
        text-align: center;
    }
    
    .appointment-status-section {
        padding: 60px 24px;
    }

    .status-label {
        text-align: center;
        font-size: 18px;
    }

    .status-badges {
        align-items: center;
        width: 100%;
    }

    .status-badge {
        width: fit-content;
    }

    .status-badge.confirmed {
        margin-left: 0;
    }

    .status-arrow {
        width: 60px;
        height: 60px;
        left: 50%;
        transform: translateX(-50%) translateY(-50%);
    }

    .appointment-status-illustration {
        padding: 20px;
    }

    .status-badge.pending {
        transform: translateX(-60px);  /* Move left on mobile */
        /* Alternative approach: */
        margin-left: -60px;
    }

    /* Ensure the arrow stays above the badge */
    .status-arrow {
        width: 60px;
        height: 60px;
        left: 50%;
        transform: translateX(-50%) translateY(-50%);
        z-index: 1;  /* Ensure arrow stays on top */
    }
}

.search-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tab-button {
    padding: 0.75rem 1.5rem;
    border: 1px solid transparent;
    background: transparent;
    color: #000000;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 48px; /* Matching the rounded corners from your design */
    transition: all 0.3s ease;
}

.tab-button.active {
    background-color: #CEEFD8;
    border: 1px solid #046B23;
    color: #000000;
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-pane.active {
    display: block;
    opacity: 1;
}

/* Ensure consistent styling between both search forms */
#procedure-search,
#clinic-search {
    width: 100%;
    max-width: 800px;
}

.search-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
}

.field-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.field-group label {
    font-size: 18px;
    color: #333;
    font-weight: 700;
    margin-bottom: 8px;
}

#unified-search-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    transition: border-color 0.2s ease;
}

#unified-search-input:focus {
    outline: none;
    border-color: #047727;
    box-shadow: 0 0 0 3px rgba(4, 119, 39, 0.1);
}

#unified-search-input::placeholder {
    color: #999;
    font-style: italic;
}

/* Dropdown styles */
#search-results-dropdown {
    display: block;
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    width: calc(100% - 2px);
    max-height: 300px;
    overflow-y: auto;
    z-index: 9999;
    top: 100%;
    left: 0;
    color: black;
    margin-top: 0;
    box-sizing: border-box;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown-results .clinic-result {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.dropdown-results .clinic-result:last-child {
    border-bottom: none;
}

.dropdown-results .clinic-result:hover {
    background-color: #f8f9fa;
}

.dropdown-results .clinic-name {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
}

.dropdown-results .clinic-address {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.dropdown-results .loading {
    padding: 12px 16px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.dropdown-results .no-results {
    padding: 12px 16px;
    text-align: center;
    color: #999;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .field-group label {
        font-size: 16px;
    }
    
    #unified-search-input {
        padding: 10px 14px;
        font-size: 16px;
    }
}