/* =====================================================================
   PARTNER / RUN-CLUB SHARED BRAND LAYER  (task-252)
   ---------------------------------------------------------------------
   One editorial, token-driven language for every "partner-facing" surface:
   the sponsor page, the run-club page, and the event-detail sections.

   - Accent derived from the official Rise & Run logo (coastal teal + gold).
   - Consumes design-system/tokens.css (navy ink, Playfair + Inter, spacing).
   - Hairline rules, restrained radius, big type. No multicolor, no pills,
     no gradient cards, no heavy shadows.
   Load AFTER design-system/tokens.css; per-page CSS may load after this.
   ===================================================================== */

:root {
    /* Rise & Run brand accent — sampled from the official logo.
       Teal is the primary accent; gold is a sparing secondary.
       Variants chosen for WCAG AA (white text on --rr-accent ≈ 4.5:1). */
    --rr-accent:        #138577;   /* interactive: links, CTA fill, focus  */
    --rr-accent-deep:   #0f6f64;   /* hover / active                       */
    --rr-accent-bright: #2bb3a3;   /* graphic fills, decorative (no text)  */
    --rr-accent-soft:   #e8f5f3;   /* tint backgrounds                     */
    --rr-accent-rgb:    19, 133, 119;

    --rr-gold:          #d4a24c;   /* secondary accent (featured, on dark) */
    --rr-gold-soft:     #f6edda;

    /* Neutral ink reuses the site's navy + slate scale. */
    --rr-ink:           var(--color-primary);    /* #1e3a5f */
    --rr-ink-soft:      var(--text-secondary);   /* #475569 */
    --rr-muted:         var(--text-muted);       /* #94a3b8 */
    --rr-line:          var(--border-light);     /* #e2e8f0 */
    --rr-paper:         #ffffff;
    --rr-paper-alt:     var(--bg-secondary);     /* #faf8f5 */

    /* Brand-page typographic voice — Space Grotesk display + Inter body.
       MIRRORED from rr-kit.css here on purpose: the partner + run-club pages load
       partner-brand.css directly, so they get --rr-display even if the site-wide kit
       is cached/blocked. Don't let this token live in only one file. (task-283c) */
    --rr-display:       'Space Grotesk', 'Inter', system-ui, sans-serif;
    --rr-text:          'Inter', system-ui, sans-serif;

    /* Depth — soft, navy-tinted layered shadows (restrained, never heavy). */
    --rr-shadow-sm: 0 1px 2px rgba(15,39,68,.05), 0 1px 3px rgba(15,39,68,.04);
    --rr-shadow:    0 2px 6px rgba(15,39,68,.05), 0 10px 28px rgba(15,39,68,.07);
    --rr-shadow-lg: 0 6px 14px rgba(15,39,68,.07), 0 22px 48px rgba(15,39,68,.11);
    --rr-shadow-accent: 0 10px 26px rgba(19,133,119,.26);

    /* Gradients — subtle, brand-tinted (no generic purple). */
    --rr-grad-accent: linear-gradient(135deg, #1aa392 0%, #138577 55%, #0f6f64 100%);
    --rr-grad-gold:   linear-gradient(135deg, #e2b85f 0%, #d4a24c 100%);
    --rr-grad-ink:    linear-gradient(155deg, #16324f 0%, #0f2744 60%, #0b1d33 100%);
    --rr-wash-paper:  linear-gradient(180deg, #ffffff 0%, #fafdfc 100%);
    --rr-wash-alt:    linear-gradient(180deg, #f4faf9 0%, #ecf6f4 100%);
    --rr-radius:      18px;
}

/* =====================================================================
   1. SECTION PRIMITIVES  (.pb-*)
   ===================================================================== */

.pb-section {
    padding: clamp(3.25rem, 7vw, 5.5rem) 0;
}
/* Clean editorial section tints — matched to the brand page (.bd-section--*): plain
   white / light-grey / dark. No teal-wash or radial "mesh" gradients (task-283). */
.pb-section--paper { background: #ffffff; }
.pb-section--alt   { background: #f6f8f7; }
.pb-section--mesh  { background: #f6f8f7; }
.pb-section--ink   { background: #14201d; color: #fff; }

.pb-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 2rem);
}

/* Section header — eyebrow + display heading + lead. Matched 1:1 to the brand page's
   .bd-eyebrow / .bd-h2 / .bd-lead so every related page reads with the SAME voice:
   Space Grotesk title, teal hairline eyebrow, LEFT-aligned editorial (task-283). */
.pb-head { max-width: 680px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.pb-head--center { text-align: left; }   /* legacy modifier neutralised — brand look is left-aligned */

.pb-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--rr-text);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--rr-accent);
    margin: 0 0 14px;
}
.pb-eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--rr-accent);
    display: inline-block;
}

.pb-title {
    font-family: var(--rr-display);
    font-weight: 600;
    font-size: clamp(1.8rem, 4vw, 2.9rem);
    line-height: 1.05;
    letter-spacing: -.02em;
    color: var(--rr-ink);
    margin: 0 0 18px;
}
.pb-section--ink .pb-title { color: #fff; }

.pb-lead {
    max-width: 640px;
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    line-height: 1.6;
    color: var(--rr-ink-soft);
    margin: 0;
}
.pb-section--ink .pb-lead { color: rgba(255,255,255,.72); }

/* Hairline divider */
.pb-rule { height: 1px; background: var(--rr-line); border: 0; margin: 0; }

/* Buttons */
.pb-btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 600;
    line-height: 1;
    padding: .9rem 1.6rem;
    border-radius: var(--rr-radius-btn, 6px);   /* squared, shared with brand + event (task-281) */
    border: 1.5px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out),
                border-color var(--duration-fast) var(--ease-out),
                transform var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out);
}
/* Flat teal — consistent with the brand + event-detail primary button (task-281). */
.pb-btn--primary { background: var(--rr-accent); color: #fff; box-shadow: var(--rr-btn-shadow, var(--rr-shadow-accent)); }
.pb-btn--primary:hover { background: var(--rr-accent-deep); color: #fff; text-decoration: none; transform: translateY(-2px); box-shadow: var(--rr-btn-shadow-hover, 0 14px 32px rgba(19,133,119,.32)); }
.pb-btn--ghost { background: transparent; color: var(--rr-ink); border-color: var(--rr-line); }
.pb-btn--ghost:hover { border-color: var(--rr-accent); color: var(--rr-accent); text-decoration: none; }
.pb-section--ink .pb-btn--ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.pb-section--ink .pb-btn--ghost:hover { border-color: #fff; color: #fff; }

/* =====================================================================
   2. PHOTO-LED HERO  (.pb-hero)
   ===================================================================== */

.pb-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 100vh;        /* full-screen hero (task-273) */
    min-height: 100svh;       /* avoid the mobile URL-bar jump where supported */
    background: var(--color-primary-dark);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.pb-hero__scrim {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 95% at 82% 4%, rgba(43,179,163,.20) 0%, transparent 52%),
        linear-gradient(180deg, rgba(11,29,51,.12) 0%, rgba(11,29,51,.52) 54%, rgba(11,29,51,.92) 100%),
        linear-gradient(102deg, rgba(11,29,51,.72) 0%, rgba(11,29,51,0) 66%);
}
/* Brand detail: a thin gold edge at the foot of the hero. */
.pb-hero::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 4px;
    background: var(--rr-grad-gold);
    z-index: 2;
}
.pb-hero__inner {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 5vw, 2rem);
}
.pb-hero__lockup {
    height: 60px;
    width: auto;
    margin-bottom: 1.25rem;
    filter: drop-shadow(0 2px 10px rgba(8, 20, 36, .55));   /* keep the colour emblem legible on any photo */
}
.pb-hero__eyebrow { color: #fff; }
.pb-hero__eyebrow::before { background: var(--rr-gold); }
.pb-hero__title {
    font-family: var(--rr-display);
    font-weight: 700;
    font-size: clamp(2.1rem, 6vw, 3.9rem);
    line-height: 1.04;
    letter-spacing: -.015em;
    color: #fff;
    margin: 0;
    max-width: 16ch;
}
.pb-hero__title em { font-style: italic; color: var(--rr-accent-bright); }
.pb-hero__tagline {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.55;
    color: rgba(255,255,255,.82);
    margin: 1.15rem 0 0;
    max-width: 46ch;
}
.pb-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.75rem;
    margin: 1.5rem 0 0;
    color: rgba(255,255,255,.7);
    font-size: .9rem;
}
.pb-hero__meta span { display: inline-flex; align-items: center; gap: .45rem; }
.pb-hero__meta i { color: var(--rr-accent-bright); }
.pb-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.9rem 0 0; }

