/* ==========================================================================
   Acts of Kindness — Forms (sponsorship + partnership)
   Built on tokens.css + site.css visual language
   ========================================================================== */

/* ---------- Page header band ---------- */
.form-hero {
  position: relative;
  background: var(--aok-paper);
  overflow: hidden;
}
.form-hero::before {
  content: none;
}
.form-hero__inner {
  max-width: 1080px; margin: 0 auto;
  padding: 64px 48px 8px;
  position: relative;
}
.form-hero__eyebrow {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-family: var(--font-sans); font-weight: 500;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--aok-purple); margin-bottom: 22px;
}
.form-hero__eyebrow .line { width: 40px; height: 1px; background: var(--aok-purple); opacity: 0.5; }
.form-hero__title {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(44px, 6vw, 84px); line-height: 0.98;
  color: var(--aok-purple-deep);
  letter-spacing: -0.015em;
  margin: 0 0 24px;
  max-width: 18ch;
  text-wrap: balance;
}
.form-hero__title .hl { position: relative; display: inline-block; white-space: nowrap; }
.form-hero__title .hl::after {
  content: ""; position: absolute; left: -4px; right: -4px; bottom: 6px;
  height: 40%; background: var(--aok-yellow); z-index: -1; transform: skew(-2deg);
}
.form-hero__lede {
  max-width: 56ch;
  font-family: var(--font-sans); font-weight: 500;
  font-size: 17px; line-height: 1.65; color: var(--aok-ink-mute);
  margin: 0;
}

/* ---------- Form shell ---------- */
.form-stage {
  background: var(--aok-paper);
  padding: 48px 0 120px;
}
.form-wrap {
  max-width: 1080px; margin: 0 auto;
  padding: 0 48px;
}
.form-card {
  background: var(--aok-white);
  border: 1px solid var(--aok-rule);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-2);
  padding: 56px 56px 48px;
}
.form {
  display: flex; flex-direction: column; gap: 8px;
}

/* ---------- Sections ---------- */
.form-section { padding: 8px 0 4px; }
.form-section + .form-section {
  margin-top: 28px; padding-top: 36px;
  border-top: 1px solid var(--aok-rule);
}
.form-section__head {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 28px;
}
.form-section__num {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 28px; line-height: 1; color: var(--aok-yellow-deep);
  letter-spacing: 0;
}
.form-section__title {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 30px; line-height: 1.05; color: var(--aok-purple-deep);
  letter-spacing: -0.01em; margin: 0;
}
.form-section__hint {
  font-family: var(--font-sans); font-weight: 500;
  font-size: 13px; line-height: 1.55; color: var(--aok-ink-soft);
  margin: -16px 0 24px;
}

/* ---------- Field grid ---------- */
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px;
}
.form-grid .field--full { grid-column: 1 / -1; }

/* ---------- Field ---------- */
.field { display: flex; flex-direction: column; gap: 9px; }
.field__label {
  font-family: var(--font-sans); font-weight: 500;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--aok-purple-deep);
  display: flex; align-items: center; gap: 8px;
}
.field__label .req { color: var(--aok-yellow-deep); font-size: 13px; line-height: 1; }
.field__label .opt {
  font-size: 10px; letter-spacing: 0.12em; color: var(--aok-ink-soft);
  font-weight: 500; text-transform: uppercase;
}
.field__note {
  font-family: var(--font-sans); font-weight: 500;
  font-size: 12px; line-height: 1.5; color: var(--aok-ink-soft);
}

.input, .textarea, .select {
  font-family: var(--font-sans); font-weight: 500;
  font-size: 16px; color: var(--aok-ink);
  background: var(--aok-paper);
  border: 1px solid var(--aok-rule);
  border-radius: var(--r-md);
  padding: 14px 16px;
  width: 100%;
  transition: border-color var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease), background var(--dur-med) var(--ease);
  -webkit-appearance: none; appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--aok-ink-soft); }
.input:hover, .textarea:hover, .select:hover { border-color: var(--aok-purple-soft); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--aok-purple);
  background: var(--aok-white);
  box-shadow: 0 0 0 4px rgba(252, 191, 18, 0.28);
}
.textarea { resize: vertical; min-height: 132px; line-height: 1.55; }

.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23562565' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

