/* SPECIALISTS LOCATOR PAGE */

body {
    background: #A7ACDD !important;
    min-height: 100vh;
}




/* Estilos do container do toggle */
.toggle-container {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 32px;
}

/* Esconde o input real */
.toggle-container input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Estilo do track (trilho) */
.toggle-track {
    position: absolute;
    cursor: pointer;
    background-color: #ccc; /* Cinza quando inativo */
    border-radius: 32px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: .4s;
}

/* Estilo do thumb (bola) */
.toggle-thumb {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    height: 26px;
    width: 26px;
    left: 4px;
    top: 3px;
    transition: .4s;
}

/* Estilo quando o toggle está ativo */
.toggle-container input:checked + .toggle-track {
    background-color: #40C4FF; /* Azul quando ativo */
}

/* Posição do thumb quando ativo */
.toggle-container input:checked + .toggle-track .toggle-thumb {
    transform: translateX(19px); /* Move a bola para a direita */
}

/* Efeito de sombra suave no thumb */
.toggle-thumb {
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}





.doctors-locator {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
    background: #F6F7FE;
    border-radius:0 0 60px 60px ;
}

.locator-hero {
    background: url(../images/hero-locator.png) center center no-repeat;
    background-size: cover;
    height: 490px;
    padding: 0 80px;
    display: flex;
}

.locator-hero .bottom {
    margin-top: auto;
    padding-bottom: 40px;
}

.locator-content {
    padding:40px 80px 200px 80px
}

.doctors-locator h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    letter-spacing: 1px;
    font-weight: 600;
    line-height: 39px;
    color:#FFFFFF;
}

.doctors-locator p {
    color:#7C7C7C;
    font-size: 15px;
    line-height: 26px;
    margin-bottom: 30px;
}

.doctors-list-section {
    margin-top: -180px;
}

.doctors-list-section .miles {
    max-width: 928px;
    margin: 30px auto;
    position: relative;
    color: #FFFFFF;
    text-align: center;
}

.doctors-list-section .miles::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #FFFFFF;
    z-index: -1;
}
.doctors-list-section .miles span {
    background: #A7ACDD;
    padding: 0 15px;
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
    display: inline-block;
    position: relative;
    z-index: 1;
    border-radius: 20px;
}

.doctors-form {
    background: #FFFFFF;
    border-radius: 36px 46px 36px 46px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
}

.submit-btn-noctrix {
    font-family: "Poppins", Sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    background-color: #8367C8 !important;
    color: #FFFFFF !important;
    border-style: none;
    border-radius: 36px 36px 36px 36px;
    box-shadow: 2.78px 2.78px 0px 0px #71C9EC !important;
    padding: 18px 70px 18px 70px;
    margin-top: 40px;
    max-height: 60px;
    display: inline-block;
    max-width: 315px;
}

.submit-btn-noctrix img {
    margin: -1px 5px 0 0;
}

.submit-btn-noctrix:hover {
    background: #A975F8 !important;
    color:#FFFFFF !important; 
}

.submit-btn-noctrix:active {
    box-shadow: none !important;
    margin-left:2px;
    margin-top: 42px;
}

.submit-btn-noctrix.booknow {
    margin-top: 0;
    padding: 12px 60px !important;
}

#doctors-zip {   
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color:#7C7C7C;
    outline: none !important; 
}


#doctors-zip::placeholder {
    color:#B9B9B9;
}


/* Specialists Locator */

.specialist-container {
    width: 100%;
    max-width: 1082px;
    margin: 30px auto 0;
    font-family: 'Poppins', sans-serif;    
    background: #FFFFFF;
    border-radius: 60px 30px 30px 30px;
    padding-top: 20px;
}

.specialist-header {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0 50px;
}

.specialist-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    color:#6B60AD;
    font-weight: 500;  
}

.specialist-entry {
    margin-bottom: 50px;
}

.specialist-entry-fields {
    display: grid;
    grid-template-columns:150px auto 390px;
    gap: 40px;
    z-index: 9;
    padding-bottom: 30px;
}

