/* =====================================================================
   EOY26 FORM SKIN: makes any EveryAction Online Action form match the
   2026 Annual Report (paper, near-black, CORA purple, four-color rule).
   Used by the EOY26 EveryAction themes and by the coratrails.org landing
   page embed. Class names checked against CORA's live contribution form
   (Nov 19, 2026). If EveryAction changes its markup, inspect and adjust.
   ===================================================================== */
.ngp-form, .ngp-form.at {
  --eoy26-ink: #221D1B;
  --eoy26-paper: #F5F4EC;
  --eoy26-card: #FFFEF8;
  --eoy26-line: #DDDCD5;
  --eoy26-purple: #362D7B;
  --eoy26-purple-deep: #2A2361;
  --eoy26-teal: #47A08D;
  --eoy26-orange: #E05F22;
  --eoy26-muted: #5E5650;
  --eoy26-font: "Azo Sans", "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-family: var(--eoy26-font) !important;
  color: var(--eoy26-ink);
  accent-color: var(--eoy26-purple);
}
.ngp-form * { font-family: inherit; }
.ngp-form a { color: var(--eoy26-purple); }

/* EveryAction's own progress meter draws in an iframe that no stylesheet can
   restyle. Hide it and use the EOY26 thermometer instead. */
.ngp-form .MeterHtml, .ngp-form header.MeterHtml { display: none !important; }

/* Section headings */
.ngp-form .at-legend {
  font: 800 1.35rem/1.2 var(--eoy26-font);
  color: var(--eoy26-ink);
  letter-spacing: -0.01em;
  border: 0;
  padding: 0 0 4px;
  margin-bottom: 12px;
}
.ngp-form .at-fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.ngp-form .at-markup p, .ngp-form .at-row label, .ngp-form kbd { color: var(--eoy26-ink); }
.ngp-form kbd { font-family: var(--eoy26-font); font-weight: 600; font-size: 0.95rem; background: none; box-shadow: none; padding: 0; }

/* FastAction strip: quieter */
.ngp-form .FastAction .fastaction-block { background: var(--eoy26-paper); border: 1px solid var(--eoy26-line); border-radius: 12px; }

/* Gift amount buttons. EveryAction draws each button with the empty <a>
   inside the label; the amount text sits on top of it. */
.ngp-form .label-amount { color: var(--eoy26-ink) !important; font-weight: 800 !important; font-size: 1.2rem !important; }
.ngp-form .label-amount:not(.label-otheramount) { line-height: 34px !important; padding-top: 8px !important; padding-bottom: 8px !important; min-height: 50px; }
.ngp-form .label-amount a {
  background: var(--eoy26-card) !important;
  border: 2px solid var(--eoy26-line) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  transition: border-color .15s ease, background .15s ease;
}
.ngp-form .label-amount:hover a { border-color: var(--eoy26-purple) !important; }
.ngp-form .label-amount input:checked ~ a { background: var(--eoy26-purple) !important; border-color: var(--eoy26-purple) !important; }
.ngp-form .label-amount:has(input:checked) { color: var(--eoy26-paper) !important; }
.ngp-form .label-amount input:focus-visible ~ a { outline: 3px solid var(--eoy26-orange); outline-offset: 2px; }

/* Other amount, text fields, and selects */
.ngp-form input[type="text"], .ngp-form input[type="email"], .ngp-form input[type="tel"],
.ngp-form input[type="number"], .ngp-form select, .ngp-form textarea, .ngp-form .edit-otheramount {
  border: 2px solid var(--eoy26-line) !important;
  border-radius: 12px !important;
  background: var(--eoy26-card) !important;
  color: var(--eoy26-ink) !important;
  font: 500 1rem var(--eoy26-font) !important;
  box-shadow: none !important;
}
.ngp-form .edit-otheramount { font-weight: 800 !important; font-size: 1.2rem !important; }
.ngp-form input:focus, .ngp-form select:focus, .ngp-form textarea:focus {
  border-color: var(--eoy26-purple) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(54, 45, 123, .15) !important;
}

