/* start-a-fundraiser.css — Start a Fundraiser page. Based on Elementor page ID 10814. */

/* ── Hero ─────────────────────────────────────────────── */
.ha-saf-hero {
  position: relative;
  height: 250px;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  background-color: var(--text);
}
@media (max-width: 575px) { .ha-saf-hero { height: 250px; min-height: 250px; } }

.ha-saf-hero-bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-img, none);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 1;
  will-change: transform;
}
.ha-saf-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--text) 55%, transparent) 0%,
    color-mix(in srgb, var(--text) 25%, transparent) 50%,
    color-mix(in srgb, var(--text) 10%, transparent) 100%
  );
  z-index: 2;
}

.ha-saf-hero-content {
  position: relative;
  z-index: 3;
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
/* [fix #1] H1 Hero: 65px desktop → 40px mobile, no xs reduction */
.ha-saf-hero-content h1 {
  font-family: 'Fields Display', 'DM Serif Display', Georgia, serif;
  font-size: 65px;
  font-weight: 500;
  margin: 0 0 var(--space-4);
  line-height: 1.1;
  color: var(--white);
}
.ha-saf-hero-content p {
  font-size: 20px;
  font-weight: 400;
  margin: 0;
  max-width: 540px;
  opacity: 0.95;
  color: var(--white);
  line-height: 1.5;
}
@media (min-width: 576px) and (max-width: 767px) {
  .ha-saf-hero-content { padding: 0 var(--space-5); text-align: center; }
  .ha-saf-hero-content h1 { font-size: 40px; }
  .ha-saf-hero-content p  { font-size: 16px; }
}
@media (max-width: 575px) {
  .ha-saf-hero-content { padding: 0 var(--space-4); text-align: center; }
  .ha-saf-hero-content h1 { font-size: 40px; } /* fix #1: was 32px */
  .ha-saf-hero-content p  { font-size: 15px; max-width: 100%; }
}

/* ── Shared wrap ──────────────────────────────────────── */
.ha-saf-wrap {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-7);
}
@media (max-width: 767px) { .ha-saf-wrap { padding: 0 var(--space-5); } }
@media (max-width: 575px) { .ha-saf-wrap { padding: 0 var(--space-4); } }

/* ── Journey section ──────────────────────────────────── */
.ha-saf-journey {
  background: var(--white);
  padding: var(--space-8) 0;
}

/* H2 Page Title: 48px desktop / 32px mobile */
.ha-saf-journey h2 {
  font-family: 'Fields Display', 'DM Serif Display', Georgia, serif;
  font-size: 48px;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 var(--space-5);
}
@media (max-width: 767px) { .ha-saf-journey h2 { font-size: 32px; } }

.ha-saf-lead {
  font-size: 18px;
  color: var(--text);
  line-height: 1.7;
  max-width: 760px;
  margin: 0 0 var(--space-7);
}
@media (max-width: 767px) { .ha-saf-lead { font-size: 16px; } }

/* Steps grid: 3-col → 2-col at md → 1-col at xs [fix #16] */
.ha-saf-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (min-width: 768px) and (max-width: 991px) {
  .ha-saf-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .ha-saf-steps { grid-template-columns: 1fr; gap: var(--space-4); }
}

.ha-saf-step {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  border: 1px solid var(--border-light);
  /* [fix #13] card default shadow */
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.ha-saf-step:hover {
  /* [fix #12] card hover shadow spec */
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.ha-saf-step-icon {
  width: var(--space-8);
  height: var(--space-8);
  background: var(--green);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--white);
}
.ha-saf-step-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--white);
}

/* [fix #6] H3 step cards: H4 spec 24px desktop / 20px mobile */
.ha-saf-step h3 {
  font-family: 'Oakes Grotesk', 'Inter', system-ui, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 var(--space-3);
}
@media (max-width: 767px) { .ha-saf-step h3 { font-size: 20px; } }

.ha-saf-step p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Apply section ────────────────────────────────────── */
.ha-saf-apply {
  background: var(--bg);
  padding: var(--space-8) 0;
}
@media (max-width: 767px) {
  .ha-saf-apply {
    padding: var(--space-7) 0;
  }
}

/* Two-column grid: form copy left, form card right (matches contact-us-v2) */
.ha-saf-apply-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  gap: var(--space-7);
  align-items: start;
}
@media (max-width: 991px) {
  .ha-saf-apply-grid {
    grid-template-columns: 1fr;
  }
  .ha-saf-form-copy {
    max-width: 760px;
  }
}

/* Form copy: kicker + H2 + description (matches contact-us-v2) */
.ha-saf-kicker {
  display: inline-flex;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: var(--space-3);
  text-transform: uppercase;
}

