/* Premium application page. Builds on styles.css */
[hidden] { display: none !important; }
.apply-navlinks { position: static !important; display: flex !important; flex-direction: row !important; background: none !important; border: 0 !important; }
.apply-navlinks a { padding: 0 !important; border: 0 !important; }

.apply { padding: 56px 0 88px; }
.apply-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.apply-side { position: sticky; top: 96px; }
.apply-side h1 { font-family: var(--disp); font-size: clamp(36px, 4.6vw, 54px); line-height: 1.04; letter-spacing: -1.4px; margin-bottom: 16px; }
.apply-side .lead { font-size: 17px; }
.apply-steps { list-style: none; counter-reset: a; margin: 28px 0; border-left: 2px solid var(--line); }
.apply-steps li { counter-increment: a; position: relative; padding: 10px 0 10px 44px; }
.apply-steps li::before { content: counter(a); position: absolute; left: -15px; top: 10px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 13px var(--mono); color: #fff; background: var(--accent); box-shadow: 0 0 0 4px var(--bg); }
.apply-steps b { display: block; font-family: var(--disp); font-size: 17px; }
.apply-steps span { color: var(--ink-dim); font-size: 14px; }
.apply-price { border: 1px solid rgba(30,139,255,.45); border-radius: 14px; padding: 18px 20px; background: linear-gradient(180deg, var(--panel-hi), var(--panel)); margin-bottom: 18px; }
.price-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.price-row:first-of-type { border-top: 0; padding-top: 2px; }
.price-row b { display: block; font-family: var(--disp); font-size: 16px; }
.price-row span { font-size: 13px; color: var(--ink-dim); }
.price { font: 700 24px var(--disp); color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price small { font: 500 13px var(--body); color: var(--ink-dim); margin-left: 3px; }
.price-row.founding .price { color: var(--accent); }
.price-note { font-size: 12px; color: var(--ink-dim); margin-top: 6px; }
.apply-what { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px 4px; background: var(--panel-2); margin-bottom: 18px; }

.apply-card { background: linear-gradient(180deg, var(--panel-hi), var(--panel) 40%); border: 1px solid rgba(30,139,255,.45); border-radius: 20px; padding: 30px; box-shadow: 0 30px 80px rgba(10,60,180,.35); }
.apply-progress { height: 6px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--line); overflow: hidden; }
.apply-progress span { display: block; height: 100%; width: 33%; background: linear-gradient(90deg, var(--accent), #6cb6ff); transition: width .4s var(--ease); }
.apply-count { font: 600 12px var(--mono); letter-spacing: 1px; color: var(--ink-dim); margin: 10px 0 18px; text-transform: uppercase; }
.hp { position: absolute; left: -9999px; }

.step { display: none; border: 0; min-width: 0; }
.step.on { display: block; animation: slideIn .3s var(--ease); }
@keyframes slideIn { from { transform: translateY(8px); } to { transform: none; } }
.step legend { font-family: var(--disp); font-size: 26px; font-weight: 700; letter-spacing: -.5px; margin-bottom: 18px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f-field { margin-bottom: 20px; }
.f-field > label, .f-label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.f-label em { font-style: normal; font-weight: 500; color: var(--ink-dim); margin-left: 6px; font-size: 13px; }
/* 16px: iPhone and iPad Safari zoom into any field with smaller text when it's tapped. */
.f-field input, .f-field select, .f-field textarea { width: 100%; font: 400 16px var(--body); color: var(--ink); background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
.f-field textarea { resize: vertical; min-height: 90px; }
.f-field input:focus, .f-field select:focus, .f-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.f-field ::placeholder { color: #5b6a92; }
.f-field .bad, .chips.bad .chip span { border-color: #ff6b6b !important; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; font-size: 14px; font-weight: 500; color: var(--silver); padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); transition: background .2s, border-color .2s, color .2s, transform .15s; user-select: none; }
.chip:hover span { border-color: rgba(30,139,255,.6); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(30,139,255,.3); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip:active span { transform: scale(.97); }

.consent { display: grid; gap: 12px; margin-top: 6px; }
/* Google reCAPTCHA box (Netlify adds it on the live site); the reserved height stops the buttons jumping */
.captcha { margin-top: 18px; min-height: 78px; }
.captcha:empty { min-height: 0; margin: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-dim); cursor: pointer; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.check.bad { border-color: #ff6b6b; }

.f-error { min-height: 20px; color: #ff8a8a; font-size: 14px; margin: 4px 0 10px; }
.f-nav { display: flex; gap: 12px; justify-content: space-between; }
.f-nav .btn-primary { margin-left: auto; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.apply-done { text-align: center; padding: 30px 10px; animation: fadeIn .4s var(--ease); }
.apply-done .lead { margin: 0 auto; }
.apply-done .ctas { justify-content: center; }
.done-mark { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; color: #fff; background: var(--green); box-shadow: 0 0 0 8px rgba(61,220,151,.15); }

@media (max-width: 960px) {
  .apply-grid { grid-template-columns: 1fr; gap: 36px; }
  .apply-side { position: static; }
}
@media (max-width: 720px) {
  .apply { padding: 32px 0 64px; }
  .apply-card { padding: 20px; }
  .f-row { grid-template-columns: 1fr; gap: 0; }
  .f-nav .btn { width: auto; }
  body { padding-bottom: 0; }
}

/* Keep the application and pricing readable on narrow phones. */
.apply-grid > * { min-width: 0; }
@media (max-width: 420px) {
  .apply-grid { grid-template-columns: minmax(0, 1fr); }
  .price-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .price { white-space: normal; }
}
