/* ── Dylan Smith — Mentorship application page ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0a0f1e;
  --navy-2:     #101729;
  --navy-3:     #161f36;
  --blue:       #3b82f6;
  --blue-dark:  #2563eb;
  --text:       #ffffff;
  --text-soft:  #cbd5e1;
  --text-muted: #8b98ad;
  --border:     #263049;
  --error:      #f87171;
  --green:      #34d399;
  --radius:     12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main { flex: 1; width: 100%; max-width: 680px; margin: 0 auto; padding: 0 20px; }

.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, transform .15s, box-shadow .15s;
}

.btn:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, .35);
}

.btn-lg { font-size: 1.05rem; padding: 1rem 2.2rem; }

/* ── Header ─────────────────────────────────────── */
.site-header {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 15, 30, .92);
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.5px;
}

.logo span { color: var(--blue); }

/* ── Hero ───────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 64px 0 56px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 640px; height: 420px;
  background: radial-gradient(ellipse, rgba(59, 130, 246, .16) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(59, 130, 246, .12);
  border: 1px solid rgba(59, 130, 246, .35);
  color: #7db2ff;
  padding: .35rem 1rem;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  position: relative;
}

.hero h1 {
  font-size: clamp(1.55rem, 5.5vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -.8px;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  position: relative;
}

.hero h1 .accent { color: var(--blue); }

.hero-sub {
  color: var(--text-soft);
  font-size: clamp(.95rem, 3.2vw, 1.08rem);
  line-height: 1.65;
  max-width: 540px;
  margin: 0 auto 2rem;
  position: relative;
}

/* ── Credibility ────────────────────────────────── */
.cred { padding: 10px 0 46px; }

.stat-blocks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 28px;
}

.stat-block {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
}

.stat-block:nth-child(-n + 2) {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: .5rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: .86rem;
  line-height: 1.5;
}

.cred-copy {
  color: var(--text-soft);
  font-size: .97rem;
  line-height: 1.7;
  border-left: 3px solid var(--blue);
  background: var(--navy-2);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.2rem;
}

/* ── List sections ──────────────────────────────── */
.list-section { padding: 12px 0 44px; }

.list-section h2 {
  font-size: clamp(1.35rem, 4.5vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 1.2rem;
}

.check-list { list-style: none; }

.check-list li {
  color: var(--text-soft);
  font-size: .97rem;
  line-height: 1.55;
  padding: .55rem 0 .55rem 2.1rem;
  position: relative;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: .5rem;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(59, 130, 246, .14);
  border: 1px solid rgba(59, 130, 246, .4);
  color: var(--blue);
  font-weight: 800;
  font-size: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Form ───────────────────────────────────────── */
.form-section {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 26px 38px;
  margin: 8px 0 60px;
  scroll-margin-top: 20px;
}

.form-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: .4rem;
}

.form-sub {
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 1.6rem;
}

.form-error {
  background: rgba(248, 113, 113, .1);
  border: 1px solid rgba(248, 113, 113, .4);
  color: #fca5a5;
  border-radius: 8px;
  padding: .8rem 1rem;
  font-size: .88rem;
  margin-bottom: 1.25rem;
}

.form-error[hidden], .field-error[hidden] { display: none; }

.hp { display: none; }

.field { margin-bottom: 1.15rem; }

.field label {
  display: block;
  font-size: .87rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: .4rem;
  line-height: 1.4;
}

.req { color: var(--blue); }
.optional { color: var(--text-muted); font-weight: 500; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 16px; /* prevents iOS zoom-on-focus */
  padding: .75rem .9rem;
  transition: border-color .15s, box-shadow .15s;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238b98ad' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  padding-right: 2.4rem;
}

.field select:invalid { color: var(--text-muted); }
.field select option { color: var(--text); background: var(--navy-2); }

.field textarea { resize: vertical; min-height: 96px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .18);
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: var(--error); }

.field-error {
  display: block;
  color: var(--error);
  font-size: .8rem;
  margin-top: .35rem;
}

.submit-btn {
  width: 100%;
  font-size: 1.02rem;
  padding: 1rem;
  margin-top: .5rem;
}

.submit-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Thank-you page ─────────────────────────────── */
.thanks-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.thanks-card {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 52px 34px;
  text-align: center;
  max-width: 480px;
  width: 100%;
}

.thanks-check {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: rgba(52, 211, 153, .12);
  border: 1px solid rgba(52, 211, 153, .4);
  color: var(--green);
  font-size: 1.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.4rem;
}

.thanks-card h1 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: .7rem;
}

.thanks-card p { color: var(--text-soft); font-size: .97rem; line-height: 1.65; }

/* ── Footer ─────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 20px;
  text-align: center;
}

.ig-link {
  color: var(--text-soft);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
}

.ig-link:hover { color: var(--blue); }

.site-footer p { color: var(--text-muted); font-size: .8rem; margin-top: .5rem; }

/* ── Larger screens ─────────────────────────────── */
@media (min-width: 640px) {
  .stat-blocks { grid-template-columns: repeat(3, 1fr); }
  .form-section { padding: 40px 38px 44px; }
  .hero { padding-top: 80px; }
}
