/* Health Center Search Form Styles */

.health-center-search-wrapper {
    background: #fff;
    padding: 60px 50px;
    border-radius: 20px;
    box-shadow: 0px 2px 70px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.health-center-search-wrapper h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--title-color);
    margin-bottom: 40px;
    text-align: center;
}

.health-center-search-form .form-row {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    flex-wrap: wrap;
}

.health-center-search-form .form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}

.health-center-search-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--title-color);
    font-size: 18px;
    line-height: 30px;
}

.health-center-search-form .form-control {
    width: 100%;
    height: 70px;
    padding: 0px 30px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 18px;
    color: #676767;
    transition: all 0.3s ease;
    background: #fff;
}

.health-center-search-form .form-control:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(249, 49, 59, 0.1);
}

.health-center-search-form .form-control::placeholder {
    color: #999;
    font-size: 16px;
}

/* Nice Select Styling */
/* Original select element - hide only when nice-select is initialized */
.health-center-search-form select.nice-select {
    width: 100% !important;
    height: 70px !important;
    line-height: 70px !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 10px !important;
    padding: 0px 30px !important;
    font-size: 18px !important;
    color: #676767 !important;
    background: #fff !important;
    display: block !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23676767' d='M6 8L0 0h12z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 30px center !important;
    background-size: 12px 8px !important;
}

/* When nice-select plugin is active, hide the native select to prevent double dropdowns */
.health-center-search-form select.nice-select.nice-select-initialized {
    display: none !important;
}

/* Nice-select wrapper (created by plugin) */
.health-center-search-form .nice-select {
    width: 100% !important;
    height: 70px !important;
    line-height: 70px !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 10px !important;
    padding: 0px 30px !important;
    font-size: 18px !important;
    color: #676767 !important;
    background: #fff !important;
    transition: all 0.3s ease !important;
    display: block !important;
    position: relative !important;
    cursor: pointer !important;
}

.health-center-search-form .nice-select .current {
    display: block !important;
    line-height: 70px !important;
    color: #676767 !important;
    font-size: 18px !important;
    padding: 0 !important;
    min-height: 70px !important;
}

.health-center-search-form .nice-select .current:empty::before {
    content: 'Select...';
    color: #999;
}

.health-center-search-form .nice-select:focus,
.health-center-search-form .nice-select:hover {
    border-color: var(--secondary-color) !important;
}

.health-center-search-form .nice-select:after {
    height: 8px;
    width: 8px;
    border-bottom: 2px solid #676767;
    border-right: 2px solid #676767;
    right: 30px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.health-center-search-form .nice-select.open:after {
    transform: translateY(-50%) rotate(-135deg);
}

.health-center-search-form .nice-select .list {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.15);
    margin-top: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.health-center-search-form .nice-select .option {
    padding: 15px 30px;
    min-height: 50px;
    line-height: 50px;
    font-size: 16px;
}

.health-center-search-form .nice-select .option:hover,
.health-center-search-form .nice-select .option.focus {
    background-color: rgba(249, 49, 59, 0.1);
    color: var(--secondary-color);
}

.health-center-search-form .nice-select .option.selected {
    font-weight: 600;
    color: var(--secondary-color);
}

/* Button Styling */
.health-center-search-form .search-btn-wrapper {
    flex: 0 0 auto;
    min-width: 200px;
}

.health-center-search-form .search-btn {
    width: 100%;
    height: 70px;
    line-height: 70px;
    padding: 0;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.health-center-search-form .search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(249, 49, 59, 0.3);
}

/* Health Card Styles */
.health-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0px 2px 70px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.health-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.15);
}

.health-card .logo-box {
    margin-bottom: 20px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.health-card .logo-box img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}

.health-card .no-logo {
    width: 100px;
    height: 100px;
    background: #f5f5f5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.health-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--title-color);
}

.health-card p {
    color: #666;
    margin-bottom: 20px;
    font-size: 15px;
}

.health-card .btn {
    padding: 12px 30px;
    border-radius: 50px;
}

/* Responsive Design */
@media (max-width: 991px) {
    .health-center-search-wrapper {
        padding: 40px 30px;
    }

    .health-center-search-wrapper h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .health-center-search-form .form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .health-center-search-form .form-group {
        min-width: 100%;
    }

    .health-center-search-form .search-btn-wrapper {
        min-width: 100%;
    }
}

@media (max-width: 767px) {
    .health-center-search-wrapper {
        padding: 30px 20px;
    }

    .health-center-search-form .form-control,
    .health-center-search-form .nice-select {
        height: 60px !important;
        line-height: 60px !important;
        font-size: 16px !important;
    }

    .health-center-search-form .search-btn {
        height: 60px;
        line-height: 60px;
        font-size: 16px;
    }
}
