/**
 * MHM2-730 — Contact page restyle (Mediband). Content-area only.
 * Fluid, no media queries: grid auto-fit/minmax + clamp() + flex-wrap.
 * Brand accents via [data-brand] tokens so Handband can override later.
 */
.mbc {
    --mbc-ink: #16202b;
    --mbc-body: #59636e;
    --mbc-muted: #8a93a0;
    --mbc-line: #ece5db;
    --mbc-accent: #ef7622;
    --mbc-accent-dark: #c85a17;
    --mbc-apricot: #fdf1e6;
    --mbc-apricot-soft: #fbf5ee;
    --mbc-sage: #e9f1ea;
    --mbc-ok: #1f9d63;
    --mbc-radius: 16px;
    --mbc-radius-sm: 11px;

    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 0 40px;
    color: var(--mbc-body);
    font-family: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.55;
}
.mbc *,
.mbc *::before,
.mbc *::after { box-sizing: border-box; }

.mbc .mbc-eyebrow,
.mbc .mbc-card__eyebrow {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--mbc-accent-dark);
}
.mbc .mbc-h1 {
    margin: 0 0 14px;
    font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
    font-weight: 500;
    font-size: clamp(30px, 4.4vw, 46px);
    line-height: 1.08;
    color: var(--mbc-ink);
}
.mbc .mbc-h1 em { font-style: italic; color: var(--mbc-accent); }
.mbc .mbc-h2 {
    margin: 0 0 8px;
    font-family: 'Newsreader', Georgia, serif;
    font-weight: 500;
    font-size: clamp(24px, 2.6vw, 30px);
    color: var(--mbc-ink);
}
.mbc .mbc-lede { margin: 0; font-size: clamp(15px, 1.5vw, 17px); max-width: 46ch; }

.mbc-visually-hidden,
.mbc .mbc-visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Handband brand override — teal accent + teal/sand tints (ruling F placeholder,
   Vong to confirm final hex). Everything else inherits the shared tokens. */
.mbc[data-brand="handband"] {
    --mbc-accent: #0f7d8c;
    --mbc-accent-dark: #0b6270;
    --mbc-apricot: #e3f1f2;
    --mbc-apricot-soft: #f0f7f7;
    --mbc-sage: #eef1e8;
}
.mbc[data-brand="handband"] .mbc-orgcta__eyebrow { color: #5cc7d3; }
.mbc[data-brand="handband"] .mbc-card--cta .mbc-card__eyebrow { color: #5cc7d3; }

/* ---- Hero ---------------------------------------------------------------- */
.mbc-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 40px;
    align-items: flex-start;
    padding: clamp(26px, 3.4vw, 44px);
    border-radius: var(--mbc-radius);
    background: linear-gradient(120deg, var(--mbc-apricot) 0%, var(--mbc-sage) 100%);
    border: 1px solid var(--mbc-line);
}
.mbc-hero__intro { flex: 1 1 380px; min-width: 0; }
.mbc-hero__status {
    flex: 1 1 240px;
    align-self: flex-start;
    padding: 18px 20px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: var(--mbc-radius-sm);
}
.mbc-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    font-weight: 700;
    color: var(--mbc-ink);
}
.mbc-status__dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--mbc-ok);
    box-shadow: 0 0 0 4px rgba(31, 157, 99, .18);
}
.mbc-status.is-closed .mbc-status__dot { background: var(--mbc-muted); box-shadow: 0 0 0 4px rgba(138, 147, 160, .18); }
.mbc-status__hours { margin: 0; font-weight: 600; color: var(--mbc-ink); }
.mbc-status__note { margin: 6px 0 0; font-size: 13px; color: var(--mbc-body); }

/* ---- Tiles --------------------------------------------------------------- */
.mbc-tiles {
    flex-basis: 100%;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 6px;
}
.mbc-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    border-radius: var(--mbc-radius-sm);
    border: 1px solid var(--mbc-line);
    background: #fff;
    text-decoration: none;
    text-align: left;
    font: inherit;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}
