/* Design tokens, taken from the profile page mock-up. A brand change
   edits this block and nothing else; every component below is written
   against the names, never against the values.

   The old names are kept and repointed rather than renamed, so the
   confirmation, cancellation and reschedule pages inherit the new look
   without being rewritten. */
:root {
    --navy: #0E0E2C;
    --blue: #1E3A8A;
    --blue-soft: #C9D2EE;
    --blue-tint: #EEF1FB;
    --violet: #480099;
    --violet-tint: #E9E6F2;
    --mint: #046C4E;
    --mint-deep: #046C4E;
    --mint-tint: #E7F6EF;
    /* No longer a fill. The primary action is navy in this design; the
       yellow survives only as a focus accent. */
    --sun: #FFF500;
    --danger: #B42318;
    --danger-tint: #FEF1F0;
    --surface: #ffffff;
    --background: #F6F6F9;
    --border: #E6E6EE;
    --border-strong: #D5D9E8;
    --text: var(--navy);
    --text-soft: #2E2E48;
    --muted: #55556B;
    --faint: #B8B8C8;
    --radius: 20px;
    --radius-md: 14px;
    --radius-sm: 12px;
    --radius-xs: 10px;
    --gap: 16px;
    --gap-sm: 10px;
    --shadow: 0 4px 16px rgba(14, 14, 44, .05), 0 1px 2px rgba(14, 14, 44, .03);
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
/* Mobile first: one column, generous targets. The width a page gets is
   the page's own business — a receipt wants a narrow column, the
   profile wants two. */
.page { margin: 0 auto; padding: var(--gap); }
.page-narrow { max-width: 640px; }
.page-wide { max-width: 1120px; }

/* The bar the brand lives in, across every public page. */
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); }
.topbar-inner {
    max-width: 1120px; margin: 0 auto;
    padding: 16px var(--gap);
    display: flex; align-items: center; gap: var(--gap);
}
/* Three blocks, two columns, and the source order is the phone order:
   who this is, then how to book them, then everything else. A customer
   on a phone should not have to scroll past a life story to find the
   button, nor be asked to book somebody they have not seen yet. */
.layout { display: grid; gap: var(--gap); align-items: start; }
/* The grid owns the spacing here. The cards' own bottom margin dates
   from when the page was one column, and left on it doubles every gap
   inside the layout. */
.layout .card { margin-bottom: 0; }
/* min-width on the children too: this is a grid now, and a grid item
   is at least as wide as its content unless told otherwise — which the
   day strip inside gladly is. */
.layout-aside { display: grid; gap: var(--gap); align-content: start; }
.layout-aside > * { min-width: 0; }
/* Without this a grid item is at least as wide as its content, and one
   long row inside the booking panel stretches the whole page past the
   viewport. */
.layout > * { min-width: 0; }
@media (min-width: 960px) {
    .layout { grid-template-columns: minmax(0, 1fr) 360px; }
    /* The second row takes every spare pixel. The booking panel spans
       both rows and is usually the tallest thing here, and with two
       auto rows the surplus lands in the first one — which pushed the
       tabs card down the page, by an amount that changed with whichever
       tab was open. */
    .layout { grid-template-rows: auto 1fr; }
    .layout-hero { grid-column: 1; grid-row: 1; }
    .layout-aside { grid-column: 2; grid-row: 1 / span 2; }
    .layout-rest { grid-column: 1; grid-row: 2; align-self: start; }
}
.card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: var(--gap);
}
h1 { font-size: 1.6rem; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 6px; font-weight: 800; }
h2 { font-size: 1.05rem; margin: 0; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 8px; }
.muted { color: var(--muted); font-size: .92rem; }
/* En-tête de la maquette : Venit.pro, « par » MesDépanneurs, et la mention de sécurité à droite. */
.brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.brand-name { font-weight: 800; font-size: 1.55rem; line-height: 1; letter-spacing: -.04em; color: var(--navy); text-decoration: none; }
.brand-name em { font-style: normal; color: #1F5BFF; }
.brand-by { display: flex; align-items: center; gap: 10px; padding-left: 16px; border-left: 1px solid var(--border-strong);
    color: var(--muted); font-size: .95rem; line-height: 1; }
.md-logo { display: block; height: 22px; width: auto; color: var(--navy); }
.topbar-secure { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--muted);
    font-size: .95rem; font-weight: 500; white-space: nowrap; }