/* Checkboxes (cover the fees, in honor of) */
.ngp-form .at-check { color: var(--eoy26-ink); font-weight: 600; }
.ngp-form input[type="checkbox"], .ngp-form input[type="radio"] { accent-color: var(--eoy26-purple); }

/* Payment method buttons (card, bank) */
.ngp-form .at-btn-radio {
  border: 2px solid var(--eoy26-line) !important;
  border-radius: 999px !important;
  background: var(--eoy26-card) !important;
  color: var(--eoy26-ink) !important;
  font: 700 1rem var(--eoy26-font) !important;
  box-shadow: none !important;
}
.ngp-form .at-btn-radio:hover { border-color: var(--eoy26-purple) !important; }
.ngp-form .at-btn-radio-wrapper input:checked + .at-btn-radio { background: var(--eoy26-ink) !important; border-color: var(--eoy26-ink) !important; color: var(--eoy26-paper) !important; }

/* Submit */
.ngp-form .at-submit, .ngp-form input[type="submit"], .ngp-form .btn-at-primary {
  background: var(--eoy26-purple) !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: var(--eoy26-paper) !important;
  font: 800 1.15rem/1 var(--eoy26-font) !important;
  padding: 20px 24px !important;
  text-transform: none !important;
  box-shadow: none !important;
  cursor: pointer;
}
.ngp-form .at-submit:hover, .ngp-form input[type="submit"]:hover { background: var(--eoy26-purple-deep) !important; }
.ngp-form .secure-processing-label { color: var(--eoy26-muted); font-size: .9rem; }

