/* America.co /apply — Clean, focused application form & ecosystem links */
:root {
  --ap-ink: #081122;
  --ap-navy: #0e1b33;
  --ap-surface: #132340;
  --ap-paper: #fcfaf5;
  --ap-red: #e62020;
  --ap-red-hover: #c91818;
  --ap-gold: #e2c68a;
  --ap-blue: #1e3a8a;
  --ap-line-dark: rgba(255, 255, 255, 0.12);
  --ap-line-light: rgba(10, 20, 40, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background:
    radial-gradient(ellipse 72% 55% at 82% 8%, rgba(44, 92, 184, 0.28), transparent 65%),
    radial-gradient(ellipse 50% 45% at 10% 88%, rgba(230, 32, 32, 0.13), transparent 65%),
    linear-gradient(180deg, #070f20 0%, #0b162c 100%);
  color: #f3f6fb;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--ap-gold);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -100px;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: #fff;
  color: var(--ap-ink);
  font-weight: 800;
  font-size: 0.8rem;
  text-decoration: none;
  border: 2px solid var(--ap-ink);
  border-radius: 6px;
}
.skip-link:focus { top: 1rem; }

/* Initial SSR nav fallback (upgraded automatically by site-nav.js) */
.hub-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1rem, 2.2vw, 2.25rem);
  background: rgba(8, 17, 34, 0.96);
  border-bottom: 1px solid var(--ap-line-dark);
  backdrop-filter: blur(14px);
}
.hub-nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.hub-nav-logo img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: #000; }
.hub-nav-logo .wordmark {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 1.12rem;
  letter-spacing: -0.04em;
  line-height: 1;
}
.hub-nav-logo .wordmark .a { color: #ef2929; }
.hub-nav-logo .wordmark .c { color: #79a2f5; }
.hub-nav-links { display: none; align-items: center; gap: 1.3rem; margin-left: auto; }
@media (min-width: 1060px) { .hub-nav-links { display: flex; } }
.hub-nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}
.hub-nav .nav-join {
  background: #ef2929;
  color: #fff;
  padding: 0.72rem 1.15rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.ap-wrap {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.ap-main {
  padding: 112px 0 64px;
}

.ap-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #8da2c2;
  margin-bottom: 22px;
}
.ap-breadcrumbs a { color: #b8c9e3; text-decoration: none; }
.ap-breadcrumbs a:hover { color: #fff; text-decoration: underline; }

.ap-header {
  max-width: 680px;
  margin-bottom: 32px;
}
.ap-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(226, 198, 138, 0.1);
  border: 1px solid rgba(226, 198, 138, 0.34);
  color: var(--ap-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.ap-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ap-red);
}
.ap-header h1 {
  margin: 0 0 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(34px, 4.8vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: #ffffff;
}
.ap-header h1 span { color: #ff5d62; }
.ap-header p {
  margin: 0;
  font-size: clamp(15.5px, 1.3vw, 17.5px);
  line-height: 1.6;
  color: #c5d4ea;
}

/* 2-Column Layout: Clean Form Card + Explore Our Other Places */
.ap-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: start;
}

/* Primary Simple Form Card */
.ap-form-card {
  background: var(--ap-paper);
  color: #0e1a2f;
  border-radius: 18px;
  padding: clamp(24px, 3.2vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 26px 64px rgba(2, 6, 18, 0.55);
}
.ap-form {
  display: grid;
  gap: 20px;
}
.ap-field {
  display: grid;
  gap: 7px;
}
.ap-field label {
  font-size: 14px;
  font-weight: 700;
  color: #101f38;
  letter-spacing: -0.01em;
}
.ap-field label .req {
  color: var(--ap-red);
  margin-left: 3px;
}
.ap-field input,
.ap-field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1.5px solid #c6cedb;
  background: #ffffff;
  color: #0e1a2f;
  font-size: 15.5px;
  line-height: 1.5;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.ap-field input::placeholder,
.ap-field textarea::placeholder {
  color: #707e94;
}
.ap-field input:hover,
.ap-field textarea:hover {
  border-color: #93a2ba;
}
.ap-field input:focus,
.ap-field textarea:focus {
  outline: none;
  border-color: var(--ap-blue);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.14);
}
.ap-field textarea {
  min-height: 112px;
  resize: vertical;
}
.ap-field textarea#a-mission {
  min-height: 92px;
}

.ap-submit {
  width: 100%;
  min-height: 52px;
  padding: 14px 22px;
  border: 0;
  border-radius: 10px;
  background: var(--ap-red);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(230, 32, 32, 0.28);
  transition: background-color 160ms ease, transform 160ms ease;
}
.ap-submit:hover {
  background: var(--ap-red-hover);
  transform: translateY(-1px);
}
.ap-submit:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.ap-status {
  margin: 0;
  min-height: 22px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: #164f3a;
}
.ap-status.is-error { color: #b91c1c; }
.ap-status:empty { display: none; }

.ap-privacy-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: #5b687e;
}
.ap-privacy-note a { color: var(--ap-blue); text-underline-offset: 3px; }

/* Companion Panel: Links to Our Other Places */
.ap-places-card {
  background: linear-gradient(180deg, #132340 0%, #0e1b33 100%);
  border: 1px solid var(--ap-line-dark);
  border-radius: 18px;
  padding: clamp(22px, 2.8vw, 30px);
  box-shadow: 0 22px 54px rgba(2, 6, 18, 0.42);
}
.ap-places-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ap-gold);
  margin: 0 0 6px;
}
.ap-places-card h2 {
  margin: 0 0 6px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #ffffff;
}
.ap-places-intro {
  margin: 0 0 18px;
  font-size: 13.8px;
  line-height: 1.55;
  color: #b5c6df;
}

.ap-places-list {
  display: grid;
  gap: 8px;
}
.ap-place-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.ap-place-link:hover {
  background: rgba(255, 255, 255, 0.095);
  border-color: rgba(226, 198, 138, 0.5);
  transform: translateY(-1px);
}
.ap-place-link strong {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}
.ap-place-link small {
  display: block;
  font-size: 12.5px;
  color: #9fb3d1;
  margin-top: 2px;
  line-height: 1.35;
}
.ap-place-arrow {
  font-size: 16px;
  color: var(--ap-gold);
  flex-shrink: 0;
}

.ap-social-strip {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--ap-line-dark);
}
.ap-social-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8ea4c4;
  margin-bottom: 10px;
}
.ap-social-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ap-social-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e4edf9;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.ap-social-pill:hover {
  background: rgba(226, 198, 138, 0.18);
  border-color: rgba(226, 198, 138, 0.55);
  color: #fff;
}

/* Footer */
.ap-footer {
  border-top: 1px solid var(--ap-line-dark);
  background: #060d1b;
  padding: 28px 0;
  color: #93a7c5;
  font-size: 12.5px;
}
.ap-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}
.ap-footer-brand {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.04em;
  text-decoration: none;
}
.ap-footer-brand .a { color: #ef2929; }
.ap-footer-brand .c { color: #79a2f5; }
.ap-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}
.ap-footer-links a {
  color: #bfd0e8;
  text-decoration: none;
  font-weight: 500;
}
.ap-footer-links a:hover { color: #fff; text-decoration: underline; }

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

@media (max-width: 600px) {
  .ap-wrap { width: calc(100% - 32px); }
  .ap-main { padding: 88px 0 44px; }
  .ap-header { margin-bottom: 22px; }
  .ap-header h1 { font-size: 34px; }
  .ap-form-card { padding: 22px 18px; }
  .ap-field input, .ap-field textarea { font-size: 16px; }
  .ap-places-card { padding: 20px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
