/*
 * Booking flow pages (resources/views/pages/team/flow).
 * Every colour below is taken from the existing palette in style.css / common_style.css - don't introduce new ones.
 */
.wtg-flow {
    --flow-primary: #9c9389; /* the site's main brown */
    --flow-primary-hover: #848484;
    --flow-chip: #f3f3f3;
    --flow-border: #ebdbcf;
    --flow-cream: #f9f4ef;
    --flow-panel: #faf9f8;
    --flow-text: #181918;
    --flow-muted: #9d9388;
    --flow-accent: #c5bdb4;
    --flow-white: #fff;
    --flow-error: #a94442; /* the site's existing .has-error colour */

    color: var(--flow-text);
    font-family: 'GT-Cinetype-Light', sans-serif;
    max-width: 1180px;
    margin: 0 auto;
    padding: 110px 16px 40px;
}

.wtg-flow *,
.wtg-flow *::before,
.wtg-flow *::after {
    box-sizing: border-box;
}

.wtg-flow [hidden] {
    display: none !important;
}

.wtg-flow h1,
.wtg-flow h2,
.wtg-flow h3 {
    font-family: 'Romana-BT', 'RomanaBTWXX-Roman', serif;
    color: var(--flow-text);
    font-weight: normal;
    margin: 0;
}

.wtg-flow a {
    color: var(--flow-primary);
}

.wtg-flow a:hover,
.wtg-flow a:focus {
    color: var(--flow-primary-hover);
}

/* ---------- stepper ---------- */
.flow-stepper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    list-style: none;
    padding: 0;
    margin: 0 auto 24px;
    max-width: 640px;
}

.flow-stepper li {
    flex: 1;
    text-align: center;
    position: relative;
    font-size: 14px;
    color: var(--flow-muted);
}

.flow-stepper li + li::before {
    content: '';
    position: absolute;
    top: 16px;
    right: calc(50% + 24px);
    width: calc(100% - 48px);
    border-top: 1px solid var(--flow-border);
}

.flow-stepper .flow-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0 auto 8px;
    border-radius: 50%;
    border: 1px solid var(--flow-border);
    background: var(--flow-white);
    font-size: 14px;
}

.flow-stepper li.is-active,
.flow-stepper li.is-done {
    color: var(--flow-text);
}

.flow-stepper li.is-active .flow-step-num,
.flow-stepper li.is-done .flow-step-num {
    background: var(--flow-primary);
    border-color: var(--flow-primary);
    color: var(--flow-white);
}

/* ---------- banner ---------- */
.flow-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--flow-cream);
    border-radius: 6px;
    padding: 18px 24px;
    margin-bottom: 20px;
}

.flow-banner-icon {
    flex: 0 0 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--flow-primary);
    color: var(--flow-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.flow-banner strong {
    display: block;
    font-size: 17px;
    font-weight: normal;
}

.flow-banner p {
    margin: 2px 0 0;
    font-size: 14px;
    color: var(--flow-muted);
}

/* ---------- two column layout ---------- */
.flow-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.flow-card {
    background: var(--flow-white);
    border: 1px solid var(--flow-border);
    border-radius: 6px;
    padding: 28px 32px;
}

/* ---------- doctor sidebar ---------- */
.flow-sidebar {
    background: var(--flow-panel);
    padding: 16px;
}

.flow-sidebar-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    background: var(--flow-chip);
}

.flow-sidebar h2 {
    font-size: 26px;
    margin: 16px 0 4px;
}

.flow-sidebar-title {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.flow-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    font-size: 14px;
}

.flow-meta li {
    display: flex;
    gap: 10px;
    align-items: baseline;
    margin-bottom: 8px;
}

.flow-meta i {
    width: 16px;
    text-align: center;
    color: var(--flow-primary);
}

.flow-sidebar-bio {
    font-size: 14px;
    line-height: 1.55;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--flow-border);
}

.flow-sidebar-bio p:last-child {
    margin-bottom: 0;
}