/* =====================================================================
   3. PROOF / STAT BAR  (.pb-stats)
   ===================================================================== */

/* Matched 1:1 to the brand page's .bd-stats: sharp hairline box (no radius / outer
   shadow), inset divider rules, big TEAL numbers, uppercase muted labels (task-283b). */
.pb-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0;
    background: var(--rr-paper);
    border: 1px solid var(--rr-line);
}
.pb-stat {
    background: var(--rr-paper);
    padding: clamp(28px, 4vw, 44px) 24px;
    text-align: center;
    box-shadow: inset 1px 0 0 var(--rr-line), inset 0 1px 0 var(--rr-line);
}
.pb-stat__value {
    font-family: var(--rr-display);
    font-weight: 700;
    font-size: clamp(2.2rem, 6vw, 3.6rem);
    line-height: 1;
    color: var(--rr-accent);
    letter-spacing: -.02em;
}
/* Emphasised proof number → brand gradient text. */
.pb-stat__value em {
    font-style: normal;
    background: var(--rr-grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--rr-accent);
}
.pb-stat__label {
    display: block;
    margin-top: 10px;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--rr-muted);
}

/* =====================================================================
   4. FEATURE / BENEFIT GRID  (.pb-feats) — monochrome icons only
   ===================================================================== */

