/* Platform v3 - the last customer pages in Black and gold (pg-*), on top of site.css.
   The booking's thank-you, the message form, the consultation form, joining a plan,
   SheBraidedMe, hair returns, the hair-shop reward pages, the unsubscribe pages and
   the error pages. Loaded with @push('head') by those views only (the error pages
   link it themselves). site.css owns the tokens and every pb-* class; this file only
   adds what those pages need beyond them. Breakpoints as site.css: <=719px, >=1040px. */

/* Layout ------------------------------------------------------------------------ */
.pg-narrow { display: grid; gap: 16px; max-width: 760px; }
.pg-narrow--center { margin: 0 auto; }
.pg-side { display: grid; gap: 14px; align-content: start; }
.pg-head .pb-lede { max-width: 56ch; }
.pg-head .pb-code { justify-self: start; max-width: 100%; height: auto; min-height: 28px; overflow-wrap: anywhere; }
.pg-head__actions { margin-top: 2px; }
.pg-split { display: grid; gap: 16px; align-items: start; }
@media (min-width: 1040px) {
    .pg-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; }
    .pg-orderpage--wide { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}

/* A button whose words may need two lines on a phone. */
.pb-btn.pg-btn-wrap { height: auto; min-height: 50px; padding-top: 10px; padding-bottom: 10px; white-space: normal; line-height: 1.3; }
.pg-btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 719px) { .pg-btn-row > .pb-btn { flex: 1 1 100%; } }

/* Notes ------------------------------------------------------------------------- */
.pg-note { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--pb-gold-line); border-radius: 12px; background: var(--pb-tint-10); color: var(--pb-ink-85); font-size: 14px; line-height: 1.55; }
.pg-note--good { border-color: rgba(159, 224, 184, 0.35); background: rgba(159, 224, 184, 0.08); }
.pg-note--good b, .pg-note--good strong { color: var(--pb-good); }

/* Booking facts: wrap rather than run off a phone (a long service name). */
.pg-facts { display: grid; }
.pg-facts > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 14px; padding: 10px 0; border-bottom: 1px solid var(--pb-line-06); font-size: 14px; line-height: 1.45; }
.pg-facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.pg-facts dt { color: var(--pb-ink-66); }
.pg-facts dd { margin-left: auto; color: var(--pb-ink); text-align: right; overflow-wrap: anywhere; }
.pg-facts .is-money { font-family: var(--pb-mono); }
.pg-facts .is-key dd { color: var(--pb-gold-soft); }

/* The confirmation's to-do cards (patch test, consultation form) and the series. */
.pg-todo { border-color: var(--pb-gold-line); }
.pg-todo .pb-btn, .pg-series .pb-btn, .pg-message .pb-btn { justify-self: start; }
.pg-series { border-color: var(--pb-line-09); background: var(--pb-band); }
.pg-series form { margin: 0; }
@media (max-width: 719px) {
    .pg-todo .pb-btn, .pg-series .pb-btn, .pg-message .pb-btn { justify-self: stretch; }
    .pg-series form .pb-btn { width: 100%; }
}

/* Forms ------------------------------------------------------------------------- */
.pg-form { gap: 18px; padding: 22px; border-color: var(--pb-line-09); }
.pg-form form { margin: 0; }
.pg-label { font-size: 13px; font-weight: 600; color: var(--pb-ink-82); }
.pb-field .pb-field__opt { font-size: 12px; }
@media (max-width: 719px) { .pg-form { padding: 18px 16px; } }