.flow-sidebar-section {
    padding: 16px 0;
    border-bottom: 1px solid var(--flow-border);
    font-size: 14px;
}

.flow-sidebar-section:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.flow-sidebar-section h3 {
    font-family: 'GT-Cinetype-Light', sans-serif;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 10px;
}

.flow-sidebar-section p {
    margin: 0 0 10px;
    line-height: 1.5;
}

/* ---------- venue toggle ---------- */
.flow-subtitle {
    font-size: 14px;
    color: var(--flow-muted);
    margin: 6px 0 22px;
}

.flow-venues {
    display: grid;
    /* in person, telehealth & free consultation */
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
    margin-bottom: 24px;
}

.flow-venue {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    border: 1px solid var(--flow-border);
    border-radius: 4px;
    background: var(--flow-white);
    color: var(--flow-text);
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.flow-venue i {
    font-size: 22px;
    color: var(--flow-primary);
}

.flow-venue strong {
    display: block;
    font-size: 16px;
}

.flow-venue span {
    font-size: 13px;
}

.flow-venue.is-selected {
    background: var(--flow-primary);
    border-color: var(--flow-primary);
    color: var(--flow-white);
}

.flow-venue.is-selected i {
    color: var(--flow-white);
}


/* ---------- calendar ---------- */
.flow-cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.flow-cal-head strong {
    font-size: 17px;
}

.flow-cal-nav {
    border: 0;
    background: none;
    font-size: 18px;
    padding: 6px 12px;
    color: var(--flow-text);
    cursor: pointer;
}

.flow-cal-nav:disabled {
    color: var(--flow-border);
    cursor: default;
}

.flow-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    row-gap: 8px;
    text-align: center;
    margin-bottom: 24px;
}

.flow-cal-dow {
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--flow-muted);
    padding-bottom: 6px;
}

.flow-cal-day {
    width: 38px;
    height: 38px;
    margin: 0 auto;
    border-radius: 50%;
    border: 0;
    background: none;
    font: inherit;
    font-size: 14px;
    color: var(--flow-text);
    cursor: default;
}

.flow-cal-day.is-other {
    color: var(--flow-border);
}

.flow-cal-day.is-available {
    background: var(--flow-chip);
    cursor: pointer;
}

.flow-cal-day.is-available:hover {
    background: var(--flow-accent);
}

.flow-cal-day.is-selected {
    background: var(--flow-primary);
    color: var(--flow-white);
}

/* ---------- times ---------- */
.flow-times-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    font-size: 14px;
    border-top: 1px solid var(--flow-border);
    padding-top: 18px;
    margin-bottom: 14px;
}

.flow-times {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 24px;
}

.flow-time {
    border: 1px solid var(--flow-border);
    border-radius: 4px;
    background: var(--flow-white);
    padding: 11px 6px;
    font: inherit;
    font-size: 14px;
    color: var(--flow-text);
    cursor: pointer;
}

.flow-time small {
    display: block;
    font-size: 11px;
    color: var(--flow-muted);
}

.flow-time:hover {
    border-color: var(--flow-primary);
}

.flow-time.is-selected {
    background: var(--flow-primary);
    border-color: var(--flow-primary);
    color: var(--flow-white);
}

.flow-time.is-selected small {
    color: var(--flow-white);
}

/* ---------- info strip ---------- */
.flow-info-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    background: var(--flow-panel);
    border-radius: 6px;
    padding: 14px 8px;
    margin-bottom: 16px;
    font-size: 13px;
}

.flow-info-strip div {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 4px 12px;
}

.flow-info-strip div + div {
    border-left: 1px solid var(--flow-border);
}

.flow-info-strip i {
    font-size: 18px;
    color: var(--flow-primary);
}

/* ---------- fit box ---------- */
.flow-fit {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--flow-panel);
    border-radius: 6px;
    padding: 18px 22px;
    margin-bottom: 18px;
}