.pb-feats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(1rem, 2.5vw, 1.75rem);
}
.pb-feat {
    padding: 1.9rem 1.6rem;
    border: 1px solid var(--rr-line);
    border-radius: var(--rr-radius);
    background: var(--rr-paper);
    box-shadow: var(--rr-shadow-sm);
    transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out);
}
.pb-feat:hover { transform: translateY(-4px); box-shadow: var(--rr-shadow-lg); }
.pb-feat__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--rr-accent-soft) 0%, #ffffff 100%);
    color: var(--rr-accent);
    box-shadow: inset 0 0 0 1px rgba(19,133,119,.14), 0 6px 14px rgba(19,133,119,.12);
    font-size: 1.4rem;
    margin-bottom: 1.1rem;
}
@media (prefers-reduced-motion: reduce) { .pb-feat { transition: none; } .pb-feat:hover { transform: none; } }
.pb-feat__num {
    font-family: var(--rr-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--rr-accent);
    letter-spacing: .04em;
}
.pb-feat h3 {
    font-family: var(--rr-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--rr-ink);
    margin: .35rem 0 .5rem;
}
.pb-feat p { font-size: .92rem; line-height: 1.6; color: var(--rr-ink-soft); margin: 0; }

/* =====================================================================
   5. CTA BAND  (.pb-band)
   ===================================================================== */