/* A file input: the button inside it is the 44px target, in the house's outline. */
.pb-field input[type="file"] { height: auto; min-height: 56px; padding: 8px; font-size: 14px; color: var(--pb-ink-70); cursor: pointer; }
.pb-field input[type="file"]::file-selector-button {
    height: 40px; margin-right: 12px; padding: 0 14px;
    border: 1px solid var(--pb-gold-line-45); border-radius: 10px; background: transparent;
    color: var(--pb-gold-soft); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.pb-field input[type="file"]:hover::file-selector-button { background: var(--pb-tint-10); }
@media (max-width: 719px) { .pb-field input[type="file"]::file-selector-button { height: 44px; } }

/* A choice tile's words may wrap on a phone. */
.pb-choice span { overflow-wrap: break-word; }
.pb-choice b { font-weight: 600; }
.pb-choice small { display: block; font-size: 12.5px; font-weight: 500; color: var(--pb-ink-64); }
.pg-choices--one { grid-template-columns: minmax(0, 1fr); }
/* Two or three short answers (Yes / No / Prefer not to say) stay side by side on a phone. */
.pb-choices.pg-choices--row { display: flex; flex-wrap: wrap; }
.pb-choices.pg-choices--row > .pb-choice { flex: 1 1 auto; min-width: 96px; }
/* Native boxes and rings drawn dark, as the fields are: unticked, they were white on the black. */
.pb-choice input, .pb-consent input, .pg-check input { color-scheme: dark; }
.pg-consent-block { display: grid; gap: 2px; }
.pg-consent-block .pb-consent { padding: 8px 0; }

/* The consultation form ---------------------------------------------------------- */
.pg-for { display: grid; gap: 2px; width: fit-content; max-width: 100%; padding: 12px 16px; border: 1px solid var(--pb-gold-line); border-radius: 14px; background: var(--pb-surface); }
.pg-for small { font-size: 12.5px; font-weight: 600; color: var(--pb-gold-text); }
.pg-for b { font-size: 15.5px; font-weight: 600; }
.pg-for span { font-size: 14px; color: var(--pb-ink-70); }

.pg-steps { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.pg-steps li { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 14px 6px 6px; border: 1px solid var(--pb-line-09); border-radius: 99px; background: var(--pb-surface); }
.pg-steps__num { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 99px; background: var(--pb-tint-16); color: var(--pb-gold-soft); font-size: 13px; font-weight: 700; }
.pg-steps__text { display: grid; line-height: 1.25; }
.pg-steps__text b { font-size: 13.5px; font-weight: 600; }
.pg-steps__text small { font-size: 12px; color: var(--pb-ink-60); }

.pg-section { gap: 16px; padding: 22px; border-color: var(--pb-line-09); }
.pg-section > h2 { font-size: 20px; }
.pg-section__help { max-width: 64ch; font-size: 14px; line-height: 1.6; color: var(--pb-ink-70); }
@media (max-width: 719px) { .pg-section { padding: 18px 16px; } }

.pg-group { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.pg-legend { margin-bottom: 2px; padding: 0; font-size: 13px; font-weight: 600; line-height: 1.45; color: var(--pb-ink-82); }

/* A long medical list: calm rows, two columns when wide, and one honest "none". */
.pg-conditions__list { display: grid; gap: 6px; }
@media (min-width: 720px) { .pg-conditions__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pg-check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 11px 12px; border: 1px solid var(--pb-line-08); border-radius: 12px; background: var(--pb-line-03); font-size: 14px; line-height: 1.45; color: var(--pb-ink-82); cursor: pointer; }
.pg-check input { width: 18px; height: 18px; flex: none; margin: 1px 0 0; accent-color: var(--pb-gold); }
.pg-check:has(input:checked) { border-color: var(--pb-gold-line-55); background: var(--pb-tint-10); }
.pg-check--none { border-color: var(--pb-line-14); background: var(--pb-raised); font-weight: 600; }
.pg-conditions.is-none .pg-conditions__list { opacity: 0.6; }

.pg-consentlist { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.6; color: var(--pb-ink-78); }
.pg-consentlist li { position: relative; padding-left: 18px; }
.pg-consentlist li::before { content: ""; position: absolute; left: 2px; top: calc(0.8em - 3px); width: 6px; height: 6px; border-radius: 99px; background: var(--pb-gold); }

.pg-done { justify-items: start; border-color: rgba(159, 224, 184, 0.3); }
.pg-done__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 99px; background: rgba(159, 224, 184, 0.12); color: var(--pb-good); }
.pg-done__icon svg { width: 20px; height: 20px; }

/* SheBraidedMe -------------------------------------------------------------------- */
.pg-serieshead .pb-h1 em { font-style: normal; color: var(--pb-gold-soft); }
.pg-serieshead .pb-lede { max-width: 60ch; }
.pg-points { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.pg-points li { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; line-height: 1.6; color: var(--pb-ink-78); }
.pg-points b { color: var(--pb-ink); font-weight: 600; }

/* The reward amounts on the share page. */
.pg-rewards { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.pg-rewards li { display: inline-flex; align-items: baseline; gap: 10px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--pb-gold-line); border-radius: 14px; background: var(--pb-surface); font-size: 14px; color: var(--pb-ink-82); }
.pg-rewards .pb-price { font-size: 17px; }

/* A short page with one thing on it (unsubscribe): centred, with the house mark. */
.pg-notice { justify-items: start; gap: 16px; padding: 28px; border-color: var(--pb-gold-line); }
.pg-notice .pb-h2 { font-size: 30px; }
.pg-notice form { margin: 0; }
@media (max-width: 719px) {
    .pg-notice { padding: 22px 16px; }
    .pg-notice .pb-h2 { font-size: 26px; }
    .pg-notice .pb-btn { width: 100%; }
}

/* Error pages (resources/views/errors): no header, no database, the mark and three ways on. */
.pg-error { display: grid; min-height: 100vh; }
.pg-error__main { display: grid; place-items: center; padding: 48px var(--pb-pad); }
.pg-error__card { position: relative; z-index: 1; display: grid; justify-items: start; gap: 18px; width: 100%; max-width: 640px; }
.pg-error__card .pb-h2 { font-size: 40px; }
.pg-error__card .pb-lede { max-width: 48ch; }
.pg-error__brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.pb a.pg-error__brand { color: var(--pb-ink); }
.pg-error__brand img { width: 44px; height: 44px; flex: none; border: 1px solid var(--pb-gold-line-50); border-radius: 999px; background: #0e0c0a; object-fit: contain; }
.pg-error__brand span { display: grid; line-height: 1.15; }
.pg-error__brand b { font-size: 16px; font-weight: 600; }
.pg-error__brand small { font-size: 12px; color: var(--pb-ink-60); }
@media (max-width: 719px) {
    .pg-error__main { place-items: start center; padding-top: 40px; }
    .pg-error__card .pb-h2 { font-size: 30px; }
    .pg-error__card .pb-actions { width: 100%; }
    .pg-error__card .pb-actions > .pb-btn { flex: 1 1 100%; }
}