.is-accepting {
    background: linear-gradient(135deg, #97DA94, #78DEFF);
    border: solid 2px #FFFFFF;
    width: 25px;
    height: 25px;
    border-radius: 20px;
    position: absolute;
    right: -3px;
    top: 0;
}

.doctor-details {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap:10px;
}

.accepting {
    font-size: 17px;
    color: #7C7C7C;
    font-weight: 400;
    display: inline-flex;
}

.accepting span {
    background: linear-gradient(135deg, #97DA94, #78DEFF);
    width: 13px;
    height: 13px;
    border-radius: 13px;
    margin: 6px 4px 0 0;
}

.telehealth {
    font-size: 17px;
    color: #7C7C7C;
    font-weight: 400;
    display: inline-flex;
}

.specialist-entry-fields .medical-center-name {   
    font-size: 20px;
    color: #5D5D5D;
    line-height: 150%;
    font-weight: 600;
    letter-spacing: normal;
}

.specialist-entry-column1 {
    text-align: right;
    padding-top: 20px; 
}

.specialist-entry-column2 p {
    margin: 10px 0;
}

.specialist-entry-column2 svg {
    display: inline-block;
    margin: 0 0 -3px 0;
    width: 17px;
    text-align: center;
}

.specialist-entry-column2 .phone a {
    margin: 0 0 2px 5px !important;
}

.specialist-entry-column2 a {
    color:#7F7F7F !important;
    text-decoration: none !important;
    margin-left: 10px;
    display: inline-block;
    font-size: 16px;
    line-height: 20px;
    margin:0 0 2px 4px !important;
    font-weight:400 !important;
}

.specialist-entry-column2 .city-state {
    color:#7F7F7F !important;
    font-size: 16px;
    line-height: 20px;
    margin:-5px 0  0 28px !important;
    font-weight: 500 !important;
}

.specialist-entry-column3 {

}

@keyframes loading { 
    0% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0 50%;       
    }
}

.specialist-entry-column3 iframe {
    border-radius: 20px 72px 0px 20px;  
}

.specialist-entry-footer {
    background: #F8F9FC;
    border-radius: 0 0 30px 30px;
    padding:0;
    position: relative;
    z-index: 2;
    transition: all ease 0.3s;
}

.specialist-entry-footer .entry-line {
    display: grid;
    grid-template-columns: 55% 1fr;
    gap:30px;
    padding: 30px;
    height: 100%;
}

.specialist-entry-footer .entry-line.odd {
    background-color: #FFFFFF;
}

.specialist-entry-footer .entry-line.odd.last {
    border-radius: 0 0 20px 57px;
}

.specialist-entry-footer .entry-line .line-left {
    display: flex;
    flex-direction: row;
    gap:20px;
    align-items: flex-start;
    padding-left: 150px;
}

.specialist-entry-footer .entry-line .line-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
}

.specialist-entry-footer .doctor-name {
    font-size: 20px;
    color:#5D5D5D;
    font-weight: 500;
    line-height: 
}

.mobile-doctor-name {
    display: none;
}

