/* =========================================================================
   Stringer Performance — Application Page
   Stylesheet

   Brand tokens live in the ":root" block below and are kept in sync with
   the homepage stylesheet (../../styles.css) so both pages match.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Design tokens (colors, spacing, font)
   ------------------------------------------------------------------------- */
:root {
  /* Brand */
  --color-bg: #f5f5f4;          /* page background (soft off-white) */
  --color-surface: #ffffff;     /* cards / form background */
  --color-text: #1c1c1c;        /* main text */
  --color-muted: #5f5f5f;       /* help text, captions */
  --color-border: #d9d9d6;      /* input + card borders */
  --color-accent: #22ee09;      /* Stringer green (matches the logo mark) */
  --color-accent-hover: #1cc908;
  --color-accent-text: #06140a; /* near-black text on top of the green */
  --color-focus: #4a90d9;       /* focus outline (accessibility) */
  --color-required: #c0392b;    /* the red asterisk on required fields */

  /* Dark header, same as the homepage */
  --color-dark: #0b0b0b;
  --color-dark-border: #2a2a2a;
  --color-dark-text: #ffffff;

  /* Layout */
  --max-width: 720px;           /* comfortable reading width */
  --radius: 12px;               /* rounded corners */
  --gap: 1.5rem;                /* default vertical spacing */

  /* Font — system stack, same as the homepage. No downloads, renders
     instantly on every device. */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

/* -------------------------------------------------------------------------
   2. Base / reset
   ------------------------------------------------------------------------- */
* {
  box-sizing: border-box; /* padding + border count inside the width */
}

html {
  scroll-behavior: smooth; /* smooth scroll when "Apply" jumps to the form */
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* A reusable centered container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem; /* side padding so text never touches phone edges */
}

/* -------------------------------------------------------------------------
   3. Header — dark bar, matches the homepage header
   ------------------------------------------------------------------------- */
.site-header {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--color-dark-border);
  background-color: var(--color-dark);
  color: var(--color-dark-text);
}

/* Logo mark + wordmark on the left, "Back to home" link on the right */
.header-inner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
}

.logo-mark {
  height: 36px;
  width: auto;
  display: block;
}

.site-header .wordmark {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Pushes the home link to the far right */
.header-back {
  margin-left: auto;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: #b0b0ab;
}

.header-back:hover {
  color: var(--color-accent);
}

/* Visible focus state for keyboard users */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Small uppercase eyebrow label, same treatment as the homepage */
.eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #0f7a04; /* dark green — 5.5:1 on the light background (AA) */
}

/* -------------------------------------------------------------------------
   4. Hero section
   ------------------------------------------------------------------------- */
.hero {
  padding: 4rem 0 1.5rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem); /* scales with screen size */
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 1rem;
}

/* One accent-colored word in the headline, same move as the homepage */
.hero h1 .accent {
  color: #0f7a04;
}

.hero p {
  font-size: 1.1rem;
  color: var(--color-muted);
  max-width: 60ch;      /* wide enough to read as two lines on desktop */
  margin: 0 auto;
}

/* -------------------------------------------------------------------------
   5. Buttons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-accent-text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn:hover {
  background-color: var(--color-accent-hover);
}

.btn-full {
  width: 100%; /* full-width submit button */
}

/* Submit button — inherits the brand green from .btn above */
.btn-submit {
  font-size: 1.05rem;
  padding: 1rem 1.75rem;
}

/* -------------------------------------------------------------------------
   6. "What you get" / "Who it's for" section
   ------------------------------------------------------------------------- */
.section {
  padding: 1rem 0 3rem;
}

.section h2 {
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  margin: 0 0 1.5rem;
  text-align: center;
}

/* A list of the things the coaching builds */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.feature-list li {
  position: relative;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent); /* brand green edge */
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}

.feature-list li strong {
  display: block;
  margin-bottom: 0.15rem;
}

.feature-list li span {
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* "Who this is for" small note */
.who-note {
  text-align: center;
  color: var(--color-muted);
  max-width: 46ch;
  margin: 1.75rem auto 0;
}

/* -------------------------------------------------------------------------
   7. Application form
   ------------------------------------------------------------------------- */
.form-section {
  padding: 3rem 0 4rem;
}

.form-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}

/* Bold instruction title at the top of the form */
.form-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
}

.form-intro {
  color: var(--color-muted);
  margin: 0 0 1.75rem;
}

/* Each question block */
.field {
  margin-bottom: 1.5rem;
}

/* The question label */
.field > label,
.field legend {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

/* Red asterisk for required questions */
.required {
  color: var(--color-required);
  margin-left: 2px;
}

/* Small helper text under a label */
.help {
  display: block;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

/* Text inputs, email, tel, textarea, and the dropdown */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.7rem 0.8rem;
}

textarea {
  min-height: 110px;
  resize: vertical; /* let users drag taller, not wider */
}

/* Clear, visible focus state (good for accessibility) */
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--color-focus);
  outline-offset: 1px;
  border-color: var(--color-focus);
}

/* Radio button groups */
fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

.radio-option {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.5rem 0;
  font-weight: 400;
  cursor: pointer;
}

.radio-option input {
  margin-top: 0.25rem;
}

/* Honeypot field — hidden from real users, used to catch spam bots */
.hidden-field {
  display: none;
}

/* -------------------------------------------------------------------------
   8. Footer
   ------------------------------------------------------------------------- */
.site-footer {
  padding: 2.25rem 0;
  text-align: center;
  color: #b0b0ab;
  font-size: 0.9rem;
  border-top: 1px solid var(--color-dark-border);
  background-color: var(--color-dark);
}

.site-footer p {
  margin: 0 0 0.5rem;
}

.site-footer a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* -------------------------------------------------------------------------
   9. Thank-you page
   ------------------------------------------------------------------------- */
.thankyou {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 0;
}

.thankyou h1 {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  margin: 0 0 1rem;
}

.thankyou p {
  font-size: 1.1rem;
  color: var(--color-muted);
  max-width: 44ch;
  margin: 0 auto 1.5rem;
}

/* -------------------------------------------------------------------------
   10. Small-screen tweaks (phones)
   ------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .hero {
    padding: 3rem 0 2rem;
  }

  .form-card {
    padding: 1.25rem 1rem;
  }
}