.pb-band {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
    padding: clamp(1.9rem, 3.6vw, 2.75rem);
    padding-left: clamp(2.1rem, 4vw, 3rem);
    border-radius: var(--rr-radius);
    background: var(--rr-grad-ink);
    color: #fff;
    overflow: hidden;
    box-shadow: var(--rr-shadow-lg);
}
.pb-band::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 5px;
    background: var(--rr-grad-gold);
}
.pb-band::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(90% 140% at 100% 0%, rgba(43,179,163,.22) 0%, transparent 55%);
    pointer-events: none;
}
.pb-band > * { position: relative; z-index: 1; }
.pb-band__title {
    font-family: var(--rr-display);
    font-weight: 700;
    font-size: clamp(1.3rem, 2.6vw, 1.85rem);
    line-height: 1.2;
    margin: 0 0 .4rem;
    color: #fff;   /* explicit — a global h3 color must not turn this dark-on-dark */
}
.pb-band__text { margin: 0; color: rgba(255,255,255,.85); font-size: .98rem; max-width: 52ch; }
.pb-band__cta { flex-shrink: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.pb-band--mt { margin-top: clamp(2rem, 4vw, 3rem); }
.pb-band .pb-btn--primary { background: var(--rr-grad-gold); color: var(--color-primary-dark); box-shadow: 0 10px 24px rgba(212,162,76,.32); }
.pb-band .pb-btn--primary:hover { background: #e6bd64; color: var(--color-primary-dark); }

/* Mobile — stack the CTA buttons full-width so they never overflow the viewport
   (the two buttons + fixed .pb-btn padding pushed off-screen on phones). */
@media (max-width: 560px) {
    .pb-band__cta { flex-direction: column; width: 100%; }
    .pb-band__cta .pb-btn { width: 100%; justify-content: center; }
    .pb-btn { padding: .8rem 1.1rem; font-size: .9rem; }
}

/* Empty state (no partners yet) */
.pb-empty { text-align: center; color: var(--rr-muted); padding: clamp(1.75rem, 4vw, 3rem) 0; }
.pb-empty i { display: block; font-size: 1.75rem; color: var(--rr-accent); margin-bottom: .6rem; }
.pb-empty p { margin: 0; font-size: 1rem; }

/* =====================================================================
   6. ADAPTIVE BRAND-LOGO WALL  (.brandwall) — the shared logo component
   ---------------------------------------------------------------------
   Bare logos on a hairline grid; grayscale → full colour on hover/focus.
   Count band set server-side: --spotlight (1–3), --balanced (4–8),
   --dense (9+). Symmetric & centred at every size.
   ===================================================================== */

.brandwall {
    display: grid;
    gap: clamp(.85rem, 1.8vw, 1.4rem);
    --bw-logo-h: clamp(58px, 9vw, 76px);
}
.brandwall--spotlight { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); --bw-logo-h: clamp(84px, 13vw, 116px); }
.brandwall--balanced  { grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); --bw-logo-h: clamp(60px, 9vw, 80px); }
.brandwall--dense     { grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); --bw-logo-h: clamp(48px, 7vw, 62px); }

/* Floating logo tile */
.brandwall__cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: clamp(1rem, 2.2vw, 1.7rem);
    background: var(--rr-paper);
    border: 1px solid var(--rr-line);
    border-radius: 16px;
    box-shadow: var(--rr-shadow-sm);
    transition: transform var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) var(--ease-out),
                border-color var(--duration-normal) var(--ease-out);
}
.brandwall__cell:hover {
    transform: translateY(-5px);
    box-shadow: var(--rr-shadow-lg);
    border-color: rgba(19,133,119,.22);
}
.brandwall__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .55rem;
    text-decoration: none;
    width: 100%;
}
.brandwall__media { display: flex; align-items: center; justify-content: center; height: var(--bw-logo-h); }
.brandwall__logo {
    max-height: var(--bw-logo-h);
    max-width: 100%;
    width: auto;
    object-fit: contain;
    filter: grayscale(.3);
    opacity: .92;
    transition: filter var(--duration-normal) var(--ease-out),
                opacity var(--duration-normal) var(--ease-out),
                transform var(--duration-normal) var(--ease-out);
}
.brandwall__cell:hover .brandwall__logo,
.brandwall__link:focus-visible .brandwall__logo { filter: grayscale(0); opacity: 1; transform: scale(1.05); }
/* Main partners (spotlight) — full colour, larger presence */
.brandwall--spotlight .brandwall__logo { filter: none; opacity: 1; }