.entry-footer-left {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.entry-footer-left img {
    width: 52px;
    height: 52px;
    margin-right: 20px;
}

.entry-footer-left p {
    font-size: 17px;
    font-weight: 600;
    line-height: 22px;
    color:#5D5D5D;
}

.locator-left {
    text-align: center;
}

.entry-footer-left .second-doctor-name {
    margin-left: 20px;
}

.distance-to-user {
    color: #7F7F7F;
    font-size: 16px;
    display: inline-block;
    font-weight: 400;
}

.distance-to-user svg {
    margin-right: 5px;
}

.distance-to-user a {
    text-decoration: none !important;
    color: #6B60AD;   
}

.specialist-entry-footer svg {
    display: inline-block;
    margin: 0 10px -3px 0;
}

.specialist-website {
    padding: 20px 30px;
    background-color: #8468C8;
    border-radius: 36px 46px 36px 46px;
    text-decoration: none !important;
    display: inline-block !important;
    margin-top: 10px;
}
.specialist-website span {
    color: #FFFFFF !important;
    font-weight: 600 !important;
    font-size: 15px !important;
}

.specialist-website img {
    margin-right: 5px;
}

.specialist-website:hover {
    opacity: 0.8; 
}

.entry-footer-right {
    text-align: right;  
}


/* ACCORDION TOGGLE BUTTON */
.accordion-toggle-wrapper {
    text-align: center;
}

.accordion-toggle {
    background: #57529B;
    border: none;
    padding: 20px 24px;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    justify-content: center;
    color: #FFFFFF;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border-radius: 0 0 30px 30px;
    transition: all 0.3s ease;
    width: 100%;
}

.accordion-toggle:hover {
    background: #373284;
}

.accordion-toggle svg {
    transition: transform 0.3s ease;
}

/* Entry lines extra (ocultos por padrão) */
.specialist-entry-footer .entry-line {
    transition: all 0.3s ease;
}

/* Para garantir que o container não corte o conteúdo ao expandir */
.specialist-container {
    overflow: visible !important;
}



.doctors-pagination {
    width: 100%;
    max-width: 1082px;
    margin: 0 auto 0;
    text-align: center;
    padding-bottom: 60px;
}

.doctors-pagination .current-page {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color:#FFF;
    border-radius: 10px 5px 10px 5px;
    padding: 10px 15px;
    background: none;
    margin: 0 3px;
}

.doctors-pagination .page-link {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color:#FFFFFF;
    border-radius: 30px;
    padding: 10px 17px;
    background: #57529B;
    margin: 0 3px;
    text-decoration: none;
    font-weight: 400;
}

.doctors-pagination .prev-page,
.doctors-pagination .next-page {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color:#FFFFFF;
    border-radius: 30px;
    padding: 10px 17px;
    background: #57529B;
    margin: 0 3px;
    text-decoration: none;
    font-weight: 400;
}

.doctors-pagination .page-link:hover,
.doctors-pagination .prev-page:hover,
.doctors-pagination .next-page:hover {
    background: #38337B;
}

.doctors-pagination .morepages {
    padding: 10px 15px;
}

.specialist-header .left {
    display: flex;
    align-items: center;
    color:#7C7C7C;
    font-size: 15px;
}

.specialist-header .right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.doctor-filter {
    background: #FFFFFF;
    border-radius: 30px;
    padding: 10px 20px;
    color: #57529B;
    font-size: 15px;
    font-weight: 700;
    line-height: 25px;
    display: flex;
    flex-direction: row;
    width: fit-content;
    align-items: flex-end;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap:5px;
    position: relative;
}

.doctor-filter .filter-checkboxes,
.doctor-filter .filter-checkboxes input {
    display: none;
}


.filter-dropdown {
    position: absolute;
    top: 0;
    right: 20px;
    background: #FFFFFF;
    box-shadow: 0px 14px 44px rgba(0, 0, 0, 0.25);
    border-radius: 45px 10px 45px 45px;
    margin-top: 20px;
    padding: 42px 0 36px 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 378px;
    /* Transição suave */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.doctor-filter:hover .filter-dropdown,
.filter-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item{
    display: flex;
    flex-direction: row;
    padding:5px 20px;
}

.dropdown-item:hover {
    background: #E1DFEE;
}

.dropdown-item .dropdown-icon {
    display: flex;
    align-items: center;
    width: 45px;
}

.dropdown-item .dropdown-text {
    display: flex;
    align-items: center;
    flex: 1;
}

.dropdown-item .dropdown-check {
    width: 51px;
    display: flex;
    align-items: center;
}



.loadmore-container {
    text-align: center;
    margin: 50px 0 0 0;
}

.loadmore-container .load-more-specialists {
    padding: 20px 30px !important;
    background-color: #8468C8 !important;
    color:#FFFFFF !important;
    border-radius: 36px 46px 36px 46px !important;
    box-shadow: 2.78px 2.78px 0px 0px #71C9EC !important;
    border: none !important;
}

.loadmore-container .load-more-specialists:hover {
    color: #8FF5FC !important;
    box-shadow: none !important;
}


/* FORM UPDATED */

.multistep-form {
    width: 100%;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}

.ms-item {
    width: 100%;
    background: #FFFFFF;
    border-radius: 20px 30px 20px 30px;
    display: flex;
    align-items: center;
    position: relative;
}

.ms-item label {
    padding: 25px 25px 25px 40px;
    margin: 0 !important;
    display: flex;
    position: absolute;
    left: 0;
    top: 0; 
}

.ms-item input[type=text],
.ms-item input[type=email],
.ms-item select {
    width: 100% !important;
    border: none !important;
    padding: 25px 0 25px 92px !important;
    font-size: 16px !important;
    letter-spacing: 1px !important;
    color: #676767 !important;
    font-family: 'Poppins', sans-serif !important;
    border-radius: 20px 30px 20px 30px !important;
    outline: none !important;
}

.ms-item select {
    padding-right: 30px;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml,%3Csvg%20width%3D%2216%22%20height%3D%229%22%20viewBox%3D%220%200%2016%209%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M1%201L6.58579%206.58579C7.36684%207.36684%208.63317%207.36683%209.41421%206.58579L15%201%22%20stroke%3D%22%23A975F8%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 1.5em top 50%;
    background-size: .65em auto;
}

/* For IE */
.ms-item select::-ms-expand {
display: none;
}

.ms-item.error {
    border:solid 1px tomato;
    color: tomato;
}

.locator-item {
    width: 100%;
    display: flex;
    flex-direction: row;
    margin-top: 20px;
}
.locator-item input[type=checkbox] {
    border: solid 2px #A975F8;
    border-radius: 5px;
    width: 50px;
    height: 32px;
    box-sizing: border-box;
    outline: none !important;
}
.locator-item input[type=checkbox] + label {
    font-size: 12px;
    line-height: 24px;
    font-weight: 400;
    color:#7C7C7C;
}

.locator-item input[type=checkbox]::after {
    border-color:#009DCE;
    border-radius: 1px;
    width: 9px;
    height: 20px;
    left:10px;
}


/* Button Disable */
.spinner {
    display: none;
    width: 28px;
}

.button-disabled, .button-disabled:hover, .button-disabled:active {
    background-color: #828d8c !important;
    color:#FFFFFF !important;
    box-shadow: none !important;
    cursor: not-allowed;
}

.button-disabled .spinner {
    display: inline-block;
}

.button-disabled .icon {
    display: none;
}



.locator-bt-wrapper {
    text-align: right;
}

/* Media Queries for Responsiveness */
/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) { 
    .doctors-locator {
        padding-left: 50px;
        padding-right: 50px;
    }
    
}

@media (max-width: 1099.98px) { 
    
    .doctors-locator {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .doctors-list-section {
        padding: 0 40px;
    }
    
}

@media (max-width: 991.98px) { 
    .doctors-list-section {
        padding: 0 30px;
    }
    .specialist-entry-fields,
    .specialist-entry-footer {
        grid-template-columns: 1fr;
    }
    .specialist-entry-footer .entry-line {
        padding: 30px 30px;
        grid-template-columns: 1fr 1fr;
    }
    .specialist-entry-column1 {
        display: none;
    }
    .doctors-locator,
    .specialist-container {
        padding: 0;
    }
    .doctors-pagination {
        padding-top: 50px;
    }
    .specialist-entry-footer .entry-line .line-right {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    .accepting {
        margin-left: 0;
    }
    .specialist-entry-footer .entry-line .line-left {
        padding-left: 0;
    }

    .specialist-entry-fields {
        padding: 40px;
    }
}

/* For tablets and medium devices */

@media (max-width: 768px) {
    .locator-hero {
        background-position: center center;
        padding:0 20px;
    }
    .locator-hero  h1 {
        line-height: 105%;
    }
    .locator-content {
        padding:40px 20px 200px 20px;
    }
    .specialist-header {
        padding: 0 20px;
    }
    .filter-dropdown {
        width: 330px;
    }
    .doctors-locator {
        grid-template-columns: 1fr;
    }
    
    .doctor-entry-column2,
    .doctor-entry-column3 {
        margin-right: 15px;
    }
    
    .doctor-entry-column2 {
        min-width: 50%;  /* 50% width to allow two columns side-by-side */
    }
    
    .doctor-entry-column1,
    .doctor-entry-column3 {
        flex-basis: 100%;  /* Force 100% width to stack on smaller screens */
    }
    
    .specialist-entry-column1,
    .specialist-entry-column2 {
        padding: 0 15px;
    }
    
    .specialist-entry-column3 {
        max-height: 199px;
        overflow: hidden;
    }

    .specialist-entry-fields {
        padding: 20px;
    }
    
    .specialist-entry-fields,
    .specialist-entry-footer {
        grid-template-columns: 1fr;
    }
    
    .locator-left img{
        width: 100%;
        height: auto;
    }
    
    .entry-footer-left {
        display: none;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .submit-btn-noctrix  {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }
    
    .specialist-entry {
        padding:0;
        background: #FFFFFF;
        border-radius: 20px 72px 57px 29px;
    }

    .specialist-entry-footer .entry-line.odd {
        background: #f9f5ff;
    }
    
    .specialist-entry-footer {
        padding: 20px 20px;
        margin: 0 !important;
        border-radius: none !important;
    }
    
    .specialist-entry-footer .distance-to-user {
        width: 100%;
        text-align: center;
        margin-top: 20px;
    }
    
    .specialist-entry-footer .specialist-website {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
    
    .mobile-doctor-name {
        display: flex;
        flex-direction: row;
        margin-top: 20px;
    }
    
    .mobile-doctor-name p {
        font-size: 17px;
        font-weight: 600;
        line-height: 22px;
        color: #5D5D5D;
        margin-left: 10px;
    }

    .doctors-list-section {
        padding: 0 30px;
    }
    
}


/* For mobile devices */

@media (max-width: 480px) {
    
    .doctor-entry-column1,
    .doctor-entry-column2,
    .doctor-entry-column3 {
        flex-basis: 100%; /* Force 100% width to stack all columns on mobile screens */
        margin-right: 0;
    }
    
    .submit-btn-noctrix {
        padding: 18px 40px 18px 40px;
    }
    
    .specialist-header {
        grid-template-columns: 1fr;
    }
    .doctor-filter {
        align-items: flex-start;
    }
    .specialist-container {
        margin-top: 30px;
        padding: 0;
    }
    .specialist-entry-footer .entry-line {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .distance-to-user {
        margin-bottom: 15px;
    }
    .telehealth,
    .accepting {
        font-size: 14px;
    }
    .specialist-entry {
        margin-bottom: 0;
    }
    .specialist-entry-column2 a {
        display: inline;
    }
}

@media (max-width: 400px) {
    .doctors-list-section {
        padding: 0 15px;
    }
    .distance-to-user {
        margin-bottom: 25px;
    }
}