/* Start-a-fundraiser wizard (start.html). Builds on the tokens and components in styles.css. */
.wz-page { background: var(--bg); }
.wz-page [hidden] { display: none !important; }
.wz-header__actions { display: flex; align-items: center; gap: 1rem; }
.wz-help-line { font-size: .88rem; color: var(--muted); }
.btn--sm { padding: .5rem 1rem; font-size: .88rem; }
@media (max-width: 860px) { .wz-help-line { display: none; } }

.wz { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 2rem; align-items: start; padding-block: 2rem 4rem; }

/* Progress rail */
.wz-rail { position: sticky; top: 90px; display: grid; gap: .5rem; }
.wz-rail__label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: .5rem; }
.wz-steps { list-style: none; padding: 0; margin: 0 0 .5rem; display: grid; gap: .15rem; }
.wz-steps a { display: flex; align-items: center; gap: .7rem; padding: .5rem .6rem; border-radius: var(--radius-sm); color: var(--muted); text-decoration: none; font-weight: 500; font-size: .94rem; }
.wz-steps a:hover { background: var(--surface); color: var(--ink); }
.wz-steps .dot { flex: none; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 2px solid var(--border); background: var(--surface); font-size: .78rem; font-weight: 700; }
.wz-steps .is-done a { color: var(--ink); }
.wz-steps .is-done .dot { border-color: var(--success); background: var(--success); color: #fff; }
.wz-steps .is-current a { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: var(--shadow); }
.wz-steps .is-current .dot { border-color: var(--brand); background: var(--brand); color: #fff; }
.wz-tip { margin-top: .75rem; padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--brand-soft); font-size: .88rem; }
.wz-tip p { margin: .35rem 0 0; color: var(--muted); }

/* Card */
.wz-card { background: var(--surface); border-radius: calc(var(--radius) * 1.25); box-shadow: var(--shadow); padding: clamp(1.25rem, 4vw, 2.75rem); min-width: 0; }
.wz-top { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.75rem; font-size: .85rem; font-weight: 600; color: var(--muted); }
.wz-bar { height: 6px; border-radius: 999px; background: #e8ecf3; overflow: hidden; }
.wz-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), #5a93e0); transition: width .5s ease; }
.wz-step { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; max-width: 720px; }
.wz-step h1 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin: 0; }
.wz-step .eyebrow { margin: 0; }
.wz-lead { margin: -.5rem 0 .25rem; color: var(--muted); font-size: 1.02rem; }
.wz-lead a { font-weight: 600; }
.wz-hint { display: block; margin-top: .4rem; font-size: .85rem; color: var(--muted); }
.wz-optional { font-weight: 400; color: var(--muted); font-size: .85rem; }
.wz-sub { margin: .5rem 0 -.5rem; font-size: 1rem; }
.wz-ok { color: var(--success); }
.field { margin: 0; }