.brandwall__mono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--bw-logo-h);
    min-width: var(--bw-logo-h);
    padding: 0 .5rem;
    font-family: var(--rr-display);
    font-weight: 700;
    font-size: calc(var(--bw-logo-h) * .42);
    letter-spacing: .02em;
    color: var(--rr-accent);
    background: linear-gradient(135deg, var(--rr-accent-soft) 0%, #ffffff 100%);
    border-radius: 14px;
}
.brandwall__name { font-size: .85rem; font-weight: 600; color: var(--rr-ink); text-align: center; line-height: 1.3; }
.brandwall__name small { display: block; font-weight: 400; color: var(--rr-muted); font-size: .76rem; }
.brandwall__cta { margin-top: .15rem; font-size: .78rem; font-weight: 700; color: var(--rr-accent); }
.brandwall__link:hover .brandwall__cta { color: var(--rr-accent-deep); }

/* Club variant — richer cards (full-bleed branded logos + name + pill CTA). */
.brandwall--club { gap: clamp(1rem, 2.2vw, 1.5rem); }
.brandwall--club .brandwall__cell { gap: .85rem; padding: clamp(1.3rem, 2.6vw, 1.9rem); box-shadow: var(--rr-shadow); }
.brandwall--club .brandwall__logo { filter: none; opacity: 1; border-radius: 12px; }
.brandwall--club .brandwall__cta {
    margin-top: .3rem; padding: .5rem 1.1rem; border-radius: 999px;
    background: var(--rr-accent-soft); color: var(--rr-accent-deep); font-size: .8rem;
    transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}
