/* give.jewpaltz.com — JewPaltz / Chabad New Paltz brand.
   Tokens and rules sourced from Brand/colors.css + Brand/typography.css
   (SUNY New Paltz primary, Chabad on Campus type/ink) — see that repo folder
   for the full system. Continuous blue ground, white contrast card for the
   form, gold for CTAs and the one accent word. No cream/beige on this page —
   per Moshe: institutional/payment surface, so white is the ground, not the
   warm cream reserved for invitational pieces (Shabbat, holiday cards). */

@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,300;0,400;0,600;0,700;0,900&family=EB+Garamond:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    /* ---- Brand primary ---- */
    --jp-blue: #003e7e;
    --jp-blue-deep: #002b58;
    --jp-blue-deepest: #012243;
    --jp-gold: #fdb924;
    --jp-gold-dk: #e0a10a;      /* derived hover shade, not in the brand file */
    --jp-sienna: #a84d10;       /* accessible warm — used where orange text is needed */
    --jp-ink: #1e1c1c;
    --jp-white: #ffffff;
    --jp-cool-grey: #d8d9da;

    /* ---- Semantic aliases for this page ---- */
    --ink: var(--jp-ink);
    --mut: #55606b;                          /* jp text-muted, on white */
    --mut-on-blue: rgba(255, 255, 255, 0.74);
    --line: var(--jp-cool-grey);
    --line-on-blue: rgba(255, 255, 255, 0.2);
    --paper: var(--jp-white);
    --gold: var(--jp-gold);
    --gold-dk: var(--jp-gold-dk);
    --blue: var(--jp-blue);
    --blue-deep: var(--jp-blue-deep);
    --blue-deepest: var(--jp-blue-deepest);
    --shadow: 0 14px 34px rgba(1, 34, 67, 0.28);
    --radius: 14px;
    --sans: 'Archivo', 'Helvetica Neue', Arial, 'Liberation Sans', 'Arimo', sans-serif;
    --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 55%, var(--blue-deepest) 100%);
    background-attachment: fixed;
    color: var(--ink);
    font: 17px/1.6 var(--sans);
    letter-spacing: 0.2px;
    overflow-x: hidden;
}

.wrap { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 18px; }

h1, h2, h3 { font-family: var(--sans); font-weight: 900; letter-spacing: -0.01em; text-wrap: balance; }

a { color: var(--jp-gold-dk); }

img { max-width: 100%; display: block; }

/* --------------------------------------------------------------- test bar */

.testbar {
    background: var(--blue-deepest);
    color: var(--gold);
    font: 700 13px/1.4 var(--sans);
    text-align: center;
    padding: 9px 14px;
    letter-spacing: 0.02em;
    border-bottom: 1px solid var(--line-on-blue);
}

/* ------------------------------------------------------------------- hero */

.hero { padding: 30px 0 34px; text-align: center; color: var(--jp-white); }

.kick {
    display: inline-block;
    font: 700 12px/1.4 var(--sans);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--gold);
    padding: 7px 14px;
    border-radius: 99px;
    margin: 0 0 16px;
}

.hero h1 {
    font-size: clamp(32px, 8vw, 50px);
    line-height: 1.06;
    color: var(--jp-white);
    margin: 0 0 14px;
}

.hero h1 em { font-style: normal; color: var(--gold); }

.lede { font-size: clamp(16px, 4.2vw, 20px); color: var(--mut-on-blue); margin: 0 auto; max-width: 34em; }

.heroimg { margin-top: 26px; padding: 0; }
.heroimg img {
    width: 100%;
    height: clamp(190px, 46vw, 340px);
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--line-on-blue);
    box-shadow: var(--shadow);
}

@media (min-width: 900px) {
    .hero .wrap { max-width: 1080px; }
    .hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; text-align: left; padding: 56px 0; }
    .hero .wrap:first-of-type { grid-column: 1; }
    .hero .wrap.heroimg { grid-column: 2; margin-top: 0; }
    .hero .lede { margin: 0; }
    .heroimg img { height: 100%; min-height: 320px; }
}

/* ----------------------------------------------------------- thermometer */

.thermo {
    background: var(--paper);
    border-radius: var(--radius);
    padding: 16px 18px 18px;
    margin: 0 0 18px;
    box-shadow: var(--shadow);
}

.thermo-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }

.raised { font-family: var(--sans); font-size: clamp(28px, 7vw, 38px); font-weight: 900; color: var(--blue); display: block; }
.goal { font-size: 14px; color: var(--mut); }
.goal strong { color: var(--ink); }
.donors { font-size: 14px; color: var(--mut); white-space: nowrap; }
.donors span:first-child { font-weight: 700; color: var(--ink); }