.ha-saf-form-copy h2 {
  font-family: 'Fields Display', 'DM Serif Display', Georgia, serif;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 var(--space-4);
}

.ha-saf-form-copy p {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 767px) {
  .ha-saf-form-copy h2 { font-size: 32px; }
  .ha-saf-form-copy p { font-size: 16px; }
}

/* White card form panel (matches .ha-contact-form) */
.ha-saf-form-panel {
  padding: var(--space-6);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

@media (max-width: 767px) {
  .ha-saf-form-panel {
    padding: var(--space-5);
  }
}

/* ── Contact section ──────────────────────────────────── */
/* Styles inherited from contact-us-v2.css via shared ha-contact-* classes. */
.ha-saf-contact { background: var(--bg); }

/* ── Fundraising Application Form ─────────────────────── */
.ha-v2-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.ha-v2-span-2 {
  grid-column: 1 / -1;
  margin-top: var(--space-4);
}

.ha-v2-field {
  display: grid;
  gap: 6px;
}

.ha-v2-field label,
.ha-v2-field legend {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.ha-v2-field input,
.ha-v2-field textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  transition: border-color 0.15s ease;
}

.ha-v2-field input:hover,
.ha-v2-field textarea:hover {
  border-color: var(--green);
}

.ha-v2-field textarea {
  min-height: 120px;
  resize: vertical;
}

.ha-v2-field input:focus,
.ha-v2-field textarea:focus {
  border-color: var(--green);
  box-shadow: none;
  outline: none;
}

.ha-v2-field [aria-invalid="true"] {
  border-color: var(--pink);
}

.ha-v2-field-error {
  color: var(--pink);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  margin: -2px 0 0;
}

.ha-v2-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ha-v2-form-alert {
  display: none;
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  font-size: 15px;
  line-height: 1.5;
}

.ha-v2-form-alert.is-visible {
  display: block;
}

.ha-v2-form-alert.is-success {
  color: var(--green-dark);
  background: var(--green-faint);
  border: 1px solid rgba(1, 170, 1, 0.24);
}

.ha-v2-form-alert.is-error {
  color: var(--pink);
  background: rgba(216, 20, 115, 0.08);
  border: 1px solid rgba(216, 20, 115, 0.24);
}

.ha-v2-submit {
  display: inline-flex;
  width: fit-content;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-4);
  padding: 14px 32px;
  color: var(--white);
  background: var(--pink);
  border: 0;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base), opacity var(--transition-base);
}

.ha-v2-submit:hover:not(:disabled) {
  color: var(--white);
  background: var(--pink-dark);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(216, 20, 115, 0.5);
}

.ha-v2-submit:disabled {
  cursor: wait;
  opacity: 0.68;
}

/* ── Supporting document upload ───────────────────────── */
.ha-saf-dropzone {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--white);
  border: 1.5px dashed var(--border);
  border-radius: 8px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ha-saf-dropzone:hover,
.ha-saf-dropzone:focus-within {
  background: var(--green-faint);
  border-color: var(--green);
}

/* Input covers the zone so native drag-and-drop keeps working. */
.ha-saf-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.ha-saf-dropzone-icon {
  display: inline-flex;
  color: var(--green);
}

.ha-saf-dropzone-icon svg {
  width: 20px;
  height: 20px;
}

.ha-saf-dropzone-copy {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.4;
}

.ha-saf-dropzone-copy strong {
  color: var(--green);
  font-weight: 700;
}

.ha-saf-dropzone:has(input[aria-invalid="true"]) {
  border-color: var(--pink);
}

.ha-v2-upload-note {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.ha-v2-upload-preview[hidden] {
  display: none;
}

.ha-v2-upload-preview-link {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3);
  background: var(--green-faint);
  border: 1px solid rgba(1, 170, 1, 0.2);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ha-v2-upload-preview-link:hover,
.ha-v2-upload-preview-link:focus-visible {
  background: rgba(1, 170, 1, 0.1);
  border-color: rgba(1, 170, 1, 0.45);
  transform: translateY(-2px);
  outline: none;
}

.ha-v2-upload-preview-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-muted);
}

.ha-v2-upload-preview-icon {
  width: 28px;
  height: 28px;
}

.ha-v2-upload-preview-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
}

.ha-v2-upload-preview-copy strong,
.ha-v2-upload-preview-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.ha-v2-upload-preview-copy strong {
  font-weight: 700;
  white-space: nowrap;
}

.ha-v2-upload-preview-copy span {
  color: var(--text-muted);
}

@media (max-width: 991px) {
  .ha-saf-form-copy,
  .ha-saf-form-panel {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .ha-v2-form-grid {
    grid-template-columns: 1fr;
  }
  .ha-v2-submit {
    width: 100%;
  }
}