.flow-fit-icon {
    font-size: 32px;
    color: var(--flow-primary);
}

.flow-fit-text {
    flex: 1;
    font-size: 14px;
}

.flow-fit-text strong {
    display: block;
    font-family: 'Romana-BT', 'RomanaBTWXX-Roman', serif;
    font-weight: normal;
    font-size: 18px;
    margin-bottom: 4px;
}

.flow-fit-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ---------- buttons ---------- */
.flow-btn {
    display: inline-block;
    text-align: center;
    border-radius: 4px;
    padding: 11px 20px;
    font: inherit;
    font-size: 14px;
    border: 1px solid var(--flow-primary);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.wtg-flow a.flow-btn:hover,
.wtg-flow a.flow-btn:focus {
    text-decoration: none;
}

.flow-btn-primary,
.wtg-flow a.flow-btn-primary {
    background: var(--flow-primary);
    color: var(--flow-white);
}

.flow-btn-primary:hover,
.wtg-flow a.flow-btn-primary:hover {
    background: var(--flow-primary-hover);
    border-color: var(--flow-primary-hover);
    color: var(--flow-white);
}

/* outlined - the "inverted" style used to make Request a Consultation stand out next to filled buttons */
.flow-btn-outline,
.wtg-flow a.flow-btn-outline {
    background: var(--flow-white);
    color: var(--flow-primary);
}

.flow-btn-outline:hover,
.wtg-flow a.flow-btn-outline:hover {
    background: var(--flow-primary);
    color: var(--flow-white);
}

.flow-btn-block {
    display: block;
    width: 100%;
    white-space: normal;
    padding: 14px 20px;
    font-size: 16px;
}

.flow-btn:disabled,
.flow-btn[aria-disabled='true'] {
    background: var(--flow-accent);
    border-color: var(--flow-accent);
    color: var(--flow-white);
    cursor: not-allowed;
    opacity: 0.45;
}

.flow-secure {
    text-align: center;
    font-size: 13px;
    color: var(--flow-muted);
    margin: 12px 0 0;
}

/* ---------- empty / full state ---------- */
.flow-empty {
    text-align: center;
    padding: 36px 16px;
    border: 1px dashed var(--flow-border);
    border-radius: 6px;
    margin-bottom: 24px;
}

.flow-empty strong {
    display: block;
    font-family: 'Romana-BT', 'RomanaBTWXX-Roman', serif;
    font-weight: normal;
    font-size: 20px;
    margin-bottom: 8px;
}

.flow-empty p {
    font-size: 14px;
    color: var(--flow-muted);
    margin-bottom: 18px;
}

.flow-empty .flow-btn + .flow-btn {
    margin-left: 8px;
}

.flow-loading {
    text-align: center;
    padding: 40px 0;
    color: var(--flow-muted);
}

/* ---------- trust footer ---------- */
.flow-trust {
    margin-top: 24px;
    background: var(--flow-cream);
    border-radius: 6px;
    padding: 28px 32px;
}

.flow-trust h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.flow-trust > p {
    font-size: 14px;
    margin: 0 0 20px;
}

.flow-trust-items {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    font-size: 13px;
}

.flow-trust-items div {
    display: flex;
    gap: 12px;
    align-items: center;
}

.flow-trust-items i {
    font-size: 22px;
    color: var(--flow-primary);
}

.flow-payers {
    margin-top: 16px;
    background: var(--flow-cream);
    border-radius: 6px;
    padding: 28px 32px;
}

.flow-payers h2 {
    font-size: 24px;
    margin-bottom: 16px;
}

.flow-payers-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
}

/* style.css hides every checkbox (input[type=checkbox]{display:none}) for its own custom markup; the flow uses native ones */
.wtg-flow input[type=checkbox],
.wtg-flow input[type=radio] {
    display: inline-block;
    -webkit-appearance: auto;
    appearance: auto;
    position: static;
    opacity: 1;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 0;
    accent-color: var(--flow-primary);
    cursor: pointer;
}