.bar { height: 14px; border-radius: 99px; background: #eef1f3; overflow: hidden; border: 1px solid var(--line); }
.fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--blue));
    border-radius: 99px;
    transition: width 0.9s cubic-bezier(0.2, 0.7, 0.3, 1);
    min-width: 3px;
}

/* ------------------------------------------------------------------ card */

.card {
    background: var(--paper);
    border-radius: var(--radius);
    padding: 20px 18px 24px;
    margin: 0 0 22px;
    box-shadow: var(--shadow);
}

@media (min-width: 560px) { .card { padding: 26px 28px 30px; } }

h2.sec {
    font-size: 19px;
    color: var(--blue);
    margin: 30px 0 12px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}
#step1 > h2.sec:first-of-type { margin-top: 26px; }

/* -------------------------------------------------------- step indicator */

.steps { display: flex; gap: 8px; margin: 0 0 18px; }
.steps span {
    flex: 1;
    text-align: center;
    font: 700 12px/1 var(--sans);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mut);
    background: #f2f4f6;
    border-radius: 99px;
    padding: 9px 6px;
}
.steps span b {
    display: inline-block;
    width: 17px;
    height: 17px;
    line-height: 17px;
    border-radius: 50%;
    background: var(--line);
    color: var(--paper);
    font-size: 11px;
    margin-right: 5px;
}
#giveForm:not(:has(#step2:not([hidden]))) .steps span[data-step="1"],
#giveForm:has(#step2:not([hidden])) .steps span[data-step="2"] {
    color: var(--ink);
    background: var(--gold);
}
#giveForm:not(:has(#step2:not([hidden]))) .steps span[data-step="1"] b,
#giveForm:has(#step2:not([hidden])) .steps span[data-step="2"] b {
    background: var(--blue);
    color: var(--jp-white);
}

/* ------------------------------------------------------------------ tabs */

.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #f2f4f6; border-radius: 11px; padding: 5px; }