.topbar-secure svg { color: var(--mint-deep); flex: 0 0 auto; }
@media (max-width: 640px) {
    .topbar-secure span { display: none; }
    .brand { gap: 12px; }
    .brand-by { padding-left: 12px; gap: 8px; }
    .brand-name { font-size: 1.4rem; }
    .md-logo { height: 18px; }
}
@media (max-width: 380px) { .brand-by > span { display: none; } }
/* The work gallery, when there is one.
   One big picture and up to four beside it, which is the shape every
   booking page uses because it reads as "here is the work" at a glance.
   Below 700px it becomes a single band: four thumbnails on a phone are
   four things too small to see. */
.gallery {
    display: grid; gap: 6px; margin-bottom: 16px;
    border-radius: var(--radius); overflow: hidden;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 120px 120px;
}
.gallery img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    background: var(--border);
}
.gallery img:first-child { grid-row: span 2; }
/* A lone picture must not be sliced into a third of a grid. */
.gallery-1 { grid-template-columns: 1fr; grid-template-rows: 220px; }
.gallery-2 { grid-template-columns: 1fr 1fr; grid-template-rows: 200px; }
.gallery-2 img:first-child { grid-row: span 1; }
.gallery-3 { grid-template-columns: 2fr 1fr; }
.gallery-4 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 120px 120px; }
.gallery-4 img:nth-child(4) { grid-column: span 2; }
.gallery-more { margin: -8px 0 16px; }
.gallery-more summary {
    cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--blue);
}
.gallery-rest {
    display: grid; gap: 6px; margin-top: 8px;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
}
.gallery-rest img {
    width: 100%; height: 110px; object-fit: cover; display: block;
    border-radius: var(--radius-sm); background: var(--border);
}
@media (max-width: 700px) {
    .gallery, .gallery-1, .gallery-2, .gallery-3, .gallery-4 {
        grid-template-columns: 1fr; grid-template-rows: 200px;
    }
    .gallery img:first-child { grid-row: span 1; }
    .gallery img:not(:first-child) { display: none; }
    .gallery-4 img:nth-child(4) { grid-column: auto; }
}
.pro-header { display: flex; gap: 16px; align-items: flex-start; }
.pro-photo { border-radius: 14px; object-fit: cover; flex: 0 0 auto; }
.badge {
    display: inline-block; padding: 5px 11px; border-radius: 999px;
    background: var(--mint-tint); color: var(--mint-deep);
    font-size: .8rem; font-weight: 700;
}
.step { display: flex; gap: 10px; align-items: center; margin: 22px 0 12px; }
.step:first-of-type { margin-top: 0; }
.step-number {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; flex: 0 0 26px; border-radius: 999px;
    background: var(--blue); color: #fff; font-size: .8rem; font-weight: 800;
}
label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 5px; color: var(--muted); }
input[type=text], input[type=tel], input[type=email], textarea, select {
    width: 100%; padding: 13px 14px; font-size: 1rem; font-family: inherit;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--text); -webkit-appearance: none; appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 38px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
