/* WoW Wellbeing Check-In — calm, human styling.
   Scoped under .wow-wb so it can't bleed into the surrounding theme. */

.wow-wb {
    --wb-cream: #faf6ee;
    --wb-surface: #ffffff;
    --wb-ink: #0f2a2e;
    --wb-ink-soft: #3a555a;
    --wb-muted: #6b7f82;
    --wb-teal: #a8d5d0;
    --wb-teal-deep: #1f5f66;
    --wb-accent: #d87e63;
    --wb-line: rgba(15, 42, 46, 0.10);
    --wb-radius: 18px;

    max-width: 640px;
    margin: 2.5rem auto;
    padding: clamp(1.5rem, 4vw, 2.75rem);
    background: var(--wb-surface);
    border: 1px solid var(--wb-line);
    border-radius: var(--wb-radius);
    box-shadow: 0 18px 48px -28px rgba(15, 42, 46, 0.45);
    color: var(--wb-ink-soft);
    font-size: 1rem;
    line-height: 1.6;
}

.wow-wb *,
.wow-wb *::before,
.wow-wb *::after { box-sizing: border-box; }

.wow-wb p { margin: 0 0 1rem; }
.wow-wb__muted { color: var(--wb-muted); font-size: 0.92rem; }

.wow-wb__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--wb-teal-deep);
    margin: 0 0 0.5rem;
}

.wow-wb__title,
.wow-wb__lead {
    font-family: Fraunces, Georgia, "Times New Roman", serif;
    color: var(--wb-ink);
    line-height: 1.2;
    margin: 0 0 1rem;
}
.wow-wb__title { font-size: clamp(1.5rem, 3.5vw, 2rem); }
.wow-wb__lead { font-size: clamp(1.15rem, 2.6vw, 1.4rem); }

/* Intro heading ("A quick, gentle check-in") — 2px smaller than the theme's h2.
   The Elementor kit (.elementor-kit-15 h2) controls the size via this variable;
   we subtract 2px from it so the reduction tracks the kit's responsive sizing. */
.wow-wb__screen[data-screen="intro"] .wow-wb__title {
    font-size: calc(var(--e-global-typography-secondary-font-size) - 2px);
}

/* Progress dots */
.wow-wb__progress {
    display: flex;
    gap: 8px;
    margin-bottom: 1.75rem;
}
.wow-wb__progress span {
    height: 6px;
    flex: 1;
    border-radius: 999px;
    background: var(--wb-line);
    transition: background 0.3s ease;
}
.wow-wb__progress span.is-on { background: var(--wb-teal); }

.wow-wb__live { min-height: 0; margin: 0; }
.wow-wb__live:not(:empty) {
    margin: 0 0 1rem;
    padding: 0.6rem 0.9rem;
    border-radius: 12px;
    background: rgba(216, 126, 99, 0.12);
    color: #9a4a32;
    font-size: 0.9rem;
}

/* Screens */
.wow-wb__screen { display: none; }
.wow-wb__screen.is-active { display: block; animation: wow-wb-fade 0.35s ease; }
@keyframes wow-wb-fade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .wow-wb__screen.is-active { animation: none; }
}

/* Question items */
.wow-wb__items { display: flex; flex-direction: column; gap: 1.1rem; }
.wow-wb__item {
    border: 1px solid var(--wb-line);
    border-radius: 14px;
    padding: 1.1rem 1.15rem 1.15rem;
    margin: 1.1rem 0 0;
}
.wow-wb__items .wow-wb__item { margin: 0; }
.wow-wb__item legend {
    font-weight: 600;
    color: var(--wb-ink);
    padding: 0;
    margin-bottom: 0.8rem;
    line-height: 1.45;
}
.wow-wb__item--optional { background: var(--wb-cream); }

.wow-wb__opts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
@media (max-width: 560px) {
    .wow-wb__opts { grid-template-columns: 1fr 1fr; }
}