.tab {
    appearance: none;
    border: 0;
    background: transparent;
    font: 700 15px/1 var(--sans);
    color: var(--mut);
    padding: 12px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.tab.is-on { background: var(--paper); color: var(--blue); box-shadow: 0 1px 4px rgba(1, 34, 67, 0.18); }

.tabnote { font-size: 14px; color: var(--mut); margin: 14px 0 12px; }

/* ----------------------------------------------------------------- tiers */

.tiers { display: grid; gap: 9px; }

.tier {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    text-align: left;
    width: 100%;
    appearance: none;
    background: var(--paper);
    border: 1.5px solid var(--line);
    border-radius: 11px;
    padding: 13px 14px;
    cursor: pointer;
    font: inherit;
    color: inherit;
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.tier:hover { border-color: var(--gold); }
.tier:active { transform: scale(0.995); }
.tier.is-on { border-color: var(--blue); background: #f4f8fc; box-shadow: inset 0 0 0 1px var(--blue); }

.tier .amt { font-family: var(--sans); font-size: 21px; font-weight: 900; color: var(--blue); line-height: 1.25; white-space: nowrap; }
.tier .nm { font-weight: 700; font-size: 15px; display: block; }
.tier .bl { font-size: 14px; color: var(--mut); display: block; line-height: 1.45; }
.tier.is-on .amt { color: var(--blue-deep); }

/* ---------------------------------------------------------------- custom */

.custom { margin-top: 14px; }
.customLabel { display: block; font-size: 14px; color: var(--mut); margin-bottom: 6px; }

.amtbox { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 11px; background: var(--paper); padding: 0 14px; transition: border-color 0.15s; }
.amtbox:focus-within { border-color: var(--blue); }
.amtbox.is-on { border-color: var(--blue); background: #f4f8fc; }
.dollar { font-family: var(--sans); font-weight: 700; font-size: 22px; color: var(--mut); }
.per { font-size: 14px; color: var(--mut); white-space: nowrap; }

.amtbox input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font: 700 22px/1 var(--sans);
    color: var(--ink);
    padding: 15px 8px;
}

/* ---------------------------------------------------------- checkbox row */

.check {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 11px;
    align-items: start;
    margin: 16px 0 0;
    padding: 13px 14px;
    border: 1px dashed var(--line);
    border-radius: 11px;
    background: #fafbfc;
    font-size: 15px;
    cursor: pointer;
}
.check.plain { border-style: solid; background: var(--paper); }
.check input { width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--blue); flex: none; }
.check strong { display: block; }
.check em { font-style: normal; color: var(--mut); font-size: 14px; }

/* ----------------------------------------------------------------- total */

.total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding: 15px 16px;
    background: var(--blue);
    color: rgba(255, 255, 255, 0.82);
    border-radius: 11px;
    font-size: 15px;
}
.total strong { font-family: var(--sans); font-weight: 900; font-size: 28px; color: #fff; }

/* ---------------------------------------------------------------- fields */

.fields { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.f { grid-column: span 4; }
@media (min-width: 520px) {
    .f.half { grid-column: span 2; }
    .f.quarter { grid-column: span 1; }
}

.f label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 5px; }
.req { color: var(--jp-sienna); }
.opt { font-weight: 400; color: var(--mut); font-size: 13px; }
.hint { font-size: 13px; color: var(--mut); margin: 5px 0 0; }

input[type="text"], input[type="email"], input[type="tel"], .f input {
    width: 100%;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
    padding: 12px 13px;
    font: 16px/1.3 var(--sans);
    color: var(--ink);
    transition: border-color 0.15s;
}
.f input:focus { outline: 0; border-color: var(--blue); }
.f input[aria-invalid="true"] { border-color: #b3341f; background: #fff6f4; }

.more { margin: 16px 0 4px; border: 1px solid var(--line); border-radius: 11px; padding: 0; background: var(--paper); }
.more summary { cursor: pointer; padding: 13px 14px; font-size: 15px; font-weight: 700; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+ "; color: var(--jp-sienna); font-weight: 700; }
.more[open] summary::before { content: "\2212 "; }
.more .fields { padding: 0 14px 16px; }

/* --------------------------------------------------------------- buttons */

.go {
    display: block;
    width: 100%;
    margin-top: 22px;
    appearance: none;
    border: 0;
    border-radius: 11px;
    background: var(--gold);
    color: var(--ink);
    font: 700 18px/1 var(--sans);
    padding: 17px 18px;
    cursor: pointer;
    transition: transform 0.12s, background 0.15s;
}
.go:hover { background: var(--gold-dk); }
.go:active { transform: translateY(1px); }
.go[disabled] { opacity: 0.55; cursor: progress; }

.back {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--mut);
    font: 700 14px/1 var(--sans);
    padding: 0 0 14px;
    cursor: pointer;
}
.back:hover { color: var(--blue); }

/* --------------------------------------------------------------- payment */

.summary {
    background: #f2f4f6;
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 15px 16px;
    font-size: 15px;
    margin-bottom: 4px;
}
.summary .big { font-family: var(--sans); font-size: 27px; font-weight: 900; color: var(--blue); display: block; }
.summary .det { color: var(--mut); font-size: 14px; margin-top: 4px; }

#paymentElement { margin-top: 6px; min-height: 40px; }

.or { display: flex; align-items: center; gap: 14px; margin: 26px 0 18px; color: var(--mut); font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.secure { font-size: 13px; color: var(--mut); text-align: center; margin: 20px 0 0; }

.err { color: #a3291a; background: #fdeeeb; border: 1px solid #f0c9c1; border-radius: 9px; padding: 11px 13px; font-size: 14px; margin: 14px 0 0; }

/* ------------------------------------------------------------ thank you */

.thanks { text-align: center; }
.thanks h2 { font-size: clamp(26px, 6vw, 36px); color: var(--blue); margin: 0 0 12px; }
.thanks > p { color: var(--mut); max-width: 34em; margin: 0 auto; }
.thanks .kick { background: var(--gold); color: var(--ink); }

.receipt {
    margin: 22px auto;
    max-width: 26em;
    background: #f2f4f6;
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 18px;
    text-align: left;
    font-size: 15px;
}
.receipt dl { display: grid; grid-template-columns: auto 1fr; gap: 7px 16px; margin: 0; }
.receipt dt { color: var(--mut); }
.receipt dd { margin: 0; text-align: right; font-weight: 700; }

.thanksNote { font-size: 14px; color: var(--mut); max-width: 36em; margin: 0 auto; }
.sig { margin-top: 26px; color: var(--mut); font-family: var(--serif); font-size: 17px; }
.sig strong { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------- alternatives */

.alt { background: var(--paper); border-radius: var(--radius); padding: 20px 18px; margin-bottom: 22px; box-shadow: var(--shadow); }
.alt h2 { font-size: 19px; color: var(--blue); margin: 0 0 12px; }
.alt ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: 15px; }
.alt li { padding-left: 0; color: var(--mut); }
.alt li strong { color: var(--ink); display: inline-block; min-width: 4.5em; }

.band { background: var(--blue-deepest); color: rgba(255, 255, 255, 0.86); border-radius: var(--radius); padding: 20px 18px; margin-bottom: 30px; font-size: 15px; }
.band p { margin: 0; }
.band strong { color: var(--gold); }

footer { text-align: center; padding: 26px 18px 40px; color: var(--mut-on-blue); font-size: 13px; }
footer a { color: var(--jp-white); }
footer p { margin: 0 0 6px; }
.fine { font-size: 12px; }

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
