/* Doctors page layout + extracted page-only styles */

body.doctors-page .app-page-content
{
    width: 100%;
    box-sizing: border-box;
}

body.doctors-page .app-page-shell
{
    width: 100%;
    box-sizing: border-box;
    margin-top: calc(var(--nvx-nav-total-height) + var(--nvx-nav-content-gap));
}

body.doctors-page .doctors-main
{
    padding: 0.3rem;
    text-align: center;
}

body.doctors-page .dx-nav-footer
{
    gap: 12px;
}

.subscription-content-wrap
{
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 1.25rem 0 1.75rem 0;
    padding: 12px 0;
    background: rgba(0, 0, 0, 0.02);
}

.subscription-content
{
    width: min(1120px, 92vw);
    min-width: 320px;
    max-width: 1120px;
    font-size: 1rem;
    line-height: 1.45;
    text-align: left;
    border: 2px solid rgba(0, 0, 0, 0.14);
    border-radius: 12px;
    background: #ffffff;
    padding: 22px 24px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    box-sizing: border-box;
}

.subscription-content h1,
.subscription-content h2,
.subscription-content h3,
.subscription-content h4
{
    color: #1f3f86;
}

.subscription-content h1
{
    margin: 0 0 10px 0;
    text-align: center;
    font-size: 2rem;
    line-height: 1.1;
}

.subscription-content h2,
.subscription-content h3,
.subscription-content h4
{
    text-decoration: underline;
    text-underline-offset: 4px;
    margin-top: 0.6rem;
    margin-bottom: 0.45rem;
}

.subscription-content p
{
    margin: 0.35rem 0 0.75rem 0;
}

.subscription-content ul
{
    margin: 0.25rem 0 0.85rem 1.2rem;
    padding: 0;
}

.subscription-content li
{
    margin: 0.2rem 0;
}

.doctors-tool-body
{
    text-align: left;
    margin-top: 10px;
}

.doctors-intro
{
    margin: 0.25rem 0 1rem 0;
    color: #0f172a;
}

.doctors-controls-grid
{
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;
    margin: 12px 0 10px 0;
}