/* ---------- Choice pills (radio / checkbox) ---------- */
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices--grow .choice { flex: 1 1 auto; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.choice__box {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-sans); font-weight: 500;
  font-size: 13px; letter-spacing: 0.06em;
  color: var(--aok-purple-deep);
  background: var(--aok-paper);
  border: 1px solid var(--aok-rule);
  border-radius: var(--r-pill);
  padding: 13px 22px;
  text-align: center;
  transition: all var(--dur-med) var(--ease);
  user-select: none;
}
.choice:hover .choice__box { border-color: var(--aok-purple-soft); }
.choice input:checked + .choice__box {
  background: var(--aok-purple-deep);
  border-color: var(--aok-purple-deep);
  color: var(--aok-yellow);
}
.choice input:focus-visible + .choice__box {
  box-shadow: 0 0 0 4px rgba(252, 191, 18, 0.4);
}

/* ---------- Sector cards (bigger multi-select) ---------- */
.sectors { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sector { position: relative; display: block; cursor: pointer; }
.sector input { position: absolute; opacity: 0; width: 0; height: 0; }
.sector__box {
  display: flex; align-items: center; gap: 16px;
  background: var(--aok-paper);
  border: 1px solid var(--aok-rule);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  transition: all var(--dur-med) var(--ease);
  height: 100%;
}
.sector:hover .sector__box { border-color: var(--aok-purple-soft); }
.sector__tick {
  flex: 0 0 24px; width: 24px; height: 24px;
  border-radius: 7px;
  border: 1.5px solid var(--aok-purple-soft);
  background: var(--aok-white);
  display: grid; place-items: center;
  transition: all var(--dur-med) var(--ease);
}
.sector__tick svg { width: 14px; height: 14px; color: var(--aok-yellow); opacity: 0; transform: scale(0.6); transition: all var(--dur-med) var(--ease); }
.sector__text b {
  display: block;
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 22px; line-height: 1.1; color: var(--aok-purple-deep);
  letter-spacing: -0.01em;
}
.sector__text span {
  display: block; margin-top: 4px;
  font-family: var(--font-sans); font-weight: 500;
  font-size: 12px; line-height: 1.45; color: var(--aok-ink-soft);
}
.sector input:checked + .sector__box {
  border-color: var(--aok-purple-deep);
  background: var(--aok-yellow-soft);
  box-shadow: inset 0 0 0 1px var(--aok-purple-deep);
}
.sector input:checked + .sector__box .sector__tick {
  background: var(--aok-purple-deep); border-color: var(--aok-purple-deep);
}
.sector input:checked + .sector__box .sector__tick svg { opacity: 1; transform: scale(1); }
.sector input:focus-visible + .sector__box { box-shadow: 0 0 0 4px rgba(252, 191, 18, 0.4); }

/* ---------- Amount + currency ---------- */
.amount { display: flex; flex-direction: column; gap: 14px; }
.amount__row { display: flex; align-items: stretch; gap: 12px; flex-wrap: wrap; }
.amount__input {
  position: relative; flex: 1 1 240px; display: flex; align-items: stretch;
}
.amount__symbol {
  display: grid; place-items: center;
  padding: 0 18px;
  background: var(--aok-purple-deep);
  color: var(--aok-yellow);
  border: 1px solid var(--aok-purple-deep);
  border-right: 0;
  border-radius: var(--r-md) 0 0 var(--r-md);
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 24px;
  min-width: 64px;
}
.amount__input .input {
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--font-display); font-style: italic;
  font-size: 26px;
}
.amount__presets { display: flex; flex-wrap: wrap; gap: 10px; }
.amount__currency { display: flex; gap: 8px; }