.wtg-flow input[type=checkbox]:focus,
.wtg-flow input[type=radio]:focus {
    width: 18px;
    height: 18px;
    border: 0;
    outline: 2px solid var(--flow-accent);
    outline-offset: 2px;
}

/* ---------- responsive ---------- */
@media (max-width: 991px) {
    .flow-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .flow-sidebar {
        order: 2;
    }

    .flow-trust-items,
    .flow-payers-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .wtg-flow {
        padding-top: 90px;
    }

    .flow-card {
        padding: 20px 16px;
    }

    .flow-banner {
        padding: 14px 16px;
    }

    .flow-times {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .flow-venues {
        grid-template-columns: 1fr;
    }

    .flow-venue {
        width: 100%;
        padding: 12px;
        gap: 10px;
    }

    .flow-venue > span {
        min-width: 0;
    }

    .flow-cal-day {
        width: 34px;
        height: 34px;
    }

    .flow-info-strip div + div {
        border-left: 0;
    }

    .flow-fit {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .flow-fit-icon {
        display: none;
    }

    .flow-empty .flow-btn {
        display: block;
    }

    .flow-empty .flow-btn + .flow-btn {
        margin: 8px 0 0;
    }

    .flow-trust,
    .flow-payers {
        padding: 22px 16px;
    }

    .flow-trust-items,
    .flow-payers-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- step 2: appointment summary ---------- */
.flow-summary {
    background: var(--flow-white);
    border: 1px solid var(--flow-border);
    border-radius: 6px;
    padding: 16px 18px;
    margin-bottom: 16px;
    font-size: 14px;
}

.flow-summary h3 {
    font-family: 'GT-Cinetype-Light', sans-serif;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 12px;
}

.flow-summary dt {
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--flow-muted);
    font-weight: normal;
    margin-top: 12px;
}

.flow-summary dd {
    margin: 2px 0 0;
    line-height: 1.5;
}

/* ---------- step 2: selected slot banner ---------- */
.flow-banner-body {
    flex: 1;
}

.flow-banner .flow-btn {
    flex: 0 0 auto;
}

/* ---------- step 2: form ---------- */
.flow-section {
    padding: 22px 0;
    border-top: 1px solid var(--flow-border);
}

.flow-section:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.flow-section h2 {
    font-size: 22px;
    margin-bottom: 6px;
}

.flow-section-note {
    font-size: 14px;
    color: var(--flow-muted);
    margin: 0 0 16px;
}

.wtg-flow .flow-list,
.wtg-flow .flow-list li {
    list-style: disc;
}

.flow-list {
    font-size: 14px;
    padding-left: 18px;
    margin: 8px 0 16px;
    line-height: 1.6;
}

.flow-notice {
    display: flex;
    gap: 14px;
    align-items: center;
    background: var(--flow-panel);
    border-radius: 6px;
    padding: 14px 18px;
    font-size: 14px;
    margin-bottom: 8px;
}

.flow-notice i {
    font-size: 20px;
    color: var(--flow-primary);
    width: 24px;
    text-align: center;
}

.flow-question {
    margin-bottom: 18px;
    font-size: 14px;
}

.flow-question > p {
    font-weight: bold;
    margin: 0 0 8px;
}

.flow-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
}

.flow-choices label,
.flow-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    margin: 0;
    cursor: pointer;
}

.flow-choices input,
.flow-check input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--flow-primary);
}

.flow-check {
    font-size: 14px;
    margin-bottom: 10px;
    align-items: flex-start;
}

.flow-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
}

.flow-field-full {
    grid-column: 1 / -1;
}

.flow-field label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 6px;
}

.flow-field label .flow-required {
    color: var(--flow-primary);
}

.flow-field label .flow-optional {
    font-weight: normal;
    color: var(--flow-muted);
}

.wtg-flow .flow-input {
    display: block;
    width: 100%;
    height: 46px;
    padding: 10px 14px;
    border: 1px solid var(--flow-border);
    border-radius: 4px;
    background: var(--flow-white);
    font: inherit;
    font-size: 14px;
    color: var(--flow-text);
    box-shadow: none;
}

