/* Form-first layout; original Nip Tuck palette and portrait retained. */
.hero.hero-with-form { padding: 44px 0 48px; background: #f8f8f6; }
.hero-with-form > .container > .row { align-items: start !important; }
.hero-with-form .col-lg-7 { padding: 0 44px 0 12px; }
.hero-with-form .doctor-profile { display: flex; align-items: center; gap: 24px; margin-bottom: 28px; }
.hero-with-form .doctor-profile .portrait { flex: 0 0 184px; width: 184px; height: 224px; aspect-ratio: auto; margin: 0; padding: 4px; border-radius: 110px 110px 12px 12px; }
.hero-with-form .doctor-profile-copy { min-width: 0; border-left: 1px solid var(--brand); padding: 12px 0 12px 22px; }
.hero-with-form .eyebrow { display: block; font-size: clamp(19px,2vw,27px); letter-spacing: 1px; line-height: 1.25; margin: 0 0 12px; }
.hero-with-form .eyebrow i { display: none; }
.hero-with-form .experience-kicker { font-size: 16px; line-height: 1.5; margin: 0; }
.hero-with-form h1 { font-size: clamp(36px,3.7vw,56px); line-height: 1.08; margin-bottom: 20px; }
.hero-with-form .intro { max-width: 580px; line-height: 1.65; margin-bottom: 25px; }
.hero-with-form .hero-buttons { justify-content: flex-start; }
.hero-form-card { background: #fff; border: 1px solid var(--brand-line); border-top: 3px solid var(--brand); border-radius: 18px; padding: 30px; box-shadow: 0 14px 36px rgba(0,0,0,.07); scroll-margin-top: 110px; }
.hero-form-card h2 { font-size: clamp(27px,2.4vw,35px); line-height: 1.15; margin: 0 0 10px; }
.hero-form-intro { color: var(--brand-muted); margin: 0 0 22px; font-size: 16px; }
.hero-form-card .row { --bs-gutter-y: 14px; }
.hero-form-card .form-label { color: var(--brand-ink); font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.hero-form-card .form-control, .hero-form-card .form-select { min-height: 46px; font-size: 16px; border: 1px solid #c6c8ce; border-radius: 7px; background-color: #fff; }
.hero-form-card input:focus, .hero-form-card select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.hero-consent { margin: 18px 0; font-size: 13px; line-height: 1.5; }
.hero-form-card .request { width: 100%; padding: 14px 12px; white-space: normal; font-size: 17px; }
.hero-form-card #formStatus { font-size: 14px; line-height: 1.5; margin: 12px 0 0; }
.hero-form-card #formStatus:empty { display: none; }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.compact-credentials .gary-panel { height: 100%; padding: 26px; background: #f7f7f5; border-radius: 16px; }
.compact-credentials .gary-panel h3 { font-size: 28px; margin-bottom: 20px; }
.compact-credentials .gary-credentials h4 { font-size: 19px; line-height: 1.4; margin-bottom: 6px; }
.compact-credentials .gary-credentials p { font-size: 16px; line-height: 1.55; margin-bottom: 0; }
.compact-credentials .gary-credentials li { padding: 14px 0; }
.compact-credentials .gary-credentials li:first-child { padding-top: 0; }
.compact-credentials .gary-credentials li:last-child { padding-bottom: 0; }
@media (max-width: 1199px) and (min-width: 992px) {
 .hero-with-form .doctor-profile { gap: 18px; }
 .hero-with-form .doctor-profile .portrait { flex-basis: 145px; width: 145px; height: 185px; }
 .hero-with-form .col-lg-7 { padding-right: 30px; }
}
@media (max-width: 991px) {
 .hero.hero-with-form { padding: 28px 0 36px; }
 .hero-with-form .col-lg-7 { padding: 0 12px 8px; }
 .hero-with-form .doctor-profile { margin-bottom: 24px; }
 .hero-form-card { max-width: 620px; margin: 0 auto; }
}
@media (max-width: 575px) {
 .hero-with-form .doctor-profile { gap: 16px; }
 .hero-with-form .doctor-profile .portrait { flex-basis: 112px; width: 112px; height: 146px; }
 .hero-with-form .doctor-profile-copy { padding-left: 15px; }
 .hero-with-form .eyebrow { font-size: 18px; }
 .hero-with-form .experience-kicker { font-size: 14px; }
 .hero-with-form h1 { font-size: clamp(30px,8vw,44px); }
 .hero-form-card { padding: 24px 20px; }
 .compact-credentials .gary-panel { padding: 22px; }
 .hero-with-form h1{text-align:left}
 .hero-with-form .intro{text-align:left}
 ul.list-unstyled.mb-4 {
    text-align: left;
}
.hero-form-card .form-label{text-align:left;display:block;}
}


/* Template-specific styles moved out of PHP. */

    .footerlogo{filter:brightness(0)invert(1);}
        .brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.brand .brand-logo {
    display: block;
    width: 230px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

@media (max-width: 767px) {
    .brand .brand-logo {
        width: 180px;
    }
}
    

.ns-notice {color:green; padding: 14px; border: 1px solid var(--brand-line); background: #f0f3fc; border-radius: 8px; margin-bottom: 18px; font-size: 15px; }
#nav .dropdown-menu { border-color: var(--brand-line); padding: 8px; }
#nav .dropdown-item { font-size: 15px; padding: 9px 12px; border-radius: 5px; white-space: normal; }
#nav .dropdown-item:hover, #nav .dropdown-item:focus { background: var(--brand-tint); color: var(--brand); }
header .brand .brand-logo { width: 190px; }
#nav .nav-link { font-size: 15px; padding: 10px 8px; }
header .phone { font-size: 14px; white-space: nowrap; }
header .small-btn { font-size: 13px; padding: 12px 16px; }
@media (max-width: 1199px) and (min-width: 992px) { header .brand .brand-logo { width: 150px; } #nav .nav-link { padding: 10px 5px; font-size: 14px; } header .phone { font-size: 12px; margin: 0 8px; } }
@media (max-width: 991px) { #nav .dropdown-menu { position: static; box-shadow: none; margin-bottom: 10px; } #nav .navbar-nav { align-items: stretch; } }

.hero-with-form .doctor-profile .portrait { --portrait-position: center center; }