textarea { min-height: 84px; resize: vertical; }
.field { margin-bottom: 14px; position: relative; }
.contact { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 10px 0 0; }
.contact a { color: var(--blue, #0058FE); text-decoration: none; font-weight: 600; }
.contact a:hover { text-decoration: underline; }

/* Address suggestions. Absolutely positioned so the form does not jump
   under the cursor while somebody is typing into it. */
.suggestions {
    position: absolute; z-index: 20; left: 0; right: 0; margin: 4px 0 0;
    padding: 4px; list-style: none; max-height: 260px; overflow-y: auto;
    background: #fff; border: 1px solid var(--border); border-radius: 10px;
    box-shadow: 0 10px 30px rgba(5, 15, 55, .12);
}
.suggestions li {
    padding: 9px 10px; border-radius: 7px; cursor: pointer;
    font-size: .95rem; line-height: 1.3;
}
.suggestions li:hover, .suggestions li.active { background: var(--background); }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1 1 140px; }
.choices { display: grid; gap: 10px; }
@media (min-width: 520px) { .choices { grid-template-columns: repeat(2, 1fr); } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
    display: block; padding: 14px; min-height: 52px;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface); cursor: pointer; transition: border-color .12s, background .12s;
}
.choice span strong { font-size: 1rem; font-weight: 700; }
.choice input:checked + span { border-color: var(--blue); background: var(--blue-tint); }
.choice input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.choice small { display: block; color: var(--muted); margin-top: 2px; }
.choice input:checked + span small { color: var(--blue); }
button {
    width: 100%; min-height: 52px; padding: 14px; font-size: 1rem; font-weight: 700;
    border: 0; border-radius: var(--radius-sm); background: var(--blue); color: #fff;
    cursor: pointer; letter-spacing: -.01em;
}
button:hover { filter: brightness(1.12); }
button:disabled { background: var(--border); color: var(--faint); cursor: not-allowed; filter: none; }
.errors {
    background: var(--danger-tint); color: var(--danger);
    border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: var(--gap);
    font-size: .92rem;
}
.errors ul { margin: 0; padding-left: 18px; }
.day-label { font-weight: 700; margin: 18px 0 8px; font-size: .95rem; }
.day-label:first-of-type { margin-top: 8px; }
.hidden { position: absolute; left: -9999px; }
/* Choosing a window, or saying it cannot wait. Two cards rather than
   a tick box, because they are two different promises and one of them
   is "none". */
.modes { display: grid; gap: 8px; margin: 4px 0 12px; }
@media (min-width: 560px) { .modes { grid-template-columns: 1fr 1fr; } }
.mode { position: relative; }
.mode input { position: absolute; opacity: 0; pointer-events: none; }
.mode span {
    display: block; padding: 12px 14px; cursor: pointer;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface); transition: border-color .12s, background .12s;
}
.mode strong { display: block; font-size: .95rem; }
.mode small { display: block; color: var(--muted); font-size: .82rem; margin-top: 3px; }
.mode input:checked + span { border-color: var(--blue); background: var(--blue-tint); }
.mode input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
/* The urgent one reads as urgent once it is the one chosen, and not
   before: a red card sitting there is a nudge, not information. */
.mode input[value="urgent"]:checked + span {
    border-color: var(--danger); background: var(--danger-tint);
}
.mode input[value="urgent"]:checked + span strong { color: var(--danger); }
.window-hint {
    background: var(--blue-tint); color: var(--blue); border-radius: var(--radius-sm);
    padding: 12px 14px; font-size: .88rem; margin: 4px 0 4px;
}
/* The confirmation recap: label above value, which survives a long
   address on a phone where two columns do not. */
.recap { margin: 14px 0 0; display: grid; gap: 10px; }
.recap dt {
    font-size: .78rem; font-weight: 700; color: var(--muted);
    text-transform: uppercase; letter-spacing: .04em;
}
.recap dd { margin: 2px 0 0; font-size: .98rem; }
.recap dd a { margin-left: 6px; }
/* Links, not buttons: the page's button is the big yellow one and there
   is only ever one of those. */
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.action {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 11px 16px; border-radius: var(--radius-sm);
    border: 1.5px solid var(--border); background: var(--surface);
    font-size: .92rem; font-weight: 700; text-decoration: none; color: var(--text);
}
.action:hover { border-color: var(--blue); color: var(--blue); }
.action-primary { border-color: var(--blue); background: var(--blue-tint); color: var(--blue); }
.actions-wide .action { flex: 1 1 auto; }
.action-keep { border-color: var(--blue); background: var(--blue-tint); color: var(--blue); }
/* Doing it is allowed and plain to find; it is simply not dressed up as
   the thing the page wants you to press. */
.button-danger {
    margin-top: 10px; background: var(--surface); color: var(--danger);
    border: 1.5px solid var(--danger); box-shadow: none;
    min-height: 48px; font-size: .95rem;
}
.button-danger:hover { background: var(--danger-tint); filter: none; }
.action-quiet { border-color: transparent; color: var(--muted); }
.action-quiet:hover { border-color: var(--danger); color: var(--danger); }
.badge-off { background: var(--border); color: var(--muted); }
.badge-urgent { background: var(--danger-tint); color: var(--danger); }
/* Not green: "free a week on Thursday" is information, not good news. */
.badge-soon {
    display: inline-flex; align-items: center;
    padding: 5px 11px; border-radius: 999px;
    background: var(--blue-tint); color: var(--blue);
    font-size: .82rem; font-weight: 700; white-space: nowrap;
}
/* A cancelled appointment stays readable — the customer may be looking
   for the reference — but stops looking like something that is going
   to happen. */