/* ---------- Check rows (newsletter / terms) ---------- */
.checkrow {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 20px;
  background: var(--aok-paper);
  border: 1px solid var(--aok-rule);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: border-color var(--dur-med) var(--ease), background var(--dur-med) var(--ease);
}
.checkrow:hover { border-color: var(--aok-purple-soft); }
.checkrow input { position: absolute; opacity: 0; width: 0; height: 0; }
.checkrow__box {
  flex: 0 0 24px; width: 24px; height: 24px; margin-top: 1px;
  border-radius: 7px;
  border: 1.5px solid var(--aok-purple-soft);
  background: var(--aok-white);
  display: grid; place-items: center;
  transition: all var(--dur-med) var(--ease);
}
.checkrow__box svg { width: 14px; height: 14px; color: var(--aok-yellow); opacity: 0; transform: scale(0.6); transition: all var(--dur-med) var(--ease); }
.checkrow input:checked ~ .checkrow__box { background: var(--aok-purple-deep); border-color: var(--aok-purple-deep); }
.checkrow input:checked ~ .checkrow__box svg { opacity: 1; transform: scale(1); }
.checkrow input:focus-visible ~ .checkrow__box { box-shadow: 0 0 0 4px rgba(252, 191, 18, 0.4); }
.checkrow input:checked ~ .checkrow__text { color: var(--aok-ink); }
.checkrow__text {
  font-family: var(--font-sans); font-weight: 500;
  font-size: 14px; line-height: 1.55; color: var(--aok-ink-mute);
}
.checkrow__text b { color: var(--aok-purple-deep); font-weight: 600; }

/* ---------- Inline terms box ---------- */
.terms-box {
  border: 1px solid var(--aok-rule);
  border-radius: var(--r-lg);
  background: var(--aok-paper);
  padding: 24px 26px;
  max-height: 240px; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--aok-purple-soft) transparent;
}
.terms-box::-webkit-scrollbar { width: 8px; }
.terms-box::-webkit-scrollbar-thumb { background: var(--aok-purple-soft); border-radius: 999px; }
.terms-box h4 {
  font-family: var(--font-sans); font-weight: 500;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--aok-purple); margin: 0 0 6px;
}
.terms-box h4 + p { margin-top: 0; }
.terms-box p {
  font-family: var(--font-sans); font-weight: 500;
  font-size: 13.5px; line-height: 1.6; color: var(--aok-ink-mute);
  margin: 0 0 14px;
}
.terms-box p:last-child { margin-bottom: 0; }
.terms-box .placeholder {
  font-family: var(--font-display); font-style: italic;
  color: var(--aok-purple); font-size: 14px;
}
.terms-note {
  font-family: var(--font-sans); font-weight: 500;
  font-size: 13.5px; line-height: 1.6; color: var(--aok-ink-mute);
  margin: 0; padding-left: 38px;
}

/* ---------- Submit row ---------- */
.form-submit {
  margin-top: 36px; padding-top: 28px;
  border-top: 1px solid var(--aok-rule);
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
}
.form-submit .btn { padding: 18px 34px; font-size: 13px; }
.form-submit .note {
  font-family: var(--font-sans); font-weight: 500;
  font-size: 13px; color: var(--aok-ink-soft); max-width: 36ch; line-height: 1.5;
}

/* ---------- Required hint at top ---------- */
.form-reqnote {
  font-family: var(--font-sans); font-weight: 500;
  font-size: 12px; letter-spacing: 0.04em; color: var(--aok-ink-soft);
  margin: 0 0 28px;
}
.form-reqnote .req { color: var(--aok-yellow-deep); }

/* ---------- Tabs (donate vs partner intent) ---------- */
.intent {
  display: inline-flex; gap: 4px; padding: 5px;
  background: var(--aok-paper-deep);
  border: 1px solid var(--aok-rule);
  border-radius: var(--r-pill);
  margin-bottom: 36px;
}
.intent__opt {
  position: relative; display: block; cursor: pointer;
}
.intent__opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.intent__opt span {
  display: block;
  font-family: var(--font-sans); font-weight: 500;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--aok-purple-deep);
  padding: 11px 24px; border-radius: var(--r-pill);
  transition: all var(--dur-med) var(--ease);
}
.intent__opt input:checked + span {
  background: var(--aok-yellow); color: var(--aok-purple-deep);
  box-shadow: var(--shadow-1);
}
.intent__opt input:focus-visible + span { box-shadow: 0 0 0 4px rgba(252,191,18,0.4); }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .form-hero__inner { padding: 44px 24px 8px; }
  .form-wrap { padding: 0 20px; }
  .form-card { padding: 32px 24px 32px; }
  .form-grid { grid-template-columns: 1fr; gap: 18px; }
  .sectors { grid-template-columns: 1fr; }
  .choices--grow { flex-direction: column; }
  .choices--grow .choice { flex: 1 1 auto; }
  .form-section__title { font-size: 26px; }
}
