/* =========================================================
   VUGA Foundation — Forms / Landing pages
   Editorial, dark, burgundy + gold
   ========================================================= */

/* --- shared landing surface ------------------------------ */
.landing-section {
  background: var(--bg);
  padding: 5rem var(--pad) 6rem;
  position: relative;
}
.landing-section + .landing-section { padding-top: 1rem; }

.landing-hero {
  position: relative;
  padding: 8rem var(--pad) 3rem;
  background:
    radial-gradient(ellipse 50% 40% at 15% 25%, rgba(122, 41, 55, .35) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 85% 75%, rgba(201, 163, 106, .14) 0%, transparent 65%),
    linear-gradient(180deg, var(--bg-elev) 0%, var(--bg) 75%, var(--ink-deep) 100%);
  overflow: hidden;
}
.landing-hero .container {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.landing-hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--text);
  max-width: 22ch;
  margin: 0 0 1.4rem;
}
.landing-hero h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}
.landing-hero p.lede {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 56ch;
  margin: 0 0 2rem;
}

/* Trust strip — 501(c)(3), Candid, FL Reg */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.6rem;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.trust-strip span::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
}

/* --- "what we offer" / opportunity cards ------------------ */
.opportunity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin: 2.5rem 0 0;
}
.opportunity-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  transition: border-color .25s, transform .25s;
}
.opportunity-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.opportunity-card .icon {
  color: var(--gold);
  margin-bottom: 1rem;
  width: 28px; height: 28px;
}
.opportunity-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.2rem;
  margin: 0 0 .4rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.opportunity-card p {
  font-size: .92rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* --- helper notice card (tax, disclaimers) ---------------- */
.notice-card {
  background: linear-gradient(135deg, rgba(122, 41, 55, .10), rgba(201, 163, 106, .04));
  border: 1px solid rgba(201, 163, 106, .25);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  font-size: .95rem;
  line-height: 1.65;
  color: var(--text-soft);
  margin: 2rem 0;
}
.notice-card strong { color: var(--gold); letter-spacing: .04em; }

/* =========================================================
   FORM SHELL
   ========================================================= */
.form-shell {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 3rem);
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}
.form-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(201, 163, 106, .06) 0%, transparent 30%);
  pointer-events: none;
}
.form-title {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 400;
  margin: 0 0 .4rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.form-subtitle {
  font-size: .92rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  line-height: 1.5;
}

/* --- multi-step progress ---------------------------------- */
.form-progress {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 0 0 2.4rem;
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-dim);
  list-style: none;          /* kill default <ol> decimal markers */
  padding: 0;
  margin-left: 0;
  margin-right: 0;
}
.form-progress .pstep {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  flex: 0 0 auto;            /* shrink to content, no truncation */
  min-width: 0;
  white-space: nowrap;
}
.form-progress .pnum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: 0;
  flex-shrink: 0;
  transition: all .25s;
}
.form-progress .plabel {
  white-space: nowrap;       /* full label visible */
}
.form-progress .pbar {
  flex: 1 1 auto;            /* fills remaining space between steps */
  height: 1px;
  background: var(--line-strong);
  min-width: 1.2rem;
}
/* Mobile: hide labels, keep just the numbered circles + bars */
@media (max-width: 640px) {
  .form-progress .plabel { display: none; }
  .form-progress .pstep { gap: 0; }
}
.form-progress .pstep.is-active .pnum,
.form-progress .pstep.is-done .pnum {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink-deep);
}
.form-progress .pstep.is-active .plabel,
.form-progress .pstep.is-done .plabel {
  color: var(--gold);
}

