/*
 * assets/css/ap-supporter.css
 *
 * Styles for ap_supporter_form, ap_volunteer_form, ap_donate_tiers,
 * and the Flock Toolkit "Email me a copy" panel.
 *
 * Uses CSS variables defined in style.css so all colors track the theme.
 */

/* ============================================================
 * Supporter form (signup / volunteer / generic capture)
 * ============================================================ */
.ap-supporter {
  font-family: var(--body, system-ui, sans-serif);
  color: var(--ink, #0b1322);
}

.ap-supporter-headline {
  font-family: var(--display, Georgia, serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .4rem;
  color: var(--navy, #081224);
}

.ap-supporter-subtext {
  font-size: .98rem;
  color: var(--muted, #5b6577);
  margin: 0 0 1.1rem;
  line-height: 1.5;
}

.ap-supporter-form { display: block; }

.ap-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.ap-row > .ap-field { flex: 1 1 0; min-width: 180px; }
.ap-row.ap-row-2-3 > .ap-field-email { flex: 2; min-width: 220px; }
.ap-row.ap-row-2-3 > .ap-field-zip   { flex: 1; min-width: 110px; }

.ap-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #4a5160;
  margin: 0 0 4px;
  letter-spacing: .01em;
}
.ap-field label .req { color: var(--barn, #9c2b25); }

.ap-field input[type=text],
.ap-field input[type=email],
.ap-field input[type=tel],
.ap-field textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink, #0b1322);
  background: #fff;
  border: 1px solid #c8c4b8;
  border-radius: 3px;
  outline: none;
  transition: border-color .12s, box-shadow .12s;
  box-sizing: border-box;
}
.ap-field textarea { min-height: 80px; resize: vertical; }
.ap-field input:focus,
.ap-field textarea:focus {
  border-color: var(--gold-deep, #b8853f);
  box-shadow: 0 0 0 3px rgba(184, 133, 63, .15);
}

.ap-consent {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 13px;
  color: #4a5160;
  margin: 12px 0 6px;
  padding: 11px 13px;
  background: #fafaf7;
  border: 1px solid #e5e0d4;
  border-radius: 3px;
  line-height: 1.45;
  cursor: pointer;
}
.ap-consent input { margin: 2px 0 0; flex-shrink: 0; }
.ap-consent a { color: var(--barn, #9c2b25); text-decoration: underline; }
.ap-consent-sms { background: #fff; border-color: #ece9dd; }

.ap-supporter-submit {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--body, inherit);
  letter-spacing: .01em;
  cursor: pointer;
  border: 0;
  border-radius: 3px;
  background: var(--gold, #D9AB6F);
  color: var(--navy, #081224);
  transition: background .15s, transform .12s, box-shadow .15s;
}
.ap-supporter-submit:hover {
  background: var(--gold-deep, #b8853f);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(184, 133, 63, .25);
}
.ap-supporter-submit:disabled {
  opacity: .6;
  cursor: wait;
  transform: none;
}

.ap-supporter-status {
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: 3px;
  font-size: 14px;
  line-height: 1.45;
}
.ap-supporter-status.ok  { background: #e6f4ea; border: 1px solid #b2dbbc; color: #1b5e20; }
.ap-supporter-status.err { background: #fdecea; border: 1px solid #f5c6c1; color: #b71c1c; }

/* ----- style variants ----- */
.ap-supporter-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line, rgba(8,18,36,.14));
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.ap-supporter-stacked .ap-row { flex-direction: column; gap: 0; }
.ap-supporter-stacked .ap-row > .ap-field { margin-bottom: 12px; }
.ap-supporter-minimal { max-width: 420px; }
.ap-supporter-minimal .ap-field label { display: none; }
.ap-supporter-minimal .ap-row { gap: 8px; }

@media (max-width: 540px) {
  .ap-row { flex-direction: column; gap: 0; }
  .ap-row > .ap-field { margin-bottom: 12px; }
}

/* ============================================================
 * Volunteer interest checkboxes
 * ============================================================ */
.ap-interests {
  margin: 14px 0;
  padding: 16px;
  background: #fafaf7;
  border: 1px solid #e5e0d4;
  border-radius: 3px;
}
.ap-interests-label {
  font-size: 13px;
  font-weight: 600;
  color: #4a5160;
  margin-bottom: 12px;
}
.ap-checkbox {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 14px;
  padding: 6px 0;
  cursor: pointer;
  color: #2a3242;
}
.ap-checkbox input { margin: 3px 0 0; flex-shrink: 0; }
.ap-checkbox:hover { color: var(--navy, #081224); }

/* ============================================================
 * Donation tier widget
 * ============================================================ */
.ap-donate {
  font-family: var(--body, system-ui, sans-serif);
}
.ap-donate-head {
  text-align: center;
  margin-bottom: 18px;
}
.ap-donate-headline {
  font-family: var(--display, Georgia, serif);
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0 0 .5rem;
  color: var(--navy, #081224);
}
.ap-donate-subtext {
  font-size: 1rem;
  color: var(--muted, #5b6577);
  margin: 0 auto;
  max-width: 540px;
  line-height: 1.5;
}
.ap-donate-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin: 20px 0 14px;
}
.ap-donate-tier {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 14px 10px;
  background: #fff;
  border: 2px solid var(--navy, #081224);
  border-radius: 3px;
  text-decoration: none;
  color: var(--navy, #081224);
  font-weight: 700;
  text-align: center;
  transition: all .15s;
}
.ap-donate-tier:hover {
  background: var(--gold, #D9AB6F);
  border-color: var(--gold-deep, #b8853f);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(184, 133, 63, .25);
}
.ap-donate-amt {
  font-size: 1.4rem;
  letter-spacing: -.01em;
}
.ap-donate-custom .ap-donate-amt { font-size: 1.05rem; }
.ap-donate-recurring {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #4a5160;
  margin-top: 14px;
  cursor: pointer;
}

/* ============================================================
 * Flock Toolkit "Email me a copy" panel
 * ============================================================ */
.gen-out .acts button.primary {
  background: var(--gold, #D9AB6F);
  color: var(--navy, #081224);
  border-color: var(--gold-deep, #b8853f);
  font-weight: 700;
}
.gen-out .acts button.primary:hover {
  background: var(--gold-deep, #b8853f);
  color: #fff;
}

.ap-emailme-panel {
  margin-top: 14px;
  padding: 18px;
  background: #fafaf7;
  border: 1px solid #e5e0d4;
  border-radius: 4px;
}
.ap-emailme-headline {
  font-family: var(--display, Georgia, serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy, #081224);
  margin-bottom: 4px;
}
.ap-emailme-sub {
  font-size: 13px;
  color: var(--muted, #5b6577);
  margin-bottom: 14px;
  line-height: 1.45;
}
.ap-emailme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.ap-emailme-grid input {
  padding: 11px 13px;
  font-size: 14px;
  border: 1px solid #c8c4b8;
  border-radius: 3px;
  font-family: inherit;
  outline: none;
  background: #fff;
}
.ap-emailme-grid input:focus {
  border-color: var(--gold-deep, #b8853f);
  box-shadow: 0 0 0 3px rgba(184, 133, 63, .15);
}
.ap-emailme-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12.5px;
  color: #4a5160;
  margin: 4px 0 12px;
  line-height: 1.45;
  cursor: pointer;
}
.ap-emailme-consent input { margin-top: 3px; flex-shrink: 0; }
#ap-emailme-send {
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
}
.ap-emailme-status {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 3px;
  font-size: 13.5px;
  line-height: 1.45;
}
.ap-emailme-status.ok  { background: #e6f4ea; border: 1px solid #b2dbbc; color: #1b5e20; }
.ap-emailme-status.err { background: #fdecea; border: 1px solid #f5c6c1; color: #b71c1c; }

@media (max-width: 540px) {
  .ap-emailme-grid { grid-template-columns: 1fr; }
}