.is-off { opacity: .6; }
.reference { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
.big-window { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; margin: 2px 0 6px; }
/* ---- the professional's profile ------------------------------- */

.hero { display: flex; gap: var(--gap); align-items: flex-start; }
.hero-photo {
    width: 120px; height: 120px; flex: 0 0 120px;
    border-radius: var(--radius-md); object-fit: cover; background: var(--blue-tint);
}
.hero-body { min-width: 0; flex: 1 1 auto; }
.hero-name { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hero-name h1 { margin: 0; font-size: 2rem; }
.hero-line { color: var(--text-soft); font-size: 1.05rem; margin: 6px 0 0; }
.hero-facts {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 6px 18px; margin-top: 8px; font-size: .92rem;
}
.hero-where { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
@media (max-width: 480px) {
    .hero-photo { width: 76px; height: 76px; flex-basis: 76px; }
    .hero-name h1 { font-size: 1.45rem; }
}

.verified {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px; border-radius: 999px;
    background: var(--mint-tint); color: var(--mint-deep);
    font-size: .82rem; font-weight: 700; white-space: nowrap;
}

/* Trades the professional covers, as chips. */
.trades { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; }
.trades-label { color: var(--muted); font-size: .9rem; }
.trade {
    padding: 7px 14px; border-radius: 999px;
    background: var(--blue-tint); color: var(--blue);
    font-size: .9rem; font-weight: 600;
}

/* The figures. auto-fit rather than a fixed count, so four tiles become
   two rows on a phone instead of four slivers. */
.stats {
    display: grid; gap: var(--gap-sm); margin-top: 18px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.stat {
    border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 14px 16px; background: var(--surface);
}
.stat-value { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.stat-label { color: var(--muted); font-size: .85rem; margin-top: 2px; }

/* A strip of work photos, and a link into the rest of them. */
.strip { display: flex; align-items: center; gap: var(--gap-sm); margin-top: 18px; flex-wrap: wrap; }
.strip img {
    width: 84px; height: 62px; object-fit: cover;
    border-radius: var(--radius-xs); background: var(--border); display: block;
}
.strip-link { font-weight: 700; color: var(--blue); font-size: .92rem; }

/* What has actually been checked about this professional. */
.trust {
    display: flex; flex-wrap: wrap; gap: 8px 22px;
    margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border);
    font-size: .9rem;
}
/* The whole item green, tick and words: half-green read as "this one
   is checked and the text beside it is something else". */
.trust span { display: inline-flex; align-items: center; gap: 7px; color: var(--mint-deep); font-weight: 600; }
.trust svg { flex: 0 0 auto; }

/* Tabs. A horizontal scroller rather than a wrap: four labels on two
   lines stop reading as one control. */
.tabs {
    display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
    border-bottom: 1px solid var(--border); margin: -4px -20px 18px;
    padding: 0 20px;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
    flex: 0 0 auto; width: auto; min-height: 0;
    background: none; color: var(--muted);
    border: 0; border-bottom: 2px solid transparent; border-radius: 0;
    padding: 12px 14px; font-size: .95rem; font-weight: 600; white-space: nowrap;
}
.tab:hover { background: none; color: var(--text); filter: none; }
.tab[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); }
.tab-panel[hidden] { display: none; }

.credentials {
    display: grid; gap: var(--gap-sm);
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.credential {
    display: flex; gap: 12px; align-items: flex-start;
    border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px;
}
.credential-icon {
    width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px;
    background: var(--blue-tint); color: var(--blue);
    display: inline-flex; align-items: center; justify-content: center;
}
.credential-icon-green { background: var(--mint-tint); color: var(--mint-deep); }
.credential b { display: block; font-size: .92rem; }
.credential small { color: var(--muted); font-size: .82rem; }

.pledges {
    list-style: none; padding: 0; margin: 0; display: grid; gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.pledges li { display: flex; gap: 8px; align-items: flex-start; font-size: .93rem; }

/* ---- the booking panel ----------------------------------------- */

/* Wraps rather than squeezing: "Prendre rendez-vous" broken across two
   lines to make room for a badge is worse than the badge on its own
   line. */
.panel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 14px; }
.panel-head h2 { margin: 0; }
.field-label { font-size: .88rem; font-weight: 600; margin-bottom: 5px; color: var(--muted); }

/* The days, as a strip. Seven columns of windows need a desktop; a row
   of day chips fits a phone and fits the 360px aside, which is where
   this lives. */
.daystrip-nav {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; margin: 16px 0 8px;
}
.daystrip-month { font-weight: 700; font-size: .95rem; }
/* Overrides the page's one big button, which these are not. */
.strip-arrow {
    width: 34px; min-height: 34px; flex: 0 0 34px; padding: 0;
    font-size: 1.2rem; font-weight: 700; line-height: 1;
    background: var(--surface); color: var(--text);
    border: 1.5px solid var(--border-strong); border-radius: 999px;
}
.strip-arrow:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); filter: none; }
.strip-arrow:disabled { background: var(--surface); color: var(--faint); border-color: var(--border); }
.daystrip { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
/* align-items, or every chip stretches to the tallest one. No scroll
   snapping: it fights the programmatic scroll that brings the chosen
   day into view. */
.daystrip-days {
    display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
    flex: 1 1 auto; align-items: center; padding-bottom: 2px;
    /* A flex item is at least as wide as its content unless told
       otherwise, which would make overflow-x: auto never scroll and
       push the panel past the edge of the screen instead. */
    min-width: 0;
}
.daystrip-days::-webkit-scrollbar { display: none; }
.daychip { position: relative; flex: 0 0 auto; }
.daychip input { position: absolute; opacity: 0; pointer-events: none; }
.daychip > span {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 62px; padding: 9px 4px; cursor: pointer; line-height: 1.25;
    border: 1.5px solid var(--border-strong); border-radius: var(--radius-xs);
    background: var(--surface); transition: border-color .12s, background .12s;
}
.daychip-name { font-size: .75rem; color: var(--muted); }
.daychip-number { font-size: 1.15rem; font-weight: 700; }
.daychip input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.daychip input:checked + span .daychip-name { color: #fff; }
.daychip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
/* A day with nothing open is shown rather than dropped: a gap in the
   strip reads as a bug, and the professional being busy on Thursday is
   information. It is simply not something to tap. */
.daychip-empty span { color: var(--faint); background: var(--background); cursor: default; }
.daychip-empty .daychip-name { color: var(--faint); }

.windows { display: flex; flex-wrap: wrap; gap: 8px; }
.windows .choice span {
    padding: 11px 14px; min-height: 0; font-size: .92rem; font-weight: 600;
    border-radius: var(--radius-xs); white-space: nowrap;
    background: var(--background); border-color: transparent;
}
.windows .choice input:checked + span {
    background: var(--blue); border-color: var(--blue); color: #fff;
}
.day-group[hidden] { display: none; }
.day-title { font-size: .85rem; color: var(--muted); margin: 0 0 7px; }

.panel-hint { color: var(--muted); font-size: .85rem; margin: 12px 0 0; }
/* Step one's button. Named after what was chosen, because "continuer"
   tells the customer nothing about what they are agreeing to. */
.continue { margin-top: 16px; }
.continue[hidden] { display: none; }

/* The urgent option, as one row rather than a card the size of the
   picker: it is the exception, and it should not look like half the
   offer. */
.urgent-switch { position: relative; display: block; margin-top: 14px; }
.urgent-switch input { position: absolute; opacity: 0; pointer-events: none; }
.urgent-switch > span {
    display: block; padding: 11px 14px; cursor: pointer;
    border: 1.5px dashed var(--border-strong); border-radius: var(--radius-sm);
    background: var(--surface);
}
.urgent-switch strong { display: block; font-size: .92rem; }
.urgent-switch small { display: block; color: var(--muted); font-size: .82rem; margin-top: 3px; }
.urgent-switch input:checked + span {
    border-style: solid; border-color: var(--danger); background: var(--danger-tint);
}
.urgent-switch input:checked + span strong { color: var(--danger); }
.urgent-switch input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
/* Visible by default and hidden by the script, never the other way
   round: without JavaScript both modes have to be pickable, and a row
   that only appears once a script runs is a row that never appears. */
.urgent-switch-off[hidden] { display: none; }

.reassure { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 7px; }
.reassure li { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; color: var(--muted); }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.contact-list svg { flex: 0 0 auto; color: var(--muted); margin-top: 2px; }
.contact-list small { display: block; color: var(--muted); font-size: .84rem; }
.rating { display: inline-flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.stars { color: #E8A33D; letter-spacing: .5px; }
.stars-off { color: var(--border-strong); }
.about-facts { color: var(--muted); font-size: .92rem; margin: 0 0 10px; }
.hours-line { display: block; }
.hours-line b { font-weight: 600; }

/* A checkbox that looks like one. The booking page's cards hide their
   input and signal state with a border, which works for a choice
   between two named things and not at all for four independent ticks
   that all start off. */
.toggles { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.toggle {
    display: flex; align-items: center; gap: 10px; cursor: pointer;
    padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
}
.toggle input { width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--blue); margin: 0; }
.toggle:has(input:checked) { border-color: var(--blue); background: var(--blue-tint); }
.toggle:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }

/* The administration page still explains itself with this; the public
   page has nothing left to mark, because it has nothing invented. */
.demo-note {
    display: flex; gap: 10px; align-items: flex-start;
    background: var(--violet-tint); color: var(--violet);
    border-radius: var(--radius-sm); padding: 11px 14px;
    font-size: .88rem; margin-bottom: var(--gap);
}

/* ---- the receipt a customer comes back to ---------------------- */

.receipt-title { margin: 0 0 14px; font-size: 1.45rem; }
.receipt-head { display: flex; gap: 18px; align-items: flex-start; }
.receipt-photo {
    width: 104px; height: 104px; flex: 0 0 104px; object-fit: cover;
    border-radius: var(--radius-sm); background: var(--blue-tint);
}
.receipt-body { min-width: 0; flex: 1; }
.receipt-when { margin: 0; font-size: 1.1rem; font-weight: 700; }
.receipt-who { margin: 2px 0 12px; font-weight: 600; }
.receipt-facts { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 7px; }
.receipt-facts li { display: flex; gap: 9px; align-items: flex-start; font-size: .92rem; }
.receipt-facts svg { flex: 0 0 auto; margin-top: 2px; color: var(--muted); }
.receipt-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.receipt-note { text-align: center; font-size: .85rem; margin-top: 14px; }
.is-off { opacity: .72; }

/* A question asked before something irreversible. Native <dialog>, so
   the backdrop, the focus trap and the Escape key are the browser's
   rather than three scripts of our own. */
.ask::backdrop { background: rgba(16, 20, 33, .45); }
.ask {
    border: 0; border-radius: var(--radius); padding: 22px;
    max-width: 420px; width: calc(100% - 32px);
    box-shadow: 0 18px 50px rgba(16, 20, 33, .22);
}
.ask h2 { margin: 0 0 8px; font-size: 1.1rem; }
.ask p { margin: 0 0 18px; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.action-danger { background: var(--danger); color: #fff; border-color: transparent; }

@media (max-width: 560px) {
    .receipt-head { flex-direction: column; }
    .receipt-photo { width: 100%; height: 150px; flex: none; }
}

footer { text-align: center; padding: var(--gap) var(--gap) 32px; color: var(--muted); font-size: .84rem; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; margin-top: 10px; }
.legal-links a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.legal-links a:hover { color: var(--text); }

/* The tick has to be read before it is ticked, so it sits with the
   button and not in the small print under it. */
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 2px 0 14px; font-size: .86rem; line-height: 1.45; }
.consent input { width: 18px; height: 18px; flex: 0 0 18px; margin: 1px 0 0; accent-color: var(--blue); }
.consent a { color: var(--blue); }

.legal h2 { font-size: 1.02rem; margin: 26px 0 8px; }
.legal p, .legal li { line-height: 1.6; }
.legal ul { margin: 8px 0; padding-left: 20px; }
.legal li { margin-bottom: 6px; }