.wtg-flow textarea.flow-input {
    height: auto;
    min-height: 96px;
    resize: vertical;
}

.wtg-flow .flow-input:focus {
    outline: none;
    border-color: var(--flow-primary);
}

.wtg-flow .flow-input.has-error {
    border-color: var(--flow-error);
}

.flow-question.has-error > p,
.flow-check.has-error {
    color: var(--flow-error);
}

.flow-error {
    display: block;
    font-size: 12px;
    color: var(--flow-error);
    margin-top: 4px;
    min-height: 0;
}

.flow-doc-link {
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--flow-border);
    border-radius: 6px;
    padding: 14px 18px;
    margin-bottom: 8px;
    font-size: 14px;
    text-decoration: none;
}

.flow-doc-link i {
    font-size: 20px;
    color: var(--flow-primary);
}

.flow-doc-link strong {
    display: block;
    color: var(--flow-text);
}

.flow-form-message {
    text-align: center;
    font-size: 14px;
    color: var(--flow-error);
    margin: 0 0 12px;
}

.flow-back {
    display: inline-block;
    margin-top: 12px;
    font-size: 14px;
    background: none;
    border: 0;
    padding: 0;
    color: var(--flow-primary);
    text-decoration: underline;
    cursor: pointer;
}

@media (max-width: 600px) {
    .flow-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .flow-banner {
        flex-wrap: wrap;
    }

    .flow-banner .flow-btn {
        width: 100%;
    }
}

/* ---------- doctor profile ---------- */
/* the profile holds the most content, so it uses more of wide screens than the booking steps */
/* the layout caps pages at 1150px & hides overflow, so the profile steps out of it and centres on the viewport.
   Browsers without :has() keep the regular 1150px page rather than a clipped one. */
@supports selector(:has(*)) {
    .max-w:has(> .wtg-flow-wide) {
        overflow: visible;
    }

    .wtg-flow.wtg-flow-wide {
        --flow-wide-width: min(1320px, calc(100vw - 32px));
        max-width: none;
        width: var(--flow-wide-width);
        margin-left: calc(50% - var(--flow-wide-width) / 2);
        padding-left: 0;
        padding-right: 0;
    }
}

.flow-profile-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.flow-back-link {
    display: inline-block;
    font-size: 14px;
    margin-bottom: 18px;
}

.flow-profile-hero {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr) 320px;
    gap: 40px;
    align-items: start;
    margin-bottom: 36px;
}

.flow-profile-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 6px;
    background: var(--flow-chip);
}

.flow-profile-intro h1 {
    font-size: 40px;
    line-height: 1.15;
    margin: 36px 0 10px;
}

.flow-profile-facts {
    list-style: none;
    padding: 0;
    margin: 22px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 28px;
    font-size: 14px;
}

.flow-profile-facts li {
    display: flex;
    gap: 10px;
    align-items: baseline;
}

.flow-profile-facts i {
    color: var(--flow-primary);
}

.flow-quote {
    border: 0;
    margin: 0;
    padding: 0 0 0 18px;
    border-left: 3px solid var(--flow-border);
    font-family: 'Romana-BT', 'RomanaBTWXX-Roman', serif;
    font-style: italic;
    font-size: 17px;
    line-height: 1.5;
}

.flow-quote p:last-child {
    margin-bottom: 0;
}

.flow-profile-cta {
    padding: 24px;
}

.flow-profile-cta h2 {
    font-size: 24px;
    margin-bottom: 16px;
}

.flow-profile-cta .flow-btn + .flow-btn {
    margin-top: 10px;
}

.flow-cta-points {
    margin-top: 18px;
}

.flow-full-label {
    display: flex;
    gap: 10px;
    align-items: baseline;
    background: var(--flow-cream);
    border-radius: 4px;
    padding: 12px 14px;
    font-weight: bold;
    font-size: 15px;
    margin: 0 0 12px;
}

