/*
 Theme Name: Astra Child Therapist
 Template: astra
 Version: 4.0
 Description: Child theme for Astra with therapist search and filters.
 Author: timimike
*/
:root{
    --mike-deep-green : #0d601e;    
}


@import url('https://fonts.googleapis.com/css2?family=Quantico:ital,wght@0,400;0,700;1,400;1,700&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

.therapist-col.info-col h3{
    color: var(--mike-deep-green) !important;
      font-family: "Quantico", sans-serif !important;

}

.therapist-search{
     font-family: "Roboto", sans-serif;
}


  /*font-family: "Quantico", sans-serif;*/


body {
    background: #f7f8fa;
}

#therapist-inputs *{
    display: block;
    /*width: 100%;*/
    
    /*background: red !important;*/
}


#therapist-inputs:nth-child(2){
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /*justify-content: space-between;*/
    /*align-items: start;*/
    gap: 10px;
    flex-direction: row;
}

.search-form > #therapist-inputs:first-child {
    display: flex;
    width: 100%;
}



*{
    /*color: red !important;*/
}


.therapist-card{
    display: grid;
    grid-template-columns: repeat(3, 1fr );
    gap: 50px;
    background: #c6c6c633;
    border-radius: 10px;
    margin: 50px 0;
    padding: 20px;
}


#therapist-inputs > *{
    border-radius: 10px;
    margin-bottom: 10px;
}


.tags-wrapper{
  display: flex;
  justify-content: start;
  align-items: start;
  gap: 10px;
  flex-wrap: wrap;
}


.tags-wrapper .tag{
    display: block;
    border: 1px solid;
    border-radius: 10px;
    padding: 5px;
    font-size: 12px;
    border: 2px solid #ffffff;
}




.therapist-col.image-col img{
    width:100%;
    height: 250px;
    object-fit: cover;
    border: 2px solid #ffffff;
    border-radius: 10px;
    object-position: 0px 1px;
}


.therapist-col.contact-col
{
    align-self: center;
}

a.view-profile {
    border: 1px solid #0d601e;
    border-radius: 10px;
    padding: 10px;
    /* color: #0d601e; */
    background: #0d601e;
    color: white;
}


.therapist-search{
    padding-top: 120px ;
}




/*AFTER*/


.therapist-popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.therapist-popup-content {
  background: #fff;
  /*max-width: 600px;*/
  /*width: 90%;*/
  padding: 20px;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
  max-height: 90vh;
  width: 90vw;
  overflow-y: scroll;
}

.therapist-popup-close {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 22px;
  cursor: pointer;
}

.popup-profile img {
  width: 200px;
  height: 200px;
  border-radius: 10px;
  margin-bottom: 15px;
  object-fit: cover;
  
}

.popup-profile h2 {
  margin-top: 0;
  color: #333;
}

.popup-profile ul {
  list-style: none;
  padding: 0;
}

.popup-profile ul li {
  margin-bottom: 6px;
  color: #555;
}

body.popup-open {
  overflow: hidden; /* prevent scrolling behind popup */
}

.ast-container > *{
    width: 100% !important;
}

.site-content > *, .site-content > * > * , .site-content > *  > * > *{
    height: 100% !important;
}

.page-id-9 header,
.page-id-9 footer{
    display: none !important;
}



.popup-profile .Top{
    display: flex;
    gap: 50px;
}

.popup-profile ul{
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.popup-profile .side{
    display: flex
;
    flex-direction: column;
    justify-content: center;
    align-items: start;
}



span.therapist-popup-close {
    background: #8080808f;
    border-radius: 50%
50%
;
     padding: 10px 20px; 
     color: white;
     background:#3e9d52fa ;
}



/* NEW NEW */
.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0d601e; /* matches your theme color */
  border-radius: 50%;
  width: 100px;
  height: 100px;
  animation: spin 0.8s linear infinite;
  margin: 80px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.ast-container{
    min-height: 100vh !important;
}








/*NEW*/


.therapist-popup {
    font-family: 'Roboto', Sans-Serif;
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: flex-start;
    overflow: auto;
    padding: 50px;
    z-index: 9999;
}

.therapist-popup-details {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    max-width: 1200px;
    width: 100%;
}

.popup-profile {
    display: flex;
    justify-content: space-between;
    align-items: start;
    /*gap: 100px;*/
}

.popup-profile .left {
    width: 60%;
    border-right: 2px solid #00800036;
    padding-right: 50px;
    border-radius: 50px;

}

.popup-profile .right {
    width: 40%;
     /*border-left: 2px solid #00800036;*/
    margin-left: 50px;
}


.popup-profile .right > div:first-child{
     /*padding-left: 50px;*/
}

.popup-profile .top {
    display: flex;
    align-items: center;
    gap: 30px;
}

.popup-profile .top img {
    width: 200px;
    height: 200px;
    border-radius: 20px;
}

.popup-profile .right {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /*border: 1px solid;*/
    border-radius: 10px;
    padding: 20px;
    gap: 50px;
    /*background: #00800036;*/
    /*background: #00800021;*/
/*#00800014*/
}

.popup-profile .left .desc p {
    line-height: 50px;
}

.popup-profile .details h3 {
    margin: 0 0 10px;
}

.popup-profile .details p {
    margin: 5px 0;
}

.popup-profile .attributes h4 {
    margin: 0 0 5px;
    font-family: 'Quantico', Sans-Serif;
}

.popup-profile .attributes p {
    margin: 0 0 15px;
}

.profileName{
    font-family: 'Quantico', Sans-Serif !important;
}


p.profileEmail{
    background: green;
    border-radius: 5px;
    color: white !important;
    padding: 10px;
    border: 1px solid green;
}



p.profileNumber{
    border-radius: 5px;
    padding: 10px;
    border: 1px solid green;
    color: green !important;
}



p.profileEmail a{
    color: white !important;
}


.popup-profile .left .details p{
    display: flex;
    gap: 10px;
    justify-content: start;
    align-items: center;

}

.popup-profile .left .flexIt{
    display: flex;
    justify-content: start;
    align-content: center;
    gap: 20px;
}



@media screen and (max-width: 767px) {
    .therapist-card {
        grid-template-columns: repeat(1, 1fr);
    }
    
    #therapist-inputs:nth-child(2){
        grid-template-columns: repeat(2, 1fr);
    }
    
    
    .popup-profile{
        flex-direction: column;    
    }
    
    
    .popup-profile .left,
    .popup-profile .right
    {
        width: 100%;
    }

    .popup-profile .top{
        flex-direction: column;
    }
    
    .therapist-popup-content{
        width 95vw !important;
        height: 95vh !important;
    }
    
    .therapist-popup{
        padding: 20px !important;
    }
    
    
    .popup-profile .right{
        padding: 0;
        margin: 0;
        gap: 0;
        margin-top: 20px;
    }
    
    .popup-profile .left{
        padding-right: 0 ;
        border-right: none;
    }
}