/* --- step container --------------------------------------- */
.form-step {
  display: none;
  animation: stepFade .35s ease;
}
.form-step.is-active { display: block; }
@keyframes stepFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- field primitives ------------------------------------- */
.field-group { margin-bottom: 1.4rem; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.field-row .field-group { margin-bottom: 1.4rem; }
@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

.field-label {
  display: block;
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: .6rem;
}
.field-label .req {
  color: var(--gold);
  margin-left: .35rem;
  font-weight: 400;
}
.field-hint {
  display: block;
  font-size: .8rem;
  color: var(--text-dim);
  margin-top: .45rem;
  line-height: 1.5;
}

.field-input,
.field-textarea,
.field-select {
  width: 100%;
  background: var(--bg-elev-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  padding: .9rem 1rem;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field-input::placeholder,
.field-textarea::placeholder { color: var(--text-dim); }
.field-textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.6;
}
.field-input:focus,
.field-textarea:focus,
.field-select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 163, 106, .15);
  background: var(--bg-elev);
}
.field-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path fill='%23c9a36a' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 10px;
  padding-right: 2.6rem;
}
.field-select option {
  background: var(--bg-elev-2);
  color: var(--text);
}

/* invalid state (touched + invalid) */
.field-input:user-invalid,
.field-textarea:user-invalid,
.field-select:user-invalid {
  border-color: var(--crimson);
}

/* --- checkbox / radio grid -------------------------------- */
.field-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .5rem .8rem;
  margin-top: .2rem;
}
.field-option {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .65rem .8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--bg);
  transition: border-color .2s, background .2s;
}
.field-option:hover { border-color: var(--gold-deep); }
.field-option input { margin: 0; flex-shrink: 0; }
.field-option input[type="checkbox"],
.field-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border: 1.5px solid var(--line-strong);
  background: var(--bg-elev-2);
  border-radius: 3px;
  margin-top: 1px;
  position: relative;
  transition: all .2s;
}
.field-option input[type="radio"] { border-radius: 50%; }
.field-option input[type="checkbox"]:checked,
.field-option input[type="radio"]:checked {
  border-color: var(--gold);
  background: var(--gold);
}
.field-option input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px; top: 1px;
  width: 6px; height: 10px;
  border: solid var(--ink-deep);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.field-option input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--ink-deep);
  border-radius: 50%;
}
.field-option input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.field-option.is-checked {
  border-color: var(--gold);
  background: rgba(201, 163, 106, .06);
}
.field-option-text {
  font-size: .92rem;
  line-height: 1.4;
  color: var(--text-soft);
  user-select: none;
}

/* --- char counter ----------------------------------------- */
.field-counter {
  display: block;
  text-align: right;
  font-size: .72rem;
  color: var(--text-dim);
  margin-top: .35rem;
  font-variant-numeric: tabular-nums;
}
.field-counter.is-over { color: var(--crimson); }

/* --- file inputs ------------------------------------------ */
.field-file {
  display: block;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 1.3rem 1rem;
  background: var(--bg);
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  position: relative;
}
.field-file:hover {
  border-color: var(--gold);
  background: rgba(201, 163, 106, .04);
}
.field-file input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.field-file-label {
  font-size: .9rem;
  color: var(--text-soft);
}
.field-file-label strong {
  color: var(--gold);
  font-weight: 500;
}
.field-file-hint {
  display: block;
  font-size: .75rem;
  color: var(--text-dim);
  margin-top: .3rem;
}
.field-file-preview {
  list-style: none;
  margin: .7rem 0 0;
  padding: 0;
  font-size: .85rem;
  color: var(--text-soft);
}
.field-file-preview li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .5rem .7rem;
  background: var(--bg-elev-2);
  border-radius: var(--radius-sm);
  margin-top: .35rem;
}
.field-file-preview li .fname {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.field-file-preview li .fsize {
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  font-size: .78rem;
}

/* --- consent checkbox (single, prominent) ----------------- */
.field-consent {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: 1rem 1.1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-top: 1.6rem;
}
.field-consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border: 1.5px solid var(--line-strong);
  border-radius: 3px;
  background: var(--bg-elev-2);
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  cursor: pointer;
  transition: all .2s;
}
.field-consent input:checked {
  background: var(--gold);
  border-color: var(--gold);
}
.field-consent input:checked::after {
  content: "";
  position: absolute;
  left: 5px; top: 2px;
  width: 6px; height: 11px;
  border: solid var(--ink-deep);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.field-consent label {
  font-size: .9rem;
  line-height: 1.55;
  color: var(--text-soft);
  cursor: pointer;
}

/* --- form actions ----------------------------------------- */
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.btn-step {
  font-family: var(--sans);
  font-size: .85rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 500;
  padding: .9rem 1.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  transition: all .2s;
}
.btn-step:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-step.is-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink-deep);
  font-weight: 600;
}
.btn-step.is-primary:hover {
  background: var(--gold-warm);
  border-color: var(--gold-warm);
}
.btn-step:disabled {
  opacity: .4;
  cursor: not-allowed;
}
.btn-step.is-hidden { display: none; }

