/* ---------------------------------------------
   APA™ Champions Program — Application page
   Enqueued by page-champions-application.php
   --------------------------------------------- */
:root {
  --apa-green: #1c5c3f;
  --apa-green-mid: #2a7350;
  --apa-gold: #c9a227;
  --apa-grey: #5b6b74;
  --apa-ink: #2b2f31;
  --apa-line: #d9dcdb;
  --apa-card-bg: #eef2f0;
}

.champ-page * {
  box-sizing: border-box;
}

.champ-page {
  color: var(--apa-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

.champ-wrap {
  max-width: 70rem; /* ~1120px, matches the other APA templates */
  margin: 0 auto;
  padding: 3rem 1rem 4rem;
}

/* ---------- Page header ---------- */
.champ-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--apa-green);
  line-height: 1.3;
}

@media (min-width: 640px) {
  .champ-title {
    font-size: 1.875rem;
  }
}

.champ-title-bar {
  margin-top: 0.6rem;
  width: 3.5rem;
  height: 4px;
  background: var(--apa-gold);
}

.champ-subtitle {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--apa-grey);
  /* max-width: 46rem; */
}

/* ---------- "Create your account" callout ---------- */
.champ-account-box {
  margin-top: 2rem;
  background: var(--apa-card-bg);
  border-left: 5px solid var(--apa-gold);
  padding: 1.25rem 1.5rem;
  border-top: 1px solid #d9e2df;
  border-right: 1px solid #d9e2df;
  border-bottom: 1px solid #d9e2df;
  border-radius: 4px;
}

.champ-account-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--apa-ink);
}

.champ-account-text strong {
  color: var(--apa-green);
  font-weight: 700;
}

.champ-account-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.champ-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.champ-btn--primary {
  background: var(--apa-green);
  color: #ffffff;
}

.champ-btn--primary:hover {
  background: var(--apa-green-mid);
  color: #ffffff;
}

.champ-btn--secondary {
  background: #ffffff;
  color: var(--apa-green);
  border-color: var(--apa-green);
}

.champ-btn--secondary:hover {
  background: var(--apa-card-bg);
}

/* ---------- WPForms slot ---------- */
.champ-form-slot {
  margin-top: 2.5rem;
}

.champ-form-slot button, .champ-form-slot input[type="submit"]
{
  background: var(--apa-green);
    color: #ffffff;
    border: none;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 0.25rem;
    cursor: pointer;
    text-transform: capitalize;
    letter-spacing: 1px;
}

.champ-form-slot input[type="text"],
.champ-form-slot select,
.champ-form-slot textarea,
.champ-form-slot input[type="url"],
.champ-form-slot input[type="email"],
.champ-form-slot input[type="tel"],
.champ-form-slot input[type="number"]{
  border: 1px solid #d9e2df;
  background: #ffffff;
  border-radius: 5px;
}
.champ-form-placeholder {
  border: 1px dashed var(--apa-line);
  border-radius: 0.25rem;
  padding: 2.5rem 1rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--apa-grey);
  background: #ffffff;
}

/* =========================================================
   Reusable classes for the section headings you're adding
   via WPForms HTML fields (Personal information, Professional
   profile, APA motivation, Documents (links), Declarations &
   signature, etc.)

   Paste this in an HTML field at the start of each section:

     <h3 class="champ-section-heading">Personal information</h3>

   Add the modifier class on the very first section heading in
   the form (the one right after the account box) if you want
   slightly less top spacing:

     <h3 class="champ-section-heading champ-section-heading--first">Personal information</h3>

   For small helper/note text under a heading (e.g. the motivation
   word counter or the documents upload note), wrap it like:

     <p class="champ-note">Total motivation budget: 0/1000 words</p>
   ========================================================= */

.gab-section-heading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1rem 0 0 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--apa-green);
  line-height: 1.3;
}

.gab-section-heading::before {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  width: 1.25rem;
  height: 3px;
  background: var(--apa-gold);
}

.gab-section-heading--first {
  margin-top: 1rem;
}

.gab-note {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--apa-grey);
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 480px) {
  .champ-wrap {
    padding: 2rem 1rem 3rem;
  }

  .champ-account-box {
    padding: 1rem 1.125rem;
  }

  .champ-account-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .champ-btn {
    width: 100%;
  }

  .champ-section-heading {
    font-size: 1rem;
  }
}