/* Errors */
.ngp-form .at-error-console, .ngp-form .error, .ngp-form .at-error { color: #A3271B; }
.ngp-form input.error, .ngp-form select.error { border-color: #A3271B !important; }

/* "Other" amount: hide EveryAction's stray "Other" caption; keep the $ inside the box */
.ngp-form .label-amount.label-otheramount { font-size: 0 !important; line-height: 0 !important; }
.ngp-form .label-otheramount .edit-otheramount { font-size: 1.2rem !important; line-height: 1.2 !important; height: 50px; padding-left: 30px !important; }
.ngp-form .label-otheramount .label-otheramount-prefix { font-size: 1.2rem !important; line-height: 34px !important; font-weight: 800; color: var(--eoy26-muted); }

/* Payment buttons: PayPal and Venmo draw their own button, so no second box around them.
   Card and bank buttons match PayPal's shape so all four line up on every screen size. */
.ngp-form .at-btn-radio.at-btn-paypal-commerce-platform,
.ngp-form .at-btn-radio.at-btn-venmo { border: 0 !important; background: transparent !important; border-radius: 0 !important; padding: 0 !important; height: auto !important; }
.ngp-form .at-btn-radio.large { border-radius: 4px !important; border: 1px solid #555 !important; height: 46px !important; line-height: 43px !important; padding: 0 12px !important; font-weight: 700 !important; background: #fff !important; }
.ngp-form .at-btn-radio-wrapper input:checked + .at-btn-radio.large { background: var(--eoy26-ink) !important; color: var(--eoy26-paper) !important; border-color: var(--eoy26-ink) !important; }

/* Nov 20 refinements */
/* More room between the FastAction login strip and "Contribution Information" */
.ngp-form .FastAction { margin-bottom: 28px !important; }
.ngp-form .ContributionInformation .at-legend, .ngp-form .at-fieldset:first-of-type .at-legend { margin-top: 4px; }

/* Amount hover: the button itself changes color, nothing behind it */
.ngp-form .label-amount, .ngp-form .label-amount:hover { background: transparent !important; }
.ngp-form .label-amount:hover a { background: #ECE9F6 !important; border-color: var(--eoy26-purple) !important; }
.ngp-form .label-amount:not(.label-otheramount):hover { color: var(--eoy26-purple) !important; }
.ngp-form .label-amount:has(input:checked):hover a { background: var(--eoy26-purple-deep) !important; }
.ngp-form .label-amount:has(input:checked):hover { color: var(--eoy26-paper) !important; }

/* Payment buttons: one per row, full width, like coratrails.org/donate */
.ngp-form .at-payment-method-buttons .at-radio-set { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 12px !important; }
.ngp-form .at-payment-method-buttons .at-btn-radio-wrapper { width: 100% !important; max-width: none !important; margin: 0 !important; float: none !important; flex: none !important; }
.ngp-form .at-btn-radio.large { width: 100% !important; text-transform: uppercase !important; letter-spacing: .04em; font-size: 14px !important; }
.ngp-form .at-payment-method-buttons .at-radio-set { flex-direction: column-reverse !important; }
.ngp-form .at-btn-radio.small, .ngp-form .at-paypal-button-container, .ngp-form .at-venmo-button-container { width: 100% !important; display: block !important; }

/* Nov 20 round 2 */
/* amount buttons: no box behind the button, on hover or ever */
.ngp-form .label-amount, .ngp-form .label-amount:hover, .ngp-form .label-amount:focus-within { box-shadow: none !important; background: transparent !important; }
/* payment buttons: PayPal and Venmo stop growing at 750px, so cap all four at 750px to keep them the same width */
.ngp-form .at-payment-method-buttons .at-radio-set { max-width: 750px !important; margin-left: auto !important; margin-right: auto !important; }
/* Back and Next: Back on the left as an outlined pill, Next on the right, room between */
.ngp-form .step-prevNext { display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; align-items: center !important; justify-content: space-between !important; gap: 16px !important; margin-top: 24px !important; }
.ngp-form .step-prevNext::before, .ngp-form .step-prevNext::after { display: none !important; }
.ngp-form .step-prevNext .prevNext { float: none !important; margin: 0 !important; padding: 0 !important; width: auto !important; display: flex !important; align-items: center !important; }
.ngp-form .step-prevNext .prevNext.prev { order: 1 !important; }
.ngp-form .step-prevNext .prevNext.next { order: 2 !important; }
.ngp-form .step-prevNext > :not(.prevNext) { order: 3 !important; flex-basis: 100% !important; }
.ngp-form .step-prevNext .nextStep { margin: 0 !important; }
.ngp-form .step-prevNext .prevStep, .ngp-form .step-prevNext .prevStep:hover { display: inline-block !important; background: transparent !important; border: 2px solid var(--eoy26-purple, #362D7B) !important; color: var(--eoy26-purple, #362D7B) !important; border-radius: 999px !important; padding: 0 26px !important; height: 58px !important; line-height: 54px !important; font-size: 18.4px !important; font-weight: 700 !important; text-transform: none !important; text-decoration: none !important; box-shadow: none !important; margin: 0 !important; }
.ngp-form .step-prevNext .prevStep:hover { background: #ECE9F6 !important; }

/* secure-processing line: solid padlock icon after the text (the site font override was breaking EveryAction's icon font) */
.ngp-form .secure-processing-label .glyphicons-lock { display: inline-block !important; width: 12px !important; height: 14px !important; margin: 0 0 0 6px !important; padding: 0 !important; vertical-align: -2px !important; float: none !important; background-color: currentColor !important; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28'%3E%3Cpath d='M12 0a7 7 0 0 0-7 7v4H4a3 3 0 0 0-3 3v11a3 3 0 0 0 3 3h16a3 3 0 0 0 3-3V14a3 3 0 0 0-3-3h-1V7a7 7 0 0 0-7-7zm-4 7a4 4 0 0 1 8 0v4H8V7z'/%3E%3C/svg%3E") center / contain no-repeat !important; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28'%3E%3Cpath d='M12 0a7 7 0 0 0-7 7v4H4a3 3 0 0 0-3 3v11a3 3 0 0 0 3 3h16a3 3 0 0 0 3-3V14a3 3 0 0 0-3-3h-1V7a7 7 0 0 0-7-7zm-4 7a4 4 0 0 1 8 0v4H8V7z'/%3E%3C/svg%3E") center / contain no-repeat !important; }
.ngp-form .secure-processing-label .glyphicons-lock::before, .ngp-form .secure-processing-label .glyphicons-lock::after { display: none !important; content: none !important; }
.ngp-form .secure-processing-label { display: inline !important; }