.flow-full-label i {
    color: var(--flow-primary);
}

/* bio + rail: the bio is the longest content, so it takes the wide column */
.flow-profile-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 48px;
    align-items: start;
    padding: 32px 0;
    border-top: 1px solid var(--flow-border);
    margin-bottom: 24px;
}

.flow-profile-main h2,
.flow-rail-card h2,
.flow-similar h2,
.flow-next-step h2 {
    font-size: 24px;
    margin-bottom: 14px;
}

.flow-rich-text {
    font-size: 14px;
    line-height: 1.6;
}

.flow-bio {
    font-size: 16px;
    line-height: 1.75;
}

.flow-bio p {
    margin: 0 0 16px;
}

.flow-profile-rail {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 110px;
}

.flow-rail-card {
    background: var(--flow-panel);
    border: 1px solid var(--flow-border);
    border-radius: 6px;
    padding: 20px 22px;
}

.wtg-flow .flow-rail-card h2 {
    font-size: 20px;
}

.flow-rail-card .flow-meta {
    margin-bottom: 0;
}

.flow-rail-cta .flow-btn + .flow-btn {
    margin-top: 10px;
}

/* the doctor's short summary, leading the header */
.flow-lead {
    font-size: 17px;
    line-height: 1.6;
    margin: 0 0 20px;
}

.flow-lead p:last-child {
    margin-bottom: 0;
}

/* credential lines lifted from the top of the bio into the header */
.flow-credentials {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.5;
}

.flow-credentials li {
    padding: 8px 0 8px 14px;
    border-left: 3px solid var(--flow-primary);
    margin-bottom: 6px;
    background: var(--flow-panel);
}

/* similar doctors */
.flow-similar {
    margin: 32px 0;
}

.flow-similar h2 {
    text-align: center;
}

.flow-similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.wtg-flow a.flow-similar-card {
    display: flex;
    gap: 12px;
    border: 1px solid var(--flow-border);
    border-radius: 6px;
    padding: 10px;
    background: var(--flow-white);
    color: var(--flow-text);
    text-decoration: none;
}

.wtg-flow a.flow-similar-card:hover {
    border-color: var(--flow-primary);
}

.flow-similar-card img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    background: var(--flow-chip);
    flex: 0 0 80px;
}

.flow-similar-card strong,
.flow-similar-card small,
.flow-similar-card em {
    display: block;
}

.flow-similar-card strong {
    font-size: 14px;
    margin-bottom: 4px;
}

.flow-similar-card small {
    font-size: 12px;
    color: var(--flow-muted);
    margin-bottom: 4px;
}

.flow-similar-card em {
    font-style: normal;
    font-size: 13px;
    color: var(--flow-primary);
}

/* next step band */
.flow-next-step {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--flow-primary);
    color: var(--flow-white);
    border-radius: 6px;
    padding: 26px 32px;
}

.wtg-flow .flow-next-step h2 {
    color: var(--flow-white);
    margin-bottom: 4px;
}

.flow-next-step p {
    margin: 0;
    font-size: 14px;
}

.flow-next-step .flow-fit-actions {
    flex-direction: row;
    flex-wrap: wrap;
}

@media (max-width: 991px) {
    .flow-profile-hero {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .flow-profile-side {
        grid-column: 1 / -1;
    }

    .flow-profile-body {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .flow-profile-rail {
        position: static;
    }
}

@media (max-width: 600px) {
    .flow-profile-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .flow-profile-photo {
        max-width: 260px;
        justify-self: center;
    }

    .flow-profile-intro h1,
    .flow-profile-intro .flow-sidebar-title {
        text-align: center;
    }

    .flow-profile-intro h1 {
        font-size: 30px;
        margin-top: 0;
    }

    .flow-next-step {
        padding: 22px 16px;
    }

    .flow-next-step .flow-btn {
        width: 100%;
    }
}