.btn-submit-form {
  width: 100%;
  font-family: var(--sans);
  font-size: .92rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 1.15rem 1.6rem;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--gold);
  color: var(--ink-deep);
  cursor: pointer;
  transition: background .2s, transform .15s;
  margin-top: 2rem;
  box-shadow: var(--glow);
}
.btn-submit-form:hover {
  background: var(--gold-warm);
  transform: translateY(-1px);
}
.btn-submit-form:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* --- artwork sub-card (for art-donations) ----------------- */
.artwork-card {
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.artwork-card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  margin: 0 0 1.2rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* --- error notice at top of form -------------------------- */
.form-errors {
  display: none;
  background: rgba(168, 58, 58, .12);
  border: 1px solid var(--crimson);
  border-radius: var(--radius-sm);
  padding: .9rem 1rem;
  margin-bottom: 1.4rem;
  color: var(--crimson);
  font-size: .9rem;
}
.form-errors.is-visible { display: block; }

/* --- section heading inside long pages -------------------- */
.section-head-sm {
  margin: 0 0 1.5rem;
}
.section-head-sm .section-tag {
  display: inline-block;
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: .9rem;
}
.section-head-sm h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.7rem, 3.2vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .9rem;
  color: var(--text);
}
.section-head-sm h2 em { color: var(--gold); font-style: italic; font-weight: 400; }
.section-head-sm p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0;
}

/* --- recap divider in form -------------------------------- */
.form-divider {
  margin: 2rem 0 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px dashed var(--line-strong);
  font-size: .72rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --- responsive tweaks ------------------------------------ */
@media (max-width: 720px) {
  .landing-hero { padding: 6rem 1.25rem 2.4rem; }
  .form-progress { gap: .35rem; font-size: .6rem; }
  .form-progress .pnum { width: 22px; height: 22px; font-size: .68rem; }
  .form-shell { padding: 1.6rem 1.2rem 2rem; }
  .form-actions { flex-direction: column-reverse; align-items: stretch; }
  .form-actions .btn-step { width: 100%; text-align: center; }
}

/* =========================================================
   SUCCESS MODAL (replaces /thank-you.html)
   ========================================================= */
.form-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.form-modal.is-open {
  display: flex;
  animation: modalFade .25s ease;
}
@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.form-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 5, 9, .85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.form-modal-card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 3rem 2.4rem 2.6rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg), 0 0 80px rgba(201, 163, 106, .15);
  animation: modalRise .35s cubic-bezier(.2, .8, .2, 1);
}
@keyframes modalRise {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.form-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: color .2s, background .2s;
}
.form-modal-close:hover {
  color: var(--gold);
  background: rgba(201, 163, 106, .08);
}
.form-modal-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 1.5rem;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  animation: iconPop .5s cubic-bezier(.2, .8, .2, 1) .15s both;
}
@keyframes iconPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}
.form-modal-card h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.9rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 .9rem;
}
.form-modal-card h2 em { color: var(--gold); font-style: italic; font-weight: 400; }
.form-modal-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0 0 2rem;
}
.form-modal-card .btn-step {
  min-width: 160px;
}
