/*******************************************************************************
 *** Home Search ***************************************************************
 *******************************************************************************/

.therapist-search-tabs {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 15px 0;
}

.therapist-search-form input,
.therapist-search-form select {
    background: #fff !important;
}

.therapist-search-tabs li {
    margin-right: 10px;
}

.therapist-search-tabs a {
    text-decoration: none;
    padding: 10px;
    background-color: #ccc;
    color: white;
}

.therapist-search-tabs a.active,
.therapist-search-tabs a:hover {
    background-color: gray;
    color: #fff;
}

.search-tab-content .tab-pane {
    display: none;
}

.search-tab-content .tab-pane.active {
    display: block;
}

.therapist-search-button {
    margin: 15px 0;
}

.country-state-select {
    width: 48%;
}

label {
    font-weight: 600;
}

button.therapist-search-button.home-search {
    border-radius: 50px;
}

/*******************************************************************************
 *** Results Page **************************************************************
 *******************************************************************************/

.therapist-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.therapist-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
}

.therapist-info {
    flex-grow: 1;
    margin-left: 20px;
}

.therapist-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.therapist-button:hover {
    background-color: #3c5aa0;
    color: #fff;
}

.therapist-title {
    font-size: 18px;
    margin: -20px 0 0;
    font-weight: 600;
}

.therapist-filters-sidebar label {
    font-weight: 600;
}

.pagination a {
    background: #ededed;
    padding: 10px 15px;
    margin: 2px;
    color: #333;
    text-decoration: none;
}

.pagination a.active {
    background: #333;
    color: #fff;
    font-weight: bold;
}

.pagination span {
    padding: 10px 15px;
    margin: 2px;
    background: none;
    color: #333;
}

.therapist-image img {
    min-width: 200px;
    height: 200px;
    object-fit: cover;
    background-color: #f0f0f0;
}


/*******************************************************************************
 *** Profile Page **************************************************************
 *******************************************************************************/

 .therapist-header {
    background: #fff;
    display: flex;
    flex-wrap: wrap; /* Allows elements to wrap on smaller screens */
    justify-content: space-between;
    border: 1px solid #ccc;
    padding: 20px;
    gap: 20px;
}

.therapist-profile {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.therapist-image {
    flex: 1 1 15%; /* Basis of 20%, grows and shrinks as needed */
    /*max-width: 120px;  Optional max-width to prevent excessive scaling */
}

.therapist-image img {
    width: 100%;
    height: auto;
}

.therapist-basic-info {
    flex: 2 1 50%; /* Basis of 50%, grows and shrinks within available space */
   /* min-width: 200px; */
}

.therapist-contact-info {
    flex: 1 1 25%; /* Basis of 25%, grows and shrinks as space allows */
    /*min-width: 150px; */
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

.therapist-details {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.therapist-section {
    flex: 1;
    min-width: 200px; /* Sets a minimum width for better readability */
}

.therapist-button {
    display: inline-block;
    padding: 8px;
    color: #2b3a97;
    text-decoration: none;
    border-radius: 0;
    margin: 0px;
    width: 100%;
    text-align: center;
    border: 1px solid #2b3a97;
    border-radius: 50px;
}

.message-button {
    background-color: #2b3a97;
    color: #fff;
}

.therapist-about {
    margin-top: 30px;
}

.profile-phone {
    margin: 0;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .therapist-header {
        flex-direction: column; /* Stack sections vertically on smaller screens */
    }
}


/*******************************************************************************
 *** Modal *********************************************************************
 *******************************************************************************/

.modal {
    display: none;
    position: fixed;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    background-color: rgba(0, 0, 0, 0.7);
    top: 0;
    left: 0;
    z-index: 9999; /* Ensure it is on top */
}

.modal-content {
    margin: 0 auto;
    width: 80%;
    max-width: 800px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    overflow: auto;
    max-height: 100vh;
}

.closeBtn, .close,
.closeBtnShare {
    color: #e74c3c;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    top: -10px;
    position: relative;
}

.closeBtn:hover, .close:hover {
    color: #000;
}



#header {
    z-index: 1 !important; /* Lower the header's z-index to ensure the modal shows on top */
}







.therapist-basic-info h2 {
    margin: 0;
}

.therapist-basic-info h4 {
    margin-top: -10px;
    font-weight: 400;
    font-size: 22px;
}

.profile-header-icons {
    width: 25px;
    text-align: center;
}






.therapist-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #fff;
}

.therapist-item .therapist-image-column {
    flex: 0 0 200px; /* Set a fixed width for the image column */
    margin-right: 20px;
}

.therapist-item .therapist-info-column {
    display: flex;
    flex: 1; /* Ensures this column takes equal space */
    justify-content: space-between; /* Space between the basic and contact info */
    align-items: stretch; /* Make both basic-info and contact-info columns the same height */
}

.therapist-item .therapist-basic-info {
    flex: 2; /* Basic info takes more space */
    padding-right: 20px; /* Add some padding to separate the two sections */
}

.therapist-item .therapist-avatar {
    width: 200px;
    height: 200px;
}

.therapist-item .therapist-basic-info h2 {
    font-size: 20px;
    margin: 0;
}

.therapist-item .therapist-basic-info h4 {
    font-size: 18px;
    margin: -5px 0 5px;
    font-weight: 500;
}

.therapist-item .therapist-contact-info {
    flex: 1; /* Contact info takes less space */
    display: flex;
    flex-direction: column; /* Stack contact info vertically */
    justify-content: flex-start;
    align-items: flex-start; /* Align items to the start */
    width: 100%; /* Take up the full width of the section */
    margin-top: 10px;
}

.therapist-item .therapist-contact-info p {
    width: 100%; /* Make sure the contact info elements take up full width */
    margin: 5px 0;
}

.therapist-item .therapist-actions {
    width: 100%;
}

.therapist-item .therapist-actions a {
    width: 100%;
}

.therapist-item .therapist-button {
    color: #fff;
    padding: 10px 15px;
    border: 1px solid #334e8d;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    width: auto; /* Make buttons adjust to their content */
    border-radius: 50px;
}

.therapist-item .message-button {
    background-color: #334e8d;
}

.therapist-item .share-button,
.therapist-item .website-button {
    color: #334e8d;
}

.therapist-item .therapist-button:hover {
    background-color: #3c5aa0;
    color: #fff;
}





.therapist-maps-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Space between the maps */
    justify-content: space-between; /* Space between the maps when there are two */
}