.brandwall--club .brandwall__link:hover .brandwall__cta { background: var(--rr-accent); color: #fff; }

/* Mobile — secondary walls drop to 2 per row; spotlight to one big per row. */
@media (max-width: 600px) {
    .brandwall--balanced, .brandwall--dense { grid-template-columns: repeat(2, 1fr); }
    .brandwall--spotlight { grid-template-columns: 1fr; }
    .brandwall--dense { --bw-logo-h: 46px; }
    .brandwall__cell { padding: clamp(.85rem, 4vw, 1.2rem); }
}
@media (prefers-reduced-motion: reduce) {
    .brandwall__cell, .brandwall__logo { transition: none; }
    .brandwall__cell:hover { transform: none; }
    .brandwall__cell:hover .brandwall__logo { transform: none; }
}

/* =====================================================================
   7. REUSABLE PUBLIC MODAL  (.rr-modal)
   ---------------------------------------------------------------------
   Polished, brand-styled modal shell for public-facing forms. Drop the
   .rr-modal class on any Bootstrap-4 modal (.modal.fade + data-toggle /
   data-dismiss) and use the .rr-modal__* parts below; the sponsor-package
   request modal is the first consumer, but this is intentionally generic so
   future public modals (newsletter, contact, …) can reuse the same look.
   Two zones: a navy branded header + a comfortable white body & footer.
   ===================================================================== */

.rr-modal .modal-dialog { max-width: 520px; }
.rr-modal .modal-content {
    border: none;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(11, 29, 51, .28);
}

/* Smooth, slightly-raised entrance (Bootstrap toggles .show on open). */
.rr-modal.fade .modal-dialog {
    transition: transform var(--duration-normal, .25s) var(--ease-out, ease),
                opacity var(--duration-normal, .25s) var(--ease-out, ease);
    transform: translateY(16px) scale(.98);
    opacity: 0;
}
.rr-modal.show .modal-dialog { transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    .rr-modal.fade .modal-dialog { transition: none; transform: none; }
}

/* ── Branded header (navy) ── */
.rr-modal__header {
    position: relative;
    background: var(--rr-ink, #1e3a5f);
    color: #fff;
    padding: 1.5rem 1.6rem 1.35rem;
}
.rr-modal__eyebrow {
    margin: 0 0 .5rem;
    font-family: var(--rr-text);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--rr-gold, #d4a24c);
}
.rr-modal__title {
    margin: 0;
    padding-right: 2rem;   /* clear the close button */
    font-family: var(--rr-display);
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
}
.rr-modal__highlight { color: var(--rr-gold, #d4a24c); }
.rr-modal__subtitle {
    margin: .55rem 0 0;
    font-size: .9rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, .72);
}
.rr-modal__close {
    position: absolute;
    top: .85rem; right: .9rem;
    width: 2rem; height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: background var(--duration-fast, .15s) var(--ease-out, ease);
}
.rr-modal__close:hover { background: rgba(255, 255, 255, .24); }
.rr-modal__close:focus-visible { outline: 2px solid var(--rr-gold, #d4a24c); outline-offset: 2px; }

/* ── Body ── */
.rr-modal__body { padding: 1.5rem 1.6rem; }

/* Selected-package teaser (price + benefits), filled from data-tier-*. */
.rr-modal__summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .35rem .75rem;
    margin: 0 0 1.25rem;
    padding: .8rem 1rem;
    background: var(--rr-accent-soft, #e8f5f3);
    border: 1px solid var(--rr-line, #e2e8f0);
    border-left: 4px solid var(--rr-accent, #138577);
    border-radius: 4px;
}
.pp-request-summary__price {
    font-family: var(--rr-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--rr-accent-deep, #0f6f64);
}
.pp-request-summary__benefits {
    font-size: .85rem;
    line-height: 1.4;
    color: var(--rr-ink-soft, #475569);
}

/* ── Fields ── */
.rr-field { margin-bottom: 1rem; }
.rr-field label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: var(--rr-ink, #1e3a5f);
    margin-bottom: .35rem;
}
.rr-field input,
.rr-field textarea {
    width: 100%;
    min-height: 44px;             /* comfortable touch target */
    padding: .65rem .8rem;
    border: 1px solid var(--rr-line, #d7dde5);
    border-radius: 5px;
    font-family: var(--rr-text);
    font-size: .95rem;
    color: var(--rr-ink, #1e3a5f);
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.rr-field input:focus,
.rr-field textarea:focus {
    outline: none;
    border-color: var(--rr-accent, #138577);
    box-shadow: 0 0 0 3px rgba(var(--rr-accent-rgb, 19, 133, 119), .18);
}
.rr-field textarea { min-height: 84px; resize: vertical; }
.rr-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── States ── */
.rr-modal__error {
    margin: .4rem 0 0;
    color: #b42318;
    font-size: .85rem;
    font-weight: 600;
}
/* The success/summary/error states toggle via the `hidden` attribute — keep the
   author display rules from overriding it (else the success state shows on open). */
.rr-modal__success[hidden],
.rr-modal__summary[hidden],
.rr-modal__error[hidden] { display: none; }
.rr-modal__success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .5rem;
    padding: 1.75rem 1rem;
}
.rr-modal__success i { font-size: 2.6rem; color: var(--rr-accent, #138577); }
.rr-modal__success h3 {
    margin: 0;
    font-family: var(--rr-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--rr-ink, #1e3a5f);
}
.rr-modal__success p { margin: 0; color: var(--rr-ink-soft, #475569); }

/* ── Footer ── */
.rr-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: .6rem;
    padding: 1.1rem 1.6rem;
    border-top: 1px solid var(--rr-line, #e2e8f0);
    background: #fff;
}

/* ── Mobile — near-full-width dialog, stacked fields, full-width buttons ── */
@media (max-width: 560px) {
    .rr-modal .modal-dialog { max-width: none; margin: .5rem; }
    .rr-modal__header { padding: 1.25rem 1.15rem 1.1rem; }
    .rr-modal__title { font-size: 1.2rem; }
    .rr-modal__body { padding: 1.2rem 1.15rem; }
    .rr-field-row { grid-template-columns: 1fr; }
    .rr-modal__footer { flex-direction: column; padding: 1rem 1.15rem; }
    .rr-modal__footer .pb-btn { width: 100%; justify-content: center; }
}