.wow-wb__opt { display: block; cursor: pointer; margin: 0; }
/* Visually hide the radio but keep it focusable for keyboard + screen readers */
.wow-wb__opt input {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}
.wow-wb__opt span {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 48px;
    padding: 0.5rem 0.6rem;
    border: 1.5px solid var(--wb-line);
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--wb-ink-soft);
    background: #fff;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.wow-wb__opt:hover span { border-color: var(--wb-teal); }
.wow-wb__opt input:focus-visible + span {
    outline: 3px solid rgba(31, 95, 102, 0.4);
    outline-offset: 2px;
}
.wow-wb__opt input:checked + span {
    background: var(--wb-teal-deep);
    border-color: var(--wb-teal-deep);
    color: #fff;
    font-weight: 600;
}

/* Consent */
.wow-wb__consent {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    margin: 1.5rem 0 0;
    padding: 1rem 1.1rem;
    background: var(--wb-cream);
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95rem;
}
.wow-wb__consent input { margin-top: 0.25rem; width: 18px; height: 18px; accent-color: var(--wb-teal-deep); }

/* Buttons */
.wow-wb__actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-end;
    margin-top: 1.75rem;
}
.wow-wb__actions--stack { flex-direction: column; align-items: stretch; }

.wow-wb__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: 0;
    border-radius: 999px;
    background: var(--wb-teal-deep);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.wow-wb__btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgba(31, 95, 102, 0.8); }
.wow-wb__btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.wow-wb__btn--ghost {
    background: transparent;
    color: var(--wb-teal-deep);
    border: 1.5px solid var(--wb-line);
}
.wow-wb__btn--ghost:hover { border-color: var(--wb-teal); box-shadow: none; }
.wow-wb__actions--stack .wow-wb__btn { width: 100%; }

/* Our anchor buttons sit inside a theme content area whose link styles re-add an
   underline and recolour the text; force our button look on every state. Ghost
   buttons keep their teal text; crisis-support links keep their underline. */
.wow-wb a.wow-wb__btn,
.wow-wb a.wow-wb__btn:hover,
.wow-wb a.wow-wb__btn:focus,
.wow-wb a.wow-wb__btn:active { text-decoration: none !important; color: #fff !important; }
.wow-wb a.wow-wb__btn--ghost,
.wow-wb a.wow-wb__btn--ghost:hover,
.wow-wb a.wow-wb__btn--ghost:focus,
.wow-wb a.wow-wb__btn--ghost:active { color: var(--wb-teal-deep) !important; }

/* Result marks */
.wow-wb__mark {
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-size: 1.6rem; font-weight: 700;
    margin-bottom: 1.1rem;
}
.wow-wb__mark--calm { background: rgba(168, 213, 208, 0.35); color: var(--wb-teal-deep); }

/* Safeguarding screen */
.wow-wb__screen--safe .wow-wb__safe-lead { font-weight: 600; color: var(--wb-ink); }
.wow-wb__crisis {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 1.1rem 1.2rem;
    background: var(--wb-cream);
    border-radius: 14px;
    border: 1px solid var(--wb-line);
}
.wow-wb__crisis li { margin: 0 0 0.6rem; line-height: 1.5; }
.wow-wb__crisis li:last-child { margin-bottom: 0; }
.wow-wb__crisis a { color: var(--wb-teal-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.wow-wb__callback-done { margin-top: 1rem; }

/* Notice variant (already-completed / logged-out) */
.wow-wb--notice { text-align: center; }
.wow-wb--notice .wow-wb__btn { margin-top: 0.5rem; }
/* The logged-out "First, let's get you set up" gate box runs wider than the
   reading-width question screens (640px). */
.wow-wb--gate { max-width: 800px; }
.wow-wb--gate .wow-wb__actions,
.wow-wb--result .wow-wb__actions { justify-content: center; flex-wrap: wrap; gap: 0.75rem; }

/* Outcome feedback message + recommendation CTA */
.wow-wb__fb-message { margin: 0.6rem 0 1.3rem; line-height: 1.6; }
.wow-wb__fb-message p { margin: 0 0 0.8rem; }
.wow-wb__fb-message p:last-child { margin-bottom: 0; }

/* Recommendation block appended below the safeguarding crisis resources */
.wow-wb__fb--safe {
    margin-top: 1.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--wb-line);
}




