/* Scoped styles: no changes to other page forms or booking dialogs. */
.pd-doctor-search {
    --pd-search-bg: #f1f7f5;
    --pd-search-surface: #fff;
    --pd-search-text: #24463d;
    --pd-search-border: #d5e3dd;
    padding: clamp(1.25rem, 3vw, 2.5rem) !important;
    margin-block: 2rem;
    border: 1px solid var(--pd-search-border);
    border-radius: 1.5rem;
    background: var(--pd-search-bg);
    color: var(--pd-search-text);
    overflow: visible;
}
.pd-doctor-search h2 {font: inherit; font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 700; color: inherit; margin-block: .7rem;}
.pd-doctor-search p {line-height: 1.9;}
.pd-doctor-search label {display: block; margin-bottom: .6rem; font-weight: 600;}
.pd-search-row {display: flex; align-items: flex-start; gap: .75rem;}
.pd-search-field {flex: 1; min-width: 0;}
.pd-doctor-search .ts-wrapper {width: 100%;}
.pd-doctor-search .ts-control {min-height: 3.5rem; padding: .9rem 1rem !important; border-radius: .8rem; background: var(--pd-search-surface) !important; color: var(--pd-search-text); border: 1px solid var(--pd-search-border); font: inherit;}
.pd-doctor-search .ts-control input {font: inherit !important; color: inherit;}
.pd-doctor-search .ts-dropdown {background: var(--pd-search-surface); color: var(--pd-search-text); border: 1px solid var(--pd-search-border); border-radius: .8rem; overflow: hidden; font: inherit; z-index: 100;}
.pd-doctor-search .ts-dropdown-content {max-height: min(340px, 50vh); overflow-y: auto;}
.pd-doctor-search .ts-dropdown .active {background: var(--pd-search-bg); color: inherit;}
.pd-doctor-search .pd-doctor-option {display: flex; gap: .8rem; align-items: center; padding: 1rem; white-space: normal;}
.pd-doctor-option img {border-radius: 50%; object-fit: cover; flex-shrink: 0;}
.pd-doctor-option div {min-width: 0; overflow-wrap: anywhere;}
.pd-doctor-option span, .pd-doctor-option small {display: block; margin-top: .25rem;}
.pd-doctor-search #resetThis {min-height: 3.5rem; padding: .8rem 1rem; border: 1px solid var(--pd-search-border); border-radius: .8rem; background: var(--pd-search-surface); color: inherit; font: inherit;}
.pd-doctor-search #pd-search-status {margin: .75rem 0 0; font-size: .9rem;}
.pd-doctor-dialog {width: min(620px, 94vw) !important; max-height: 92vh; max-height: 92dvh; overflow-y: auto; border-radius: 1.5rem; font-family: inherit;}
.pd-doctor-dialog .swal2-html-container {overflow-wrap: anywhere;}
.pd-doctor-summary img {border-radius: 50%; object-fit: cover;}
.pd-doctor-summary h3 {font: inherit; font-size: 1.25rem; font-weight: 700; margin-block: 1rem; color: inherit;}
.pd-doctor-dialog .swal2-actions {gap: .6rem; padding: .5rem 1rem; flex-wrap: wrap;}
.pd-doctor-dialog .swal2-styled {margin: 0; font-family: inherit; border-radius: .75rem;}
.pd-doctor-dialog .swal2-confirm {background: #176e59;}
.pd-doctor-dialog .swal2-deny {background: #17677d;}
[data-bs-theme="dark"] .pd-doctor-search {--pd-search-bg: #172d29; --pd-search-surface: #203731; --pd-search-text: #e4efeb; --pd-search-border: #425b52;}
[data-bs-theme="dark"] .pd-doctor-dialog {background: #203731; color: #e4efeb;}
[data-bs-theme="dark"] .pd-doctor-dialog .swal2-title,
[data-bs-theme="dark"] .pd-doctor-dialog .swal2-html-container {color: inherit;}
@media (max-width: 480px) {
    .pd-search-row {gap: .4rem;}
    .pd-doctor-search {padding: 1rem !important;}
    .pd-doctor-dialog .swal2-actions {flex-direction: column; align-items: stretch;}
    .pd-doctor-dialog .swal2-styled {width: 100%;}
}
@media print {.pd-doctor-search {display: none !important;}}

/* Match the Article search form; scoped to these two pages. */
.pedra-public #doctorsearch.pd-doctor-search {
    padding: 30px !important;
    border: 0;
    border-radius: 24px;
    background: var(--pd-soft);
    color: var(--pd-ink);
    margin: 0 0 26px;
    position: relative;
}
#doctorsearch.pd-doctor-search > .container {width: 100%; max-width: none;}
#doctorsearch.pd-doctor-search .section-title {margin-bottom: 28px;}
#doctorsearch.pd-doctor-search .section-title > h2 {font-size: 13px; color: var(--pd-deep); font-weight: 700;}
#doctorsearch.pd-doctor-search .section-title .fs-2 p {font-size: clamp(21px, 2.4vw, 28px);}
#doctorsearch.pd-doctor-search .input-group {display: flex; flex-wrap: nowrap; align-items: stretch;}
#doctorsearch.pd-doctor-search .ts-wrapper {flex: 1; min-width: 0; width: auto;}
#doctorsearch.pd-doctor-search .ts-control {min-height: 50px; background: var(--pd-surface) !important; color: var(--pd-ink); border-color: var(--pd-line); border-radius: 12px;}
#doctorsearch.pd-doctor-search #resetThis {display: inline-flex; align-items: center; justify-content: center; flex: 0 0 50px; min-height: 50px; padding: .75rem; background: var(--pd-soft); color: var(--pd-ink); border: 1px solid var(--pd-line); border-radius: 12px; cursor: pointer;}
#doctorsearch.pd-doctor-search #resetThis:focus-visible {outline: 2px solid var(--pd-deep); outline-offset: 3px;}
#doctorsearch.pd-doctor-search #pd-search-status:empty {display: none;}
@media (max-width: 575px) {.pedra-public #doctorsearch.pd-doctor-search {padding: 22px !important;}}