.map-container {
    width: 100%; /* Default to 100% width */
    flex: 1; /* Allow maps to flexibly resize */
}

.therapist-maps-container .map-container {
    width: 100%; /* Set the width to 100% for a single map */
}

@media (min-width: 768px) {
    /* When the screen width is 768px or larger */
    .therapist-maps-container .map-container {
        width: 100%; /* Ensure one map stays 100% */
    }

    /* When there are two maps, set them to 50% */
    .therapist-maps-container .map-container + .map-container {
        width: 48%; /* Make both maps 50% with some space */
    }
}




p.map-title {
    font-weight: 600;
    font-size: 20px;
}






/* Ensure both fields are inline and take up half the space when both are visible */
.country-state-select {
    width: 49%;
    display: inline-block;
    box-sizing: border-box; /* Ensure padding and borders are included in width */
}

/* Full width for country select when state select is hidden */
#countrySelect {
    width: 100%;
    display: block;
    box-sizing: border-box; /* Ensure padding and borders are included in width */
}







@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.5;
    }
}

.fade {
    animation: fadeInOut 3s infinite; /* 4 seconds for the entire cycle (in and out) */
    width: 80%;
}






#go-back {
    cursor: pointer;
}


#filters-container {
    display: none;
}

/*******************************************************************************
 *** Responsive Styles *********************************************************
 *******************************************************************************/

@media (max-width: 999px) {

    /* Home Page
    *******************************************************************************/
    #countrySelect,
    #stateSelect,
    .home-search {
        width: 100% !important;
    }

    #countrySelect {
        margin-bottom: 10px;
    }

    /* Results Page
    *******************************************************************************/

    #filters-container {
        display: block;
    }

    /* aside#sidebar {
        display: flex !important;
        justify-content: center;
    }
    
    .ct-container {
        display: flex;
    }
    
    .ct-container article {
        order: 2;
    }
    
    .ct-container aside {
        order: 1;
    } */
    
}



@media (max-width: 750px) {

    /* Results */
    .therapist-item, .therapist-item .therapist-info-column {
        flex-direction: column;
        width: 100%;
        text-align: center;
        display: flex;
        align-items: center;
    }

    .therapist-item .therapist-image-column {
        margin-bottom: 10px;
    }


    /* Profile */
    .therapist-header {
        flex-wrap: nowrap;
    }

    .therapist-basic-info h2 {
        margin: 0 0 15px 0;
        font-size: 28px;
    }

    .therapist-basic-info h4 {
        font-size: 16px;
    }

    .therapist-section > :first-child {
        margin: 0 0 -28px 0;
    }

    .modal {
        overflow-y: auto;
    }

    .modal-content {
        width: 95%;
        transform: translateY(10px);
        top: 0;
    }
}


@media (max-width: 625px) {
    /* Pagination */
    .pagination a, .pagination-ellipsis {
        display: none;
    }

    .pagination {
        display: flex;
        justify-content: center;
    }

    .previous-page, .next-page {
        flex: 1 0 100% !important;
        display: flex !important;
        justify-content: center;
    }
}






.filter-group {
    margin-bottom: 10px;
}



.accordion-header button {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    text-align: left;
    width: 100%;
}

.accordion-content {
    padding: 10px;
    border: 1px solid #e1e8ed;
    border-top: none;
    margin-top: -8px;
}

.accordion-header {
    border: 1px solid #e1e8ed;
    cursor: pointer;
    padding: 7px 12px;
    margin-bottom: 5px;
    border-radius: 4px;
}

#focusAreasLabel {
    color: #3a4f66 !important;
}

.arrow {
    float: right;
}

.arrow img {
    width: 9px;
}







/* Tooltip Icon Styles */
.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    background-color: #c1c1c1;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    cursor: pointer;
    margin-left: 5px;
    position: relative;
}

/* Tooltip Text */
.tooltip-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    transform: translateX(5%);
    bottom: -2%;
    background-color: #555;
    color: #fff;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    display: none;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

/* Show Tooltip on Hover */
.tooltip-icon:hover::after {
    display: block;
    opacity: 1;
}