.doctors-field-group
{
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.doctors-field-group label,
.doctors-checkbox-row span
{
    font-weight: 700;
    color: #0f172a;
}

.doctors-field-group--zip input
{
    min-width: 120px;
}

.doctors-field-group--initial select
{
    min-width: 90px;
}

.doctors-field-group--max input
{
    width: 110px;
}

.doctors-field-group--specialty input
{
    min-width: 220px;
}

.doctors-field-group--include select
{
    min-width: 250px;
}

body.doctors-page input[type="text"],
body.doctors-page input[type="number"]
{
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid rgba(148, 163, 184, 0.9);
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.2;
    color: #0f172a;
    background: #ffffff;
    box-sizing: border-box;
    font-family: inherit;
}

body.doctors-page input[type="text"]:focus-visible,
body.doctors-page input[type="number"]:focus-visible
{
    outline: none;
    border-color: #7ea8ff;
    box-shadow: 0 0 0 2px rgba(126, 168, 255, 0.22);
}

body.doctors-page select,
.doctors-select
{
    display: inline-block;
    vertical-align: middle;
    width: auto;
    max-width: calc(100vw - 40px);
    min-height: 40px;
    padding: 6px 40px 6px 16px;
    margin: 0;
    border-radius: 10px;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 1px solid #9bbcff;
    background-color: #ffffff;
    color: #274690 !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    letter-spacing: 0;
    font-family: inherit;
    text-shadow: none;
    cursor: pointer;
    background-image:
        linear-gradient(45deg, transparent 50%, #4f7cff 50%),
        linear-gradient(135deg, #4f7cff 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 2px),
        calc(100% - 13px) calc(50% - 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}

body.doctors-page select:hover,
.doctors-select:hover
{
    border-color: #7ea8ff;
    background-color: #f8fbff;
    color: #274690 !important;
}

body.doctors-page select:focus-visible,
.doctors-select:focus-visible
{
    outline: none;
    border-color: #7ea8ff;
    box-shadow: 0 0 0 2px rgba(126, 168, 255, 0.22);
}

body.doctors-page select::-ms-expand,
.doctors-select::-ms-expand
{
    display: none;
}

body.doctors-page select option,
.doctors-select option
{
    color: #0f172a;
    background: #ffffff;
    text-shadow: none;
}

.doctors-checkbox-stack
{
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 2px;
    justify-content: flex-end;
}

.doctors-checkbox-row
{
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.doctors-checkbox-row input[type="checkbox"]
{
    transform: scale(1.1);
}

.doctors-button-row
{
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.doctors-btn
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 128px;
    width: auto;
    height: 36px;
    padding: 7px 14px;
    border-radius: 6px;
    background: linear-gradient(180deg, #1e3a8a 0%, #172554 100%);
    color: #ffffff !important;
    font-size: 0.92rem;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 6px 14px rgba(23, 37, 84, 0.25);
    border: 1px solid rgba(15, 23, 42, 0.8);
    white-space: nowrap;
    text-shadow: 0 1px 0 rgba(0,0,0,0.25);
    cursor: pointer;
    font-family: inherit;
    box-sizing: border-box;
}

.doctors-btn:hover:not(:disabled)
{
    background: linear-gradient(180deg, #2563eb 0%, #1e3a8a 100%);
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 10px 20px rgba(23, 37, 84, 0.35);
}

.doctors-btn:disabled
{
    opacity: 0.55;
    cursor: not-allowed;
}

.doctors-status
{
    margin: 8px 0;
    font-size: 0.95rem;
    color: #334155;
    font-weight: 600;
}

.doctors-error
{
    margin: 6px 0;
    color: #b00020;
    font-weight: 700;
}

.doctors-results-wrap
{
    overflow-x: auto;
    margin-top: 14px;
}

.doctors-results-table
{
    width: 100%;
    border-collapse: collapse;
    display: none;
}

.doctors-results-table th,
.doctors-results-table td
{
    border: 1px solid rgba(0,0,0,0.18);
    padding: 8px;
    text-align: left;
    vertical-align: top;
}

.doctors-results-table th
{
    background: rgba(0,0,0,0.03);
}

.subscription-content:focus
{
    outline: none;
}

.subscription-content:focus-visible
{
    outline: 3px solid rgba(0, 90, 180, 0.35);
    outline-offset: 3px;
}

@media (max-width: 980px)
{
    .subscription-content-wrap
    {
        padding: 8px 0;
    }

    .subscription-content
    {
        width: 92%;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce)
{
    .subscription-content
    {
        scroll-behavior: auto;
    }
}


.doctors-verify-debug
{
    margin-top: 4px;
    font-size: 11px;
    color: #64748b;
    word-break: break-all;
}

.doctors-field-group--last-name input,
.doctors-field-group--first-name input
{
    min-width: 180px;
}

.doctors-field-group--initial select
{
    min-width: 180px;
}



/* Doctors results table width tuning */
body.doctors-page .doctors-results-table
{
    table-layout: fixed;
    width: 100%;
}

body.doctors-page .doctors-results-table th:nth-child(1),
body.doctors-page .doctors-results-table td:nth-child(1)
{
    width: 17%;
}

body.doctors-page .doctors-results-table th:nth-child(2),
body.doctors-page .doctors-results-table td:nth-child(2)
{
    width: 10%;
}

body.doctors-page .doctors-results-table th:nth-child(3),
body.doctors-page .doctors-results-table td:nth-child(3)
{
    width: 42%;
}

body.doctors-page .doctors-results-table th:nth-child(4),
body.doctors-page .doctors-results-table td:nth-child(4)
{
    width: 10%;
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
}

body.doctors-page .doctors-results-table th:nth-child(5),
body.doctors-page .doctors-results-table td:nth-child(5)
{
    width: 12%;
    white-space: nowrap;
}

body.doctors-page .doctors-address-note,
body.doctors-page .doctors-phone-note
{
    display: block;
    margin-top: 4px;
    white-space: normal;
}

body.doctors-page .doctors-confidence-badge
{
    display: inline-block;
    margin-top: 6px;
}

body.doctors-page .doctors-results-table td
{
    overflow-wrap: anywhere;
}
