/* Shared consultation form: the selected mockup, with native usable controls. */
body.portal-site.portal-consultation-layout .portal-image-consultation {
    display: none;
}

@media (min-width: 1280px) {
    body.portal-site.portal-consultation-layout .portal-image-consultation {
        position: fixed;
        z-index: 1201;
        inset: 0 0 0 auto;
        display: block;
        box-sizing: border-box;
        width: var(--portal-consult-width, 25vw);
        min-width: 320px;
        height: 100vh;
        height: 100dvh;
        padding: 45px 27px 30px 32px;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        border: 0;
        border-left: 1px solid #d8d7d0;
        background: #faf9f5;
        color: #090a08;
        box-shadow: -5px 0 13px rgb(34 31 17 / 10%);
    }

    body.portal-site.portal-consultation-layout .portal-image-consultation::before {
        position: absolute;
        inset: 0 auto auto 0;
        display: block;
        width: 4px;
        height: 170px;
        background: #ffd31d;
        content: "";
    }

    body.portal-consultation-layout .portal-image-rail-brand {
        position: absolute;
        inset: 11px 17px auto auto;
        margin: 0;
        font-size: 16px;
        font-weight: 900;
        line-height: 24px;
        letter-spacing: -0.06em;
    }

    body.portal-consultation-layout .portal-image-consultation-heading {
        margin: 0 0 17px;
        padding: 0;
    }

    body.portal-consultation-layout .portal-image-rail-kicker {
        margin: 0 0 6px;
        font-size: 13px;
        font-weight: 500;
        line-height: 20px;
        letter-spacing: 0;
    }

    body.portal-consultation-layout .portal-image-consultation-heading h2 {
        margin: 0;
        color: #080906;
        font-size: clamp(24px, 1.823vw, 31px);
        font-weight: 900;
        line-height: 1.3;
        letter-spacing: -0.04em;
        white-space: nowrap;
    }

    body.portal-consultation-layout .portal-image-rail-intro {
        margin: 6px 0 0;
        color: #50535b;
        font-size: 13px;
        font-weight: 400;
        line-height: 20px;
        letter-spacing: 0;
    }

    body.portal-consultation-layout .portal-image-consultation-form {
        position: static;
        display: block;
        margin: 0;
        padding: 0;
        background: transparent;
    }

    body.portal-consultation-layout .portal-image-consultation-fields {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        row-gap: 10px;
    }

    body.portal-consultation-layout .portal-image-consultation-field {
        min-width: 0;
        margin: 0;
        padding: 0;
    }

    body.portal-consultation-layout .portal-image-consultation-field label {
        display: flex;
        align-items: center;
        gap: 7px;
        min-height: 21px;
        margin: 0 0 3px;
        color: #10110f;
        font-size: 15px;
        font-weight: 800;
        line-height: 21px;
        letter-spacing: -0.025em;
    }

    body.portal-consultation-layout .portal-image-field-required {
        display: inline-flex;
        align-items: center;
        min-height: 16px;
        padding: 0 4px;
        border-radius: 2px;
        background: #cd5047;
        color: #fff;
        font-size: 10px;
        font-weight: 600;
        line-height: 16px;
        letter-spacing: 0;
    }

    body.portal-consultation-layout .portal-image-consultation-field label small {
        color: #4b4e55;
        font-size: 12px;
        font-weight: 400;
        line-height: 21px;
        letter-spacing: 0;
    }

    body.portal-consultation-layout .portal-image-consultation-field input,
    body.portal-consultation-layout .portal-image-consultation-field select,
    body.portal-consultation-layout .portal-image-consultation-field textarea {
        position: static;
        display: block;
        box-sizing: border-box;
        width: 100%;
        height: 34px;
        min-height: 34px;
        margin: 0;
        padding: 5px 11px;
        border: 1px solid #cbd0d5;
        border-radius: 6px;
        background: #fff;
        color: #24272c;
        font-family: inherit;
        font-size: 13px;
        font-weight: 400;
        line-height: 22px;
        letter-spacing: 0;
        opacity: 1;
        box-shadow: 0 1px 2px rgb(0 0 0 / 2%);
        pointer-events: auto;
        color-scheme: light;
    }

    body.portal-consultation-layout .portal-image-consultation-field textarea {
        height: 64px;
        min-height: 64px;
        padding-top: 7px;
        resize: vertical;
    }

    body.portal-consultation-layout .portal-image-consultation-field select {
        padding-top: 4px;
        padding-bottom: 4px;
    }

    body.portal-consultation-layout .portal-image-consultation-field input::placeholder,
    body.portal-consultation-layout .portal-image-consultation-field textarea::placeholder {
        color: #9096a1;
        opacity: 1;
    }

    body.portal-consultation-layout .portal-image-consultation-field input:focus,
    body.portal-consultation-layout .portal-image-consultation-field select:focus,
    body.portal-consultation-layout .portal-image-consultation-field textarea:focus {
        border-color: #a58c21;
        outline: 2px solid rgb(255 211 29 / 35%);
        outline-offset: 1px;
        box-shadow: none;
    }

    body.portal-consultation-layout .portal-image-consultation-submit {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        width: 100%;
        min-height: 52px;
        margin: 14px 0 0;
        padding: 10px 14px;
        border: 1px solid #f4cb13;
        border-radius: 999px;
        background: linear-gradient(105deg, #ffda25, #ffda23 70%, #ffd222);
        color: #080905;
        font: inherit;
        font-size: 15px;
        font-weight: 800;
        line-height: 22px;
        letter-spacing: -0.015em;
        box-shadow: none;
        cursor: pointer;
    }

    body.portal-consultation-layout .portal-image-consultation-submit span {
        font-size: 22px;
        font-weight: 500;
        line-height: 22px;
    }

    body.portal-consultation-layout .portal-image-consultation-submit:hover {
        background: #ffcf0a;
    }

    body.portal-consultation-layout .portal-image-consultation-submit:focus-visible {
        outline: 3px solid #a58c21;
        outline-offset: 3px;
    }

    body.portal-consultation-layout .portal-image-consultation-security {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        margin: 10px 0 0;
        color: #60646d;
        font-size: 10px;
        font-weight: 400;
        line-height: 18px;
        letter-spacing: 0;
    }

    body.portal-consultation-layout .portal-image-consultation-security svg {
        flex: 0 0 auto;
        color: #3d4249;
    }

    body.portal-consultation-layout .portal-image-consultation .hp-field {
        display: none;
    }
}

@media (min-width: 1280px) and (max-width: 1439px) {
    body.portal-site.portal-consultation-layout .portal-image-consultation {
        padding-right: 23px;
        padding-left: 25px;
    }

    body.portal-consultation-layout .portal-image-rail-intro {
        font-size: 12px;
    }

    body.portal-consultation-layout .portal-image-consultation-security {
        font-size: 9px;
    }
}

/* Keep the existing inner-page dock/navigation when the chat bundle is absent. */
@media (min-width: 1280px) {
    body.portal-site.portal-consultation-layout:not(.portal-image-led) {
        --portal-consult-width: 400px;
        padding-right: var(--portal-consult-width);
    }

    body.portal-site.portal-consultation-layout:not(.portal-image-led) .portal-header {
        right: var(--portal-consult-width);
    }

    body.portal-site.portal-consultation-layout:not(.portal-image-led) .portal-header-inner {
        display: flex;
        min-height: 68px;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
    }

    body.portal-site.portal-consultation-layout:not(.portal-image-led) .portal-header-actions {
        display: none;
    }

    body.portal-site.portal-consultation-layout:not(.portal-image-led) .portal-header .nav-toggle {
        display: block;
    }

    body.portal-site.portal-consultation-layout:not(.portal-image-led) .portal-header .nav-toggle[aria-expanded="true"] > span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    body.portal-site.portal-consultation-layout:not(.portal-image-led) .portal-header .nav-toggle[aria-expanded="true"] > span:nth-child(2) {
        opacity: 0;
    }

    body.portal-site.portal-consultation-layout:not(.portal-image-led) .portal-header .nav-toggle[aria-expanded="true"] > span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    body.portal-site.portal-consultation-layout:not(.portal-image-led) .portal-global-nav {
        position: fixed;
        inset: 68px var(--portal-consult-width) auto 0;
        display: grid;
        width: auto;
        max-height: 0;
        grid-template-columns: 1fr;
        align-self: auto;
        justify-content: stretch;
        gap: 0;
        padding: 0;
        border-top: 0;
        overflow-x: hidden;
        overflow-y: auto;
        background: #fffdf8;
        font-size: 13px;
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
        transition: max-height 0.28s ease, opacity 0.2s ease;
    }

    body.portal-site.portal-consultation-layout:not(.portal-image-led) .portal-global-nav.is-open {
        max-height: calc(100dvh - 68px);
        padding: 8px 18px 18px;
        border-top: 1px solid #dedfd8;
        border-bottom: 2px solid #171813;
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
    }

    body.portal-site.portal-consultation-layout:not(.portal-image-led) .portal-global-nav .portal-nav-link {
        display: grid;
        min-height: 56px;
        grid-template-columns: 34px minmax(0, 1fr) auto;
        justify-content: stretch;
        gap: 12px;
        padding: 8px 10px !important;
        border-bottom: 1px solid #dedfd8;
        background: transparent;
        font-size: 14px;
        text-align: left;
    }

    body.portal-site.portal-consultation-layout:not(.portal-image-led) .portal-global-nav .portal-nav-link::after {
        display: none;
    }

    body.portal-site.portal-consultation-layout:not(.portal-image-led) .portal-global-nav .portal-nav-link:hover,
    body.portal-site.portal-consultation-layout:not(.portal-image-led) .portal-global-nav .portal-nav-link[aria-current="page"] {
        background: #fff3b4;
    }

    body.portal-site.portal-consultation-layout:not(.portal-image-led) .portal-nav-number,
    body.portal-site.portal-consultation-layout:not(.portal-image-led) .portal-nav-arrow {
        display: grid;
    }

    body.portal-site.portal-consultation-layout:not(.portal-image-led) .portal-mobile-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
        gap: 10px;
        padding-top: 18px;
    }

    body.portal-site.portal-consultation-layout:not(.portal-image-led) .portal-mobile-login {
        display: flex;
        min-height: 50px;
        align-items: center;
        justify-content: center;
        padding: 10px 12px;
        border: 1px solid rgb(23 23 18 / 18%);
        border-radius: 7px;
        background: #fff;
        font-weight: 850;
    }

    body.portal-site.portal-consultation-layout:not(.portal-image-led) .portal-mobile-cta {
        display: flex;
        min-height: 50px;
        justify-content: center;
        margin-top: 0;
    }
}