.wz-actions { display: flex; justify-content: space-between; gap: .75rem; padding-top: 1.25rem; margin-top: .5rem; border-top: 1px solid var(--border); }
.wz-actions--center { justify-content: center; flex-wrap: wrap; border: 0; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.wz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.wz-span { grid-column: 1 / -1; }
@media (max-width: 600px) { .wz-grid { grid-template-columns: 1fr; } }

/* Sign up */
.tabs { display: inline-flex; gap: .25rem; padding: .25rem; border-radius: 999px; background: var(--bg); justify-self: start; }
.tabs button { padding: .45rem 1rem; border: 0; border-radius: 999px; background: none; font: inherit; font-size: .9rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.tabs button.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(15,26,51,.1); }
.wz-phone { display: grid; grid-template-columns: 130px 1fr; gap: .5rem; }
.wz-phone .input:last-child { font-size: 1.1rem; font-weight: 600; letter-spacing: .02em; }
.wz-divider { display: flex; align-items: center; gap: 1rem; color: var(--muted); font-size: .85rem; }
.wz-divider::before, .wz-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.wz-social { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.wz-fine { margin: 0; font-size: .85rem; color: var(--muted); text-align: center; }

/* One-time code */
.wz-otp { display: flex; gap: .6rem; }
.wz-otp input { width: 3.25rem; height: 3.75rem; text-align: center; font: inherit; font-size: 1.6rem; font-weight: 700; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: #fff; }
.wz-otp input:focus { outline: 2px solid var(--brand); border-color: transparent; }
@media (max-width: 420px) { .wz-otp { gap: .35rem; } .wz-otp input { width: 2.6rem; height: 3.2rem; font-size: 1.3rem; } }

/* Notes */
.wz-note { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1rem; border-radius: var(--radius-sm); background: var(--brand-soft); font-size: .9rem; }
.wz-note--warn { background: #fff7e6; }

/* Chips */
.wz-chips { margin: 0; }
.wz-prompts { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.wz-prompts .chip { padding: .35rem .8rem; font-size: .82rem; }

/* Category tiles */
.wz-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.wz-tile { display: grid; justify-items: center; gap: .35rem; padding: 1.25rem .5rem; border: 1.5px solid var(--border); border-radius: var(--radius); background: #fff; font: inherit; font-weight: 600; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.wz-tile b { font-size: 1.8rem; line-height: 1; }
.wz-tile:hover { border-color: var(--brand); transform: translateY(-2px); }
.wz-tile.is-selected { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); box-shadow: 0 0 0 3px rgba(56,113,194,.15); }
@media (max-width: 520px) { .wz-tiles { grid-template-columns: repeat(2, 1fr); } }

/* Radio option cards */
.wz-options { display: grid; gap: .6rem; }
/* fieldset.field: drop the browser's default fieldset frame */
fieldset.field { border: 0; padding: 0; min-width: 0; }
fieldset.field > legend { padding: 0; }
/* .field label is display:block in styles.css, so .wz-option needs the extra class to stay a flex row */
.field .wz-option, .wz-option { display: flex; margin: 0; font-weight: 400; gap: .85rem; align-items: flex-start; padding: 1rem 1.1rem; border: 1.5px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: border-color .2s, background .2s; }
.wz-option input { margin: .25rem 0 0; accent-color: var(--brand); width: 1.1rem; height: 1.1rem; flex: none; }
.wz-option small { display: block; color: var(--muted); font-size: .88rem; }
.wz-option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.wz-option .badge { margin-left: .3rem; background: #e6f6ec; color: #17803f; }

/* Goal */
.wz-money { display: flex; align-items: center; gap: .5rem; padding: 0 1rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: #fff; max-width: 360px; }
.wz-money:focus-within { outline: 2px solid var(--brand); border-color: transparent; }
.wz-money span { font-weight: 700; color: var(--muted); }
.wz-money .input { border: 0; padding: .8rem 0; font-size: 1.8rem; font-weight: 700; outline: 0; }
.wz-money .input::-webkit-inner-spin-button { display: none; }

/* Story */
.wz-step[data-step="story"] { max-width: none; }
.wz-story { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; align-items: start; }
.wz-story > div:first-child { display: grid; gap: 1.1rem; }
.wz-cover { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 7; cursor: pointer; background: var(--brand-soft); }
.wz-cover img { width: 100%; height: 100%; object-fit: cover; }
.wz-cover .btn { position: absolute; right: .75rem; bottom: .75rem; }
textarea.input { resize: vertical; line-height: 1.6; }
.wz-count { text-align: right; }
.wz-preview { position: sticky; top: 90px; display: grid; gap: .5rem; }
.wz-preview__label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.wz-preview .card:hover { transform: none; }
@media (max-width: 1000px) { .wz-story { grid-template-columns: 1fr; } .wz-preview { position: static; max-width: 340px; } }

/* Uploads */
.wz-uploads { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; }
.wz-upload { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border: 1.5px dashed #c9d3e3; border-radius: var(--radius); cursor: pointer; transition: border-color .2s, background .2s; }
.wz-upload:hover { border-color: var(--brand); }
.wz-upload > div { flex: 1; min-width: 0; }
.wz-upload small { display: block; color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wz-upload__ic { flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; }
.wz-upload.is-done { border-style: solid; border-color: var(--border); }
.wz-upload.is-done .wz-upload__ic { background: #e6f6ec; color: var(--success); }

/* Review */
.wz-review { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; }
.wz-review__card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.wz-review__card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.wz-review__card > div { padding: 1rem 1.1rem; }
.wz-review__card h3 { margin: .5rem 0 .3rem; font-size: 1.1rem; }
.wz-review__card p { margin: 0; color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wz-summary { margin: 0; border: 1px solid var(--border); border-radius: var(--radius); }
.wz-summary div { display: grid; grid-template-columns: 110px 1fr auto; gap: .75rem; align-items: baseline; padding: .8rem 1rem; border-bottom: 1px solid var(--border); font-size: .92rem; }
.wz-summary div:last-child { border-bottom: 0; }
.wz-summary dt { color: var(--muted); }
.wz-summary dd { margin: 0; font-weight: 600; }
.wz-summary a { font-size: .85rem; font-weight: 600; text-decoration: none; }
.wz-agree { align-items: flex-start; }
.wz-agree input { margin-top: .3rem; accent-color: var(--brand); width: 1.1rem; height: 1.1rem; flex: none; }
@media (max-width: 760px) { .wz-review { grid-template-columns: 1fr; } }

/* Submitted */
.wz-done { justify-items: center; text-align: center; margin-inline: auto; }
.wz-done__icon { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: #e6f6ec; color: var(--success); font-size: 2rem; font-weight: 700; animation: wz-pop .5s ease; }
@keyframes wz-pop { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
.wz-done .wz-lead { max-width: 34rem; margin: 0; }
.wz-timeline { list-style: none; padding: 1.25rem 1.5rem; margin: 0; display: grid; text-align: left; border: 1px solid var(--border); border-radius: var(--radius); width: min(100%, 420px); }
.wz-timeline li { position: relative; display: flex; gap: .9rem; padding-bottom: 1.1rem; }
.wz-timeline li:last-child { padding-bottom: 0; }
.wz-timeline li::before { content: ""; position: absolute; left: .7rem; top: 1.6rem; bottom: 0; width: 2px; background: var(--border); }
.wz-timeline li:last-child::before { display: none; }
.wz-timeline .dot { flex: none; display: grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: var(--border); color: #fff; font-size: .75rem; font-weight: 700; position: relative; z-index: 1; }
.wz-timeline .is-done .dot { background: var(--success); }
.wz-timeline .is-done::before { background: var(--success); }
.wz-timeline .is-current .dot { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.wz-timeline strong { display: block; font-size: .95rem; }
.wz-timeline small { color: var(--muted); }
.wz-next { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; width: 100%; text-align: left; }
.wz-next div { padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--bg); font-size: .9rem; }
.wz-next strong { display: block; }
.wz-next span { color: var(--muted); }
@media (max-width: 600px) { .wz-next { grid-template-columns: 1fr; } }

/* On the last step the rail is no longer needed */
body[data-step="submitted"] .wz { grid-template-columns: minmax(0, 760px); justify-content: center; }
body[data-step="submitted"] .wz-rail, body[data-step="submitted"] .wz-top { display: none; }

/* Mobile: the rail collapses into the progress bar at the top of the card */
@media (max-width: 860px) {
  .wz { grid-template-columns: 1fr; padding-block: 1rem 3rem; }
  .wz-rail { display: none; }
  .wz-card { padding: 1.25rem; }
  .wz-actions { position: sticky; bottom: 0; background: var(--surface); padding-bottom: 1rem; margin-bottom: -1.25rem; }
  .wz-actions--center { position: static; }
}

.wz-toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 80; transform: translate(-50%, 150%); padding: .8rem 1.25rem; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 500; font-size: .92rem; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: transform .3s ease, opacity .3s, visibility .3s; max-width: calc(100% - 2rem); text-align: center; }
.wz-toast.is-visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* Providers (who NOSH pays) */
.wz-providers { display: grid; gap: .75rem; }
.wz-provider { padding: 1rem 1.1rem 1.1rem; border: 1.5px solid var(--border); border-radius: var(--radius); background: #fff; }
.wz-provider__head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; font-size: .95rem; }
.wz-provider__remove { border: 0; background: none; padding: 0; font: inherit; font-size: .85rem; font-weight: 600; color: #c0392b; cursor: pointer; }
.wz-provider .field label { font-size: .88rem; }
.wz-add-prov { justify-self: start; margin-top: .75rem; }
.wz-note--ok { background: #e6f6ec; }
.wz-paid-note { display: block; margin-top: .2rem; font-weight: 400; font-size: .82rem; color: var(--success); }

/* Category tiles and notes use the NOSH line icons (brand blue) */
.wz-tile b.wz-tile__icon { display: grid; place-items: center; width: 3.1rem; height: 3.1rem; margin-bottom: .2rem; border-radius: 14px; background: var(--brand-soft); color: var(--brand); font-size: 1rem; transition: background-color .2s, color .2s; }
.wz-tile b.wz-tile__icon .icon { width: 1.55rem; height: 1.55rem; }
.wz-tile.is-selected b.wz-tile__icon { background: var(--brand); color: #fff; }
.wz-note__icon { color: var(--brand); }
.wz-note__icon .icon { width: 1.2rem; height: 1.2rem; }
