/* WGH Hope Warrior Certificate – form
   Mirrors the WeGiveHope design system: wgh-form-card surface, Blue (arrow) button preset,
   Dela Gothic One headings, Inter body. Palette vars fall back to hex if Breakdance isn't present. */

.wghc {
  --wghc-blue: var(--bde-palette-blue, #2431D8);
  --wghc-navy: var(--bde-palette-navy, #16193F);
  --wghc-ink: var(--bde-palette-ink, #0B0D1F);
  --wghc-orange: var(--bde-palette-orange, #ED622B);
  --wghc-gold: var(--bde-palette-gold, #F4B33F);
  --wghc-cream: var(--bde-palette-cream, #FDF2DC);
  --wghc-sky: var(--bde-palette-sky, #B0DBFD);
  --wghc-paper: #fdf9ef;
  --wghc-body: var(--bde-body-font-family, "Inter", system-ui, sans-serif);
  --wghc-head: var(--bde-heading-font-family, "Dela Gothic One", var(--wghc-body));

  box-sizing: border-box;
  width: 100%;
  height: 100%;
  font-family: var(--wghc-body);
  color: var(--wghc-navy);
}
.wghc *, .wghc *::before, .wghc *::after { box-sizing: inherit; }

.wghc [hidden] { display: none !important; }

.wghc-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-height: inherit;
  padding: 64px;
  background: var(--wghc-paper);
  border: 1px solid rgba(11, 13, 31, .1);
  border-radius: 24px;
}

.wghc-form,
.wghc-done {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin: 0;
}
.wghc-done { animation: wghc-in 400ms ease-out both; }
@keyframes wghc-in { from { opacity: 0; transform: translateY(8px); } }
.wghc-done-title:focus { outline: none; }

/* "Hope Warrior #4,213" */
.wghc-number {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  color: var(--wghc-navy);
  background: var(--wghc-gold);
  border-radius: 999px;
}
.wghc-number strong { font-family: var(--wghc-head); font-weight: 400; font-size: 18px; }

.wghc-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.wghc-actions .wghc-btn { align-self: auto; text-decoration: none; }

/* Navy Outline preset */
.wghc-btn.wghc-btn--outline {
  padding: 21px 36px;
  color: var(--wghc-navy);
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--wghc-navy);
}
.wghc-btn.wghc-btn--outline:hover { color: var(--wghc-cream); background: var(--wghc-navy); }

.wghc-again-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: -16px; font-size: 15px; color: rgba(11, 13, 31, .4); }
.wghc-link {
  margin: 0;
  padding: 0;
  font: 500 15px/1.4 var(--wghc-body);
  color: var(--wghc-blue);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.wghc-link:hover { color: var(--wghc-navy); }
.wghc-link:focus-visible { outline: 2px solid var(--wghc-sky); outline-offset: 2px; }
.wghc-done-msg:empty { display: none; }

.wghc-head { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }

.wghc-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--wghc-orange);
}
.wghc-kicker svg { width: 16px; height: 16px; color: var(--wghc-gold); flex: none; }

.wghc-title {
  margin: 0;
  font-family: var(--wghc-head);
  font-weight: 400;
  font-size: clamp(36px, 3.24vw, 56px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--wghc-blue);
}

.wghc-intro {
  margin: 0;
  max-width: 34em;
  font-size: 18px;
  line-height: 1.5;
  color: rgba(11, 13, 31, .75);
}

.wghc-field { display: flex; flex-direction: column; gap: 10px; }

.wghc-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(11, 13, 31, .7);
}

.wghc-input {
  width: 100%;
  height: 68px;
  margin: 0;
  padding: 0 24px;
  font: 500 20px/1.2 var(--wghc-body);
  color: var(--wghc-navy);
  background: #fff;
  border: 1.5px solid rgba(22, 25, 63, .25);
  border-radius: 16px;
  outline: none;
  box-shadow: none;
  transition: border-color 200ms ease-in-out, box-shadow 200ms ease-in-out;
  -webkit-appearance: none;
  appearance: none;
}
.wghc-input::placeholder { color: rgba(11, 13, 31, .4); }
.wghc-input:hover { border-color: rgba(22, 25, 63, .45); }
.wghc-input:focus { border-color: var(--wghc-blue); box-shadow: 0 0 0 4px var(--wghc-sky); }

.wghc-msg { min-height: 1.4em; margin: 0; font-size: 14px; line-height: 1.4; color: rgba(11, 13, 31, .7); }
.wghc.is-error .wghc-msg { color: #b3261e; }
.wghc.is-error .wghc-input { border-color: #b3261e; }
.wghc.is-error .wghc-input:focus { box-shadow: 0 0 0 4px rgba(179, 38, 30, .15); }

/* Blue (arrow) button preset */
.wghc-btn {
  align-self: flex-start;
  display: inline-flex;
  justify-content: center;
  text-decoration: none;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 22.5px 36px;
  font: 600 17px/1 var(--wghc-body);
  color: var(--wghc-cream);
  background: var(--wghc-blue);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 200ms ease-in-out;
}
.wghc-btn-icon { width: 17px; height: 17px; flex: none; transition: transform 200ms ease-in-out; }
.wghc-btn:hover { background: var(--wghc-navy); }
.wghc-btn:hover .wghc-btn-icon { transform: translateX(4px); }
.wghc-btn:focus-visible { outline: 3px solid var(--wghc-sky); outline-offset: 3px; }
.wghc-btn[disabled] { cursor: progress; opacity: .75; }
.wghc-btn[aria-busy="true"] .wghc-btn-icon { animation: wghc-nudge 900ms ease-in-out infinite; }
@keyframes wghc-nudge { 50% { transform: translateX(4px); } }

.wghc-note { margin: -16px 0 0; font-size: 14px; line-height: 1.5; color: rgba(11, 13, 31, .6); }

/* breakpoints match Breakdance: tablet landscape 1119, tablet portrait 1023, phone landscape 767, phone portrait 479 */
@media (max-width: 1119px) { .wghc-card { padding: 48px; } }
@media (max-width: 767px) {
  .wghc-card { padding: 32px 24px; }
  .wghc-form, .wghc-done { gap: 32px; }
  .wghc-intro { font-size: 16px; }
  .wghc-input { height: 60px; font-size: 18px; padding: 0 20px; }
}
@media (max-width: 479px) {
  .wghc-btn { align-self: stretch; justify-content: center; padding: 21px 24px; font-size: 16px; white-space: nowrap; }
  .wghc-actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .wghc-btn, .wghc-btn-icon, .wghc-input { transition: none; }
  .wghc-done { animation: none; }
  .wghc-btn[aria-busy="true"] .wghc-btn-icon { animation: none; }
}
