/* =============================================================================
   FDC Academy — Brand v3 (matches main website energy)
   =============================================================================
   Single source of truth for portal styling. To rebrand:
   - Edit CSS variables in :root
   - Replace /logo.png in pb_public
   ============================================================================= */

:root {
  /* Brand colours — pulled from the FDC website */
  --navy: #343593;
  --navy-dark: #292B6B;
  --cyan: #00BFFF;
  --cyan-dark: #0094C7;
  --yellow: #FFD100;
  --yellow-dark: #E5BC00;
  --light-blue: #B6E1F2;

  /* Surfaces */
  --bg: #FFFFFF;
  --surface-soft: #F4FBFE;

  /* Text */
  --ink: #1A1A2E;
  --ink-muted: #5A5A6E;
  --ink-on-navy: #FFFFFF;
  --ink-on-cyan: #FFFFFF;

  /* Borders */
  --border: #D9E5EC;
  --border-strong: #B3C5D1;

  /* Status */
  --error: #B00020;
  --error-bg: #FDECEA;

  /* Layout */
  --radius: 4px;

  /* Motion */
  --transition: 180ms cubic-bezier(0.2, 0, 0.2, 1);

  /* Type */
  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-sans: 'Inter Tight', system-ui, -apple-system, sans-serif;
}

/* =============================================================================
   Reset
   ============================================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }

/* =============================================================================
   Logo band — navy with logo (matches website hero)
   ============================================================================= */
.logo-band {
  background: var(--navy);
  padding: 32px 24px 28px;
  text-align: center;
}
.logo-band img {
  height: 110px;
  width: auto;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .logo-band {
    padding: 40px 32px 36px;
  }
  .logo-band img {
    height: 160px;
  }
}

/* =============================================================================
   Cyan strip — like the website's nav bar
   ============================================================================= */
.cyan-strip {
  background: var(--cyan);
  color: var(--ink-on-cyan);
  padding: 18px 24px;
  text-align: center;
}
.cyan-strip .strip-inner {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}
@media (min-width: 768px) {
  .cyan-strip { padding: 22px 32px; }
  .cyan-strip .strip-inner { font-size: 28px; }
}

/* =============================================================================
   Curved separator — light blue half-circle (matches website)
   ============================================================================= */
.curve-separator {
  position: relative;
  height: 80px;
  background: var(--bg);
  overflow: hidden;
}
.curve-separator::before {
  content: '';
  position: absolute;
  top: 0;
  left: -10%;
  right: -10%;
  height: 160px;
  background: var(--light-blue);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

/* =============================================================================
   Light blue feature band (used for hero copy)
   ============================================================================= */
.feature-band {
  background: var(--light-blue);
  padding: 0 24px 80px;
  text-align: center;
}
.feature-band-inner {
  max-width: 800px;
  margin: 0 auto;
}
.feature-eyebrow {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
}
.feature-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 72px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 20px;
}
.feature-lede {
  font-size: 18px;
  line-height: 1.5;
  color: var(--navy);
  max-width: 560px;
  margin: 0 auto;
  font-weight: 500;
}
@media (min-width: 768px) {
  .feature-band { padding: 0 32px 96px; }
  .feature-lede { font-size: 20px; }
}

/* =============================================================================
   Form shell — white background
   ============================================================================= */
.shell {
  background: var(--bg);
}
.shell-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
@media (min-width: 768px) {
  .shell-inner { padding: 80px 32px 120px; }
}

/* =============================================================================
   Numbered sections
   ============================================================================= */
.section { margin-bottom: 56px; }
.section:last-child { margin-bottom: 0; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 28px;
  border-bottom: 3px solid var(--cyan);
}
.section-num {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--cyan);
}
.section-title {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--navy);
}
@media (min-width: 768px) {
  .section-num { font-size: 26px; }
  .section-title { font-size: 36px; }
}

/* =============================================================================
   Forms
   ============================================================================= */
.field { margin-bottom: 22px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 540px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

label {
  display: block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}
label .req { color: var(--cyan); margin-left: 2px; font-weight: 700; }
label .opt {
  font-weight: 400;
  color: var(--ink-muted);
  margin-left: 6px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
input:hover:not(:focus), select:hover:not(:focus), textarea:hover:not(:focus) {
  border-color: var(--navy);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.25);
}

textarea {
  resize: vertical;
  min-height: 110px;
  font-family: var(--font-sans);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23343593' stroke-width='2' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

.help {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 6px;
}

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

/* =============================================================================
   Consent block
   ============================================================================= */
.consent {
  background: var(--surface-soft);
  border: 2px solid var(--cyan);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.consent-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--navy);
  cursor: pointer;
  flex-shrink: 0;
}
.consent-row label {
  font-family: var(--font-sans);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 0;
  color: var(--ink);
}
.consent a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* =============================================================================
   Buttons — yellow CTA (matches website's active highlight)
   ============================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--yellow);
  color: var(--navy);
  border: none;
  border-radius: var(--radius);
  padding: 22px 40px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}
.btn::after {
  content: '→';
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 22px;
  transition: transform var(--transition);
}
.btn:hover:not(:disabled) {
  background: var(--yellow-dark);
  color: var(--navy);
}
.btn:hover:not(:disabled)::after {
  transform: translateX(5px);
}
.btn:active:not(:disabled) {
  transform: translateY(1px);
}
.btn:disabled {
  background: var(--border-strong);
  color: var(--ink-muted);
  cursor: wait;
}
.btn-block {
  width: 100%;
  padding: 26px 40px;
}

/* =============================================================================
   Status messages
   ============================================================================= */
.status {
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  display: none;
  border-left: 4px solid;
}
.status.error {
  background: var(--error-bg);
  color: var(--error);
  border-left-color: var(--error);
  display: block;
}

/* =============================================================================
   Footer band — navy with cyan top stripe
   ============================================================================= */
.brand-footer {
  background: var(--navy);
  color: var(--ink-on-navy);
  padding: 56px 24px 48px;
  border-top: 6px solid var(--cyan);
}
.brand-footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  font-size: 14px;
}
@media (min-width: 768px) {
  .brand-footer { padding: 64px 32px 56px; }
  .brand-footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
  }
}
.brand-footer h4 {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.brand-footer p { margin-bottom: 6px; line-height: 1.55; opacity: 0.9; }
.brand-footer a {
  color: var(--ink-on-navy);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: border-color var(--transition);
}
.brand-footer a:hover { border-bottom-color: var(--yellow); }
.brand-footer .footer-tag {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-on-navy);
  line-height: 1.05;
  margin-bottom: 14px;
}
.brand-footer .footer-tag span { color: var(--yellow); }
