/* ============================================================
   Card-flow base — design tokens + the page/card shell every card-based flow sits on.
============================================================ */
:root {
    --navy: #13314a;
    --navy-dark: #0d2438;
    --blue: #1d7fb8;
    --blue-dark: #17669c;
    --ink: #1a2632;
    --ink-2: #2b3c48;
    --muted: #5a6770;
    --muted-2: #6b7a84;
    --label: #8a98a3;
    --border: #cdd9e0;
    --hairline: #eceef1;
    --page-bg: #f4f6f9;
    --card-bg: #ffffff;
    --font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    --shadow-card: rgba(13, 36, 56, .12);
    --field-height: 46px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-family);
    color: var(--ink);
    background: var(--page-bg);
}

/* ---- Page / card layout ---- */
.card-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 16px;
}

.card-content {
    width: 600px;
    max-width: 100%;
    margin: 0 auto;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 12px 34px var(--shadow-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.body { padding: 18px 26px 28px; }

h1.title {
    font-weight: 700;
    font-size: 22px;
    line-height: 1.2;
    margin: 0 0 5px;
    color: var(--navy);
    overflow-wrap: break-word;
    word-break: break-word;
}

.title.title--lede {
    margin-bottom: 6px;
}

.title.title--form {
    margin-bottom: 24px;
}

/* ---- Shared across every step (Index, SignIn, PickCharity, PickEvent, Blocked) ---- */
.btn-primary {
    height: 46px;
    width: 100%;
    border: none;
    border-radius: 10px;
    background: var(--navy);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s;
}

.btn-primary:not(:disabled):hover {
    background: var(--navy-dark);
}

a.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.link-back {
    font-size: 12.5px;
    color: var(--muted);
    cursor: pointer;
    text-decoration: none;
}

.center-mt {
    margin-top: 14px;
    text-align: center;
}

/* ---- Notice screens. ---- */
.notice {
    text-align: center;
    padding: 6px 0 4px;
}

.notice__icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #fbeeea;
    color: var(--error);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 14px;
}

.notice__text {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--muted);
    margin: 0 auto 18px;
    max-width: 400px;
}

/* ============================================================
   Responsive
============================================================ */
@media (max-width: 600px) {
    .title.title--form {
        margin-bottom: 6px;
    }

    .card-page { padding: 0; justify-content: flex-start; }

    .card-content {
        width: 100%;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .card {
        border: none;
        border-radius: 0;
        box-shadow: none;
    }

    .card-content > *:last-child {
        flex: 1;
    }

    .body { padding: 16px 18px 22px; }
}

.rd-flow .body .stepper,
.rd-flow .body #signupStepper {
    margin: -2px 0 22px;
}

.rd-flow .title.title--form {
    margin-bottom: 16px;
}

@media (max-width: 600px) {
    .rd-flow .stepper {
        display: flex;
    }

    .rd-flow .stepper__line {
        width: 34px;
    }

    .rd-flow .body .stepper,
    .rd-flow .body #signupStepper {
        margin-top: 0;
    }
}
