/* Care Enquiry Forms — marketing preferences page (1.5.65).
   Full-bleed: breaks out of the theme's content width so the page reads as
   its own screen. Designed for a page with no header or footer. */

body:has(.cef-mp) { overflow-x: hidden; }

.cef-mp {
    --mp-purple: #602276;
    --mp-pink: #bf4a92;
    --mp-ink: #2D1B33;
    --mp-muted: #5A4D60;
    --mp-line: #d0c8d4;
    --mp-tint: #F9F0F6;
    --mp-tint-2: #FDFAFC;
    --mp-ground: #FAF7F9;
    --mp-off: #8A7B8F;
    --mp-err: #b3261e;
    box-sizing: border-box;
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    min-height: 100vh;
    min-height: 100dvh;
    padding: 72px 20px 88px;
    background: var(--mp-ground);
    color: var(--mp-ink);
    font-family: Lato, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.5;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.cef-mp *, .cef-mp *::before, .cef-mp *::after { box-sizing: border-box; }

.cef-mp-card {
    width: 100%;
    max-width: 720px;
    margin: 0;
    background: #ffffff;
    border: 1px solid #e2dce6;
    border-radius: 28px;
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}
.cef-mp-loading { align-items: center; color: var(--mp-muted); }

.cef-mp-head { display: flex; flex-direction: column; gap: 12px; }
.cef-mp-brand { font-size: 15px; font-weight: 700; color: var(--mp-pink); }
.cef-mp .cef-mp-h1 { margin: 0; font-family: inherit; font-size: 38px; line-height: 1.15; font-weight: 900; color: var(--mp-purple); letter-spacing: 0; text-transform: none; }
.cef-mp-h1:focus { outline: none; }
.cef-mp-intro { margin: 0; font-size: 18px; color: var(--mp-muted); }

/* Details panel */
.cef-mp-details { display: flex; flex-direction: column; gap: 12px; padding: 20px 24px; border-radius: 24px; background: var(--mp-tint); }
.cef-mp-details-h { font-size: 17px; font-weight: 700; }
/* 1.2.1: the email and phone details stack, one per line, on every screen size */
.cef-mp-chips { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cef-mp-chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px; background: #ffffff; font-weight: 700; color: var(--mp-purple); min-width: 0; overflow-wrap: anywhere; }
.cef-mp-chip-i { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: var(--mp-tint); color: var(--mp-purple); display: inline-flex; align-items: center; justify-content: center; }
.cef-mp-fix { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.cef-mp-fix-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cef-mp-fix-row .cef-mp-input { flex: 1 1 220px; }

/* Text links */
.cef-mp .cef-mp-link {
    align-self: flex-start; min-height: 44px; padding: 0; margin: 0; border: 0; background: transparent;
    color: var(--mp-purple); font: inherit; font-size: 16px; font-weight: 700; text-align: left;
    text-decoration: underline; text-underline-offset: 3px; cursor: pointer; box-shadow: none;
}
.cef-mp .cef-mp-link:hover { color: var(--mp-pink); background: transparent; }
.cef-mp .cef-mp-link-quiet { color: var(--mp-muted); font-weight: 400; font-size: 15px; }

/* Fieldsets */
.cef-mp-fs { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cef-mp-legend { padding: 0; margin: 0 0 4px; font-size: 20px; font-weight: 700; color: var(--mp-ink); float: left; width: 100%; }
.cef-mp-legend + * { clear: both; }
.cef-mp-opt { font-weight: 400; color: var(--mp-muted); }
.cef-mp-sub { margin: 0; font-size: 16px; color: var(--mp-muted); }
.cef-mp-label { font-size: 16px; font-weight: 700; color: var(--mp-ink); }

/* Channel switches */
.cef-mp .cef-mp-chan {
    width: 100%; min-height: 88px; margin: 0; padding: 16px 20px; border-radius: 22px;
    border: 1.5px solid var(--mp-line); background: #ffffff; color: var(--mp-ink);
    display: flex; align-items: center; gap: 18px; cursor: pointer; font: inherit; text-align: left;
    box-shadow: none; text-transform: none; letter-spacing: 0;
}
.cef-mp .cef-mp-chan:hover { background: var(--mp-tint-2); color: var(--mp-ink); }
.cef-mp .cef-mp-chan.is-on { border: 2px solid var(--mp-purple); background: var(--mp-tint-2); }
.cef-mp-chan-i { width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; background: var(--mp-tint); color: var(--mp-purple); display: inline-flex; align-items: center; justify-content: center; }
.cef-mp-chan-t { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cef-mp-chan-title { font-size: 19px; font-weight: 700; }
.cef-mp-chan-sub { font-size: 15px; color: var(--mp-muted); }
.cef-mp-tick { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: #ffffff; border: 2px solid var(--mp-off); display: inline-flex; align-items: center; justify-content: center; }
.cef-mp-chan.is-on .cef-mp-tick { background: var(--mp-purple); border-color: var(--mp-purple); }

/* Inputs */
.cef-mp .cef-mp-input {
    width: 100%; height: 52px; margin: 0; padding: 0 20px; border: 1.5px solid var(--mp-line); border-radius: 999px;
    background: #ffffff; color: var(--mp-ink); font: inherit; font-size: 17px; box-shadow: none;
}
.cef-mp .cef-mp-input:focus { outline: 3px solid #e2b0d1; outline-offset: 1px; border-color: var(--mp-pink); }
.cef-mp button:focus-visible, .cef-mp a:focus-visible { outline: 3px solid #e2b0d1; outline-offset: 2px; }

/* Extra contacts */
.cef-mp-extra { display: flex; flex-direction: column; gap: 8px; }
.cef-mp-extra-row { display: flex; gap: 10px; align-items: center; }
.cef-mp-extra-row .cef-mp-input { flex: 1 1 auto; min-width: 0; }
.cef-mp .cef-mp-x {
    width: 48px; height: 48px; flex-shrink: 0; margin: 0; padding: 0; border: 1.5px solid var(--mp-line); border-radius: 50%;
    background: #ffffff; color: var(--mp-muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: none;
}
.cef-mp .cef-mp-x:hover { border-color: var(--mp-pink); color: var(--mp-pink); background: #ffffff; }
.cef-mp-adds { display: flex; gap: 12px; flex-wrap: wrap; }
.cef-mp .cef-mp-add {
    height: 48px; margin: 0; padding: 0 22px; border: 1.5px dashed var(--mp-pink); border-radius: 999px;
    background: var(--mp-tint-2); color: var(--mp-purple); font: inherit; font-size: 16px; font-weight: 700;
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer; box-shadow: none; text-transform: none;
}
.cef-mp .cef-mp-add:hover { background: var(--mp-tint); color: var(--mp-purple); }

/* Buttons */
.cef-mp .cef-mp-btn {
    height: 52px; margin: 0; padding: 0 24px; border: 0; border-radius: 999px; background: var(--mp-purple); color: #ffffff;
    font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; box-shadow: none; text-transform: none;
}
.cef-mp .cef-mp-btn:hover { background: #4d1b5f; color: #ffffff; }
.cef-mp .cef-mp-btn-ghost { background: #ffffff; color: var(--mp-purple); border: 1.5px solid var(--mp-purple); }
.cef-mp .cef-mp-btn-ghost:hover { background: var(--mp-tint); color: var(--mp-purple); }

.cef-mp-foot { display: flex; flex-direction: column; gap: 18px; }
.cef-mp-note { padding: 18px 22px; border-radius: 20px; background: var(--mp-tint); font-size: 16px; }
.cef-mp .cef-mp-submit {
    width: 100%; height: 60px; margin: 0; border: 0; border-radius: 999px; background: var(--mp-purple); color: #ffffff;
    font: inherit; font-size: 19px; font-weight: 700; cursor: pointer; box-shadow: none; text-transform: none;
}
.cef-mp .cef-mp-submit:hover { background: #4d1b5f; color: #ffffff; }
.cef-mp .cef-mp-submit[disabled] { opacity: .7; cursor: default; }
.cef-mp-err { margin: 0; font-size: 16px; font-weight: 700; color: var(--mp-err); }
.cef-mp-small { margin: 0; font-size: 15px; color: var(--mp-muted); }
.cef-mp-center { text-align: center; }
.cef-mp a { color: var(--mp-purple); }
.cef-mp a:hover { color: var(--mp-pink); }

/* Confirmation / messages */
.cef-mp-done { align-items: center; text-align: center; gap: 20px; }
.cef-mp-done-i { width: 88px; height: 88px; border-radius: 50%; background: var(--mp-purple); display: inline-flex; align-items: center; justify-content: center; }
.cef-mp-center-row { justify-content: center; }
.cef-mp-pill { padding: 10px 18px; border-radius: 999px; background: var(--mp-tint); color: var(--mp-purple); font-size: 16px; font-weight: 700; }

.cef-mp-debug { margin: 0; padding: 14px 18px; border-radius: 16px; background: #FFF4E5; color: #5A3B00; font-size: 14px; text-align: left; }

/* Small screens */
@media (max-width: 640px) {
    .cef-mp { padding: 0; background: #ffffff; }
    .cef-mp-card { border: 0; border-radius: 0; padding: 32px 20px 40px; gap: 30px; }
    .cef-mp .cef-mp-h1 { font-size: 30px; }
    .cef-mp-intro { font-size: 17px; }
    .cef-mp-details { padding: 16px; border-radius: 22px; }
    .cef-mp-chips { flex-direction: column; align-items: flex-start; }
    .cef-mp .cef-mp-chan { min-height: 80px; padding: 14px 16px; gap: 14px; }
    .cef-mp-chan-i { width: 44px; height: 44px; }
    .cef-mp-chan-sub { display: none; }
    .cef-mp-chan-title { font-size: 17px; }
    .cef-mp-adds { flex-direction: column; }
    .cef-mp .cef-mp-add { justify-content: center; width: 100%; }
    .cef-mp-fix-row .cef-mp-btn { flex: 1 1 auto; }
}


/* ------------------------------------------------------------------ */
/* 1.5.68: compact sizing. Everything above was sized for the mockup   */
/* canvas and scrolled a lot on real screens; these rules tighten      */
/* spacing and type so the form fits on one laptop screen.             */
/* ------------------------------------------------------------------ */
.cef-mp { padding: 32px 20px 40px; font-size: 16px; }
.cef-mp-card { max-width: 640px; padding: 32px 36px; gap: 24px; border-radius: 24px; }
.cef-mp-head { gap: 6px; }
.cef-mp-brand { font-size: 14px; }
.cef-mp .cef-mp-h1 { font-size: 30px; }
.cef-mp-intro { font-size: 16px; }

.cef-mp-details { padding: 14px 18px; gap: 8px; border-radius: 20px; }
.cef-mp-details-h { font-size: 15px; }
.cef-mp-chips { gap: 8px; }
.cef-mp-chip { padding: 5px 14px 5px 5px; gap: 8px; font-size: 15px; }
.cef-mp-chip-i { width: 28px; height: 28px; }
.cef-mp-chip-i svg { width: 15px; height: 15px; }
.cef-mp .cef-mp-link { min-height: 32px; font-size: 14px; }

.cef-mp-fs { gap: 10px; }
.cef-mp-legend { font-size: 17px; margin-bottom: 2px; }
.cef-mp-sub { font-size: 15px; }
.cef-mp-label { font-size: 15px; }

.cef-mp .cef-mp-chan { min-height: 64px; padding: 10px 16px; gap: 14px; border-radius: 18px; }
.cef-mp-chan-i { width: 40px; height: 40px; }
.cef-mp-chan-i svg { width: 20px; height: 20px; }
.cef-mp-chan-t { gap: 1px; }
.cef-mp-chan-title { font-size: 16px; }
.cef-mp-chan-sub { font-size: 14px; }
.cef-mp-tick { width: 28px; height: 28px; }
.cef-mp-tick svg { width: 16px; height: 16px; }

.cef-mp .cef-mp-input { height: 46px; font-size: 16px; padding: 0 18px; }
.cef-mp .cef-mp-x { width: 44px; height: 44px; }
.cef-mp-adds { gap: 10px; }
.cef-mp .cef-mp-add { height: 44px; padding: 0 18px; font-size: 15px; }
.cef-mp .cef-mp-btn { height: 46px; font-size: 15px; padding: 0 20px; }

.cef-mp-foot { gap: 12px; }
.cef-mp-note { padding: 12px 16px; font-size: 14px; border-radius: 16px; }
.cef-mp .cef-mp-submit { height: 52px; font-size: 17px; }
.cef-mp-small { font-size: 14px; }

.cef-mp-done { gap: 14px; }
.cef-mp-done-i { width: 64px; height: 64px; }
.cef-mp-done-i svg { width: 30px; height: 30px; }
.cef-mp-pill { padding: 7px 14px; font-size: 15px; }

@media (max-width: 640px) {
    .cef-mp { padding: 0; font-size: 15px; }
    .cef-mp-card { padding: 20px 16px 28px; gap: 20px; border-radius: 0; }
    .cef-mp .cef-mp-h1 { font-size: 24px; }
    .cef-mp-intro { font-size: 15px; }
    .cef-mp-details { padding: 12px 14px; border-radius: 16px; }
    .cef-mp-chips { flex-direction: row; flex-wrap: wrap; }
    .cef-mp .cef-mp-chan { min-height: 56px; padding: 8px 12px; gap: 12px; border-radius: 16px; }
    .cef-mp-chan-i { width: 34px; height: 34px; }
    .cef-mp-chan-i svg { width: 18px; height: 18px; }
    .cef-mp-chan-title { font-size: 15px; }
    .cef-mp-legend { font-size: 16px; }
    .cef-mp-sub { font-size: 14px; }
    .cef-mp .cef-mp-input { height: 44px; }
    .cef-mp-adds { flex-direction: row; }
    .cef-mp .cef-mp-add { width: auto; flex: 1 1 0; padding: 0 12px; font-size: 14px; }
    .cef-mp .cef-mp-submit { height: 50px; }
}
@media (min-width: 641px) {
    .cef-mp { padding: 24px 20px 28px; }
    .cef-mp-card { padding: 28px 36px; gap: 20px; }
    .cef-mp .cef-mp-h1 { font-size: 28px; }
    .cef-mp-details { padding: 12px 16px; gap: 6px; }
    .cef-mp .cef-mp-link { min-height: 28px; }
    .cef-mp-fs { gap: 8px; }
    .cef-mp-legend { margin-bottom: 0; }
    .cef-mp .cef-mp-chan { min-height: 58px; padding: 8px 14px; }
    .cef-mp-chan-i { width: 36px; height: 36px; }
    .cef-mp-foot { gap: 10px; }
}
@media (max-width: 640px) {
    .cef-mp .cef-mp-add { padding: 0 8px; gap: 6px; white-space: nowrap; justify-content: center; }
    .cef-mp .cef-mp-add svg { width: 15px; height: 15px; flex-shrink: 0; }
    .cef-mp-details-h { font-size: 14px; }
}

/* ------------------------------------------------------------------ */
/* 1.5.69: premium finish. A solid brand purple band across the top   */
/* with the card sitting over it, the logo in the card, calmer type    */
/* and gentle state transitions. Flat throughout: no shadows or        */
/* gradient washes (the band is a hard colour stop, not a fade).       */
/* ------------------------------------------------------------------ */
.cef-mp {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: linear-gradient(to bottom, var(--mp-purple) 0, var(--mp-purple) 240px, #F6F1F7 240px, #F6F1F7 100%);
    padding: 56px 20px 32px;
}
.cef-mp-card { border: 0; border-radius: 24px; }
.cef-mp-logo { display: block; width: 190px; max-width: 60%; height: auto; margin: 0 0 6px; }
.cef-mp-done .cef-mp-logo { margin: 0 auto 4px; }
.cef-mp-head { padding-bottom: 18px; border-bottom: 1px solid #EEE6F0; }
.cef-mp .cef-mp-h1 { font-weight: 800; letter-spacing: -0.015em; }
.cef-mp-intro { color: var(--mp-muted); }

.cef-mp .cef-mp-chan { transition: border-color .15s ease, background-color .15s ease; }
.cef-mp .cef-mp-chan:hover { border-color: #b8a3c2; }
.cef-mp .cef-mp-chan.is-on:hover { border-color: var(--mp-purple); }
.cef-mp-tick { transition: background-color .15s ease, border-color .15s ease, transform .15s ease; }
.cef-mp-chan.is-on .cef-mp-tick { transform: scale(1.06); }
.cef-mp-chan-i { transition: background-color .15s ease, color .15s ease; }
.cef-mp-chan.is-on .cef-mp-chan-i { background: var(--mp-purple); color: #ffffff; }

.cef-mp .cef-mp-submit { letter-spacing: 0.01em; transition: background-color .15s ease; }
.cef-mp-note { background: #F6F1F7; color: var(--mp-ink); }

.cef-mp-legal { max-width: 640px; margin: 16px 0 0; font-size: 13px; color: #6E6275; text-align: center; }
.cef-mp-legal a { color: var(--mp-purple); }

@media (max-width: 640px) {
    .cef-mp {
        background: linear-gradient(to bottom, var(--mp-purple) 0, var(--mp-purple) 150px, #F6F1F7 150px, #F6F1F7 100%);
        padding: 20px 10px 24px;
    }
    .cef-mp-card { border-radius: 20px; padding: 22px 16px 24px; }
    .cef-mp-logo { width: 150px; }
    .cef-mp-head { padding-bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .cef-mp .cef-mp-chan, .cef-mp-tick, .cef-mp-chan-i, .cef-mp .cef-mp-submit { transition: none; }
    .cef-mp-chan.is-on .cef-mp-tick { transform: none; }
}
@media (max-width: 640px) {
    .cef-mp-chip { font-size: 14px; padding: 4px 12px 4px 4px; max-width: 100%; }
    .cef-mp-chip-i { width: 26px; height: 26px; }
    .cef-mp-details { padding: 12px; }
}
/* 1.5.72: positive ticks again. A ticked card means "keep in touch this
   way", so the ticked icon goes back to the purple fill from 1.5.69.
   "None at all" sits under the channels with a little space above it. */
.cef-mp .cef-mp-chan-none { margin-top: 6px; }

/* 1.5.74: separate mobile and home phone links, stacked. The SMS and
   WhatsApp cards keep their "if you've provided a mobile number" line on
   small screens, where other card sub lines are hidden. */
.cef-mp-links { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
@media (max-width: 640px) {
    .cef-mp-chan-mob .cef-mp-chan-sub { display: block; font-size: 13px; }
}

/* 1.5.74: admin-only Bigin debug panel */
.cef-mp-debugbox { width: 100%; max-width: 900px; margin: 16px 0 0; padding: 14px 16px; border: 2px dashed #b8a3c2; border-radius: 12px; background: #ffffff; color: #222; font-size: 13px; }
.cef-mp-debugbox p { margin: 6px 0 0; }
.cef-mp-debugbox pre { margin: 8px 0 0; white-space: pre-wrap; word-break: break-all; font: 12px/1.45 ui-monospace, Menlo, Consolas, monospace; max-height: 70vh; overflow: auto; }

/* 1.5.76: pencil button inside each detail chip */
.cef-mp .cef-mp-chip { padding-right: 5px; }
.cef-mp .cef-mp-pen {
    width: 30px; height: 30px; flex-shrink: 0; margin: 0 0 0 2px; padding: 0; border: 0; border-radius: 50%;
    background: transparent; color: var(--mp-purple); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: none;
}
.cef-mp .cef-mp-pen:hover { background: var(--mp-tint); color: var(--mp-pink); }
@media (max-width: 640px) { .cef-mp .cef-mp-pen { width: 28px; height: 28px; } }

/* 1.5.77: logo inline with the heading, intro underneath, less white space */
.cef-mp-head-row { display: flex; align-items: center; gap: 16px; }
.cef-mp-head-row .cef-mp-logo { width: 128px; max-width: 32%; flex-shrink: 0; margin: 0; }
.cef-mp-head-row .cef-mp-h1 { flex: 1 1 auto; min-width: 0; padding-left: 16px; border-left: 1px solid #EEE6F0; }
@media (min-width: 641px) { .cef-mp .cef-mp-head-row .cef-mp-h1 { font-size: 24px; } }
.cef-mp-head { gap: 10px; }
@media (max-width: 640px) {
    .cef-mp-head-row { gap: 12px; }
    .cef-mp-head-row .cef-mp-logo { width: 96px; }
    .cef-mp-head-row .cef-mp-h1 { font-size: 20px; padding-left: 12px; }
}