.mbc-tile:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(22, 32, 43, .10); }
.mbc-tile__ico { font-size: 22px; color: var(--mbc-accent); line-height: 1; }
.mbc-tile__value { font-size: 18px; font-weight: 700; color: var(--mbc-ink); }
.mbc-tile__sub { font-size: 13px; color: var(--mbc-body); }
.mbc-tile__badge {
    position: absolute; top: 14px; right: 14px;
    padding: 3px 9px; border-radius: 999px;
    font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    background: var(--mbc-accent); color: #fff;
}
.mbc-tile--phone { background: var(--mbc-ink); border-color: var(--mbc-ink); }
.mbc-tile--phone .mbc-tile__value { color: #fff; }
.mbc-tile--phone .mbc-tile__sub { color: rgba(255, 255, 255, .72); }
.mbc-tile--email { background: var(--mbc-apricot-soft); }
.mbc-tile--chat { background: var(--mbc-sage); }

/* ---- Main: form + sidebar ------------------------------------------------ */
.mbc-main {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(24px, 3vw, 44px);
    margin-top: 34px;
    align-items: flex-start;
}
.mbc-formcol {
    flex: 1 1 420px;
    min-width: 0;
    padding: clamp(24px, 3vw, 36px);
    background: #fff;
    border: 1px solid var(--mbc-line);
    border-top: 4px solid var(--mbc-accent);
    border-radius: var(--mbc-radius);
    box-shadow: 0 16px 44px rgba(22, 32, 43, .07);
}
.mbc-formcol__sub { margin: 0 0 22px; }

/* Core Luma sets `.contact-index-index .column:not(.sidebar-additional) .form.contact
   { min-width: 600px }` (specificity 0,5,0, in styles-l) which overflows the card on
   the right. A prior override forced width:100%!important but left min-width, so it
   still constrained. Beat min-width with !important. Fieldset reset for hygiene. */
.mbc .mbc-formcol .mbc-form.contact { min-width: 0 !important; width: 100% !important; max-width: 100% !important; }
.mbc-fieldset { min-width: 0; min-inline-size: 0; width: 100%; margin: 0; padding: 0; border: 0; }
.mbc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px 18px;
}
.mbc-field { margin: 0; min-width: 0; }
.mbc-field--full { grid-column: 1 / -1; }
.mbc .mbc-label {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--mbc-ink);
}
.mbc .mbc-label span { font-weight: 700; }
.mbc .mbc-optional { font-weight: 500; color: var(--mbc-muted); text-transform: none; letter-spacing: 0; }
.mbc .mbc-input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #d7dde3;
    border-radius: 10px;
    background: #fff;
    color: var(--mbc-ink);
    font: inherit;
    font-size: 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.mbc .mbc-input::placeholder { color: #b7bdc3; font-size: 14px; }
.mbc .mbc-textarea { height: auto; min-height: 140px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.mbc .mbc-input:focus {
    outline: none;
    border-color: var(--mbc-accent);
    box-shadow: 0 0 0 3px rgba(239, 118, 34, .15);
}
.mbc .mbc-hint { display: block; margin-top: 5px; font-size: 12px; color: var(--mbc-muted); }

.mbc-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-top: 22px;
    padding: 0;
    border: 0;
}
.mbc .mbc-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 28px;
    border: 0;
    border-radius: 999px;
    background: var(--mbc-ink);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background .15s ease;
}
.mbc .mbc-submit:hover { background: #0f1720; }
.mbc-actions__note { margin: 0; font-size: 12.5px; color: var(--mbc-muted); }

/* ---- Sidebar cards ------------------------------------------------------- */
.mbc-side { flex: 1 1 280px; display: flex; flex-direction: column; gap: 16px; }
.mbc-card {
    padding: 22px;
    border-radius: var(--mbc-radius);
    border: 1px solid var(--mbc-line);
    background: #fff;
}
.mbc-card__lead { margin: 0 0 14px; font-size: 14px; }
.mbc-card--faq { background: var(--mbc-apricot-soft); }
.mbc-linklist { list-style: none; margin: 0; padding: 0; }
.mbc-linklist li + li { border-top: 1px solid var(--mbc-line); }
.mbc-linklist a {
    display: block;
    padding: 11px 0;
    color: var(--mbc-ink);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}
.mbc-linklist a::after { content: ' →'; color: var(--mbc-accent); }
.mbc-linklist a:hover { color: var(--mbc-accent-dark); }

.mbc-address { margin-bottom: 16px; font-size: 14px; }
.mbc-address p { margin: 0 0 2px; }
.mbc-address__label { font-weight: 700; color: var(--mbc-ink); margin-bottom: 4px !important; }
.mbc-address__meta { color: var(--mbc-muted); font-size: 13px; }
.mbc-address__legal { margin: 4px 0 0; padding-top: 14px; border-top: 1px solid var(--mbc-line); font-size: 12px; color: var(--mbc-muted); }

/* Full-width organisation CTA banner (moved out of the sidebar) */
.mbc-orgcta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    margin-top: 24px;
    padding: clamp(22px, 3vw, 34px) clamp(24px, 3.4vw, 40px);
    border-radius: var(--mbc-radius);
    background: var(--mbc-ink);
}
.mbc-orgcta__text { min-width: 0; }
.mbc-orgcta__eyebrow {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #ffb277;
}
.mbc-orgcta__lead { margin: 0; font-size: clamp(15px, 1.6vw, 17px); color: rgba(255, 255, 255, .82); max-width: 60ch; }
.mbc-orgcta__btn { flex: none; height: 48px; padding: 0 26px; }
.mbc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}
.mbc-btn--accent { background: var(--mbc-accent); color: #fff; }
.mbc-btn--accent:hover { background: var(--mbc-accent-dark); color: #fff; }
/* Mediband's accent is a light orange — white text on it fails contrast (~2.6:1).
   Use the deeper accent for the button so white reads clearly. Handband's teal
   accent already contrasts, so it is left as-is. */
.mbc[data-brand="mediband"] .mbc-btn--accent { background: var(--mbc-accent-dark); color: #fff; }
.mbc[data-brand="mediband"] .mbc-btn--accent:hover { background: var(--mbc-accent-dark); filter: brightness(.9); }

/* ---- Specialist enquiries ------------------------------------------------ */
.mbc-specialist {
    margin-top: 40px;
    padding: clamp(26px, 3vw, 40px);
    border-radius: var(--mbc-radius);
    background: var(--mbc-apricot-soft);
    border: 1px solid var(--mbc-line);
}
.mbc-specialist__sub { margin: 0 0 22px; max-width: 60ch; }
.mbc-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}
.mbc-scard {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    border-radius: var(--mbc-radius-sm);
    background: #fff;
    border: 1px solid var(--mbc-line);
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}
.mbc-scard:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(22, 32, 43, .10); }
.mbc-scard__title { font-weight: 700; font-size: 16px; color: var(--mbc-ink); }
.mbc-scard__body { font-size: 13.5px; color: var(--mbc-body); }
.mbc-scard__link { margin-top: 2px; font-weight: 700; font-size: 13px; color: var(--mbc-accent-dark); }
.mbc-scard__link::after { content: ' →'; }

/* ---- Trust bar ----------------------------------------------------------- */
.mbc-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--mbc-line);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--mbc-body);
}
