/* assets/partner-apply.css — Partner application funnel styles
 *
 * Built to match the marketing site (elitefunders.com) brand exactly:
 * Bricolage Grotesque headings, DM Sans body, navy + blue palette.
 * Inherits :root tokens from the main site (--ink, --blue, --off, --fh, --fb).
 *
 * Layout: hero strip (dark navy with stats) → form shell (white card on
 * off-white background). Multi-step UX: only one [data-step] is visible at
 * a time, toggled via JS by adding data-active="true".
 *
 * 2026-05-17  Initial — built for elitefunders.com native funnel.
 */

/* ─── Hero ─────────────────────────────────────────────────────────── */
.pa-main { background: var(--off, #f5f8fc); }
.pa-hero { background: linear-gradient(180deg, #070E1C 0%, #0E1A30 100%); padding: 96px 24px 64px; color: #fff; }
.pa-hero-inner { max-width: 1080px; margin: 0 auto; text-align: center; }
.pa-hero-eyebrow { font-family: var(--fb, sans-serif); font-size: 12px; font-weight: 600; letter-spacing: .12em; color: #5B9BFF; text-transform: uppercase; margin-bottom: 18px; }
.pa-hero-h1 { font-family: var(--fh, sans-serif); font-weight: 700; font-size: clamp(36px, 5.5vw, 64px); line-height: 1.06; letter-spacing: -.025em; margin: 0 0 22px; }
.pa-hero-accent { color: #fff; }
.pa-hero-sub { font-family: var(--fb, sans-serif); font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.72); max-width: 640px; margin: 0 auto 44px; }
.pa-hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; max-width: 880px; margin: 0 auto; }
.pa-stat { text-align: center; }
.pa-stat-n { font-family: var(--fh, sans-serif); font-weight: 700; font-size: 32px; color: #5B9BFF; line-height: 1; margin-bottom: 8px; }
.pa-stat-l { font-size: 11.5px; font-weight: 500; color: rgba(255,255,255,.55); letter-spacing: .04em; text-transform: uppercase; }

@media (max-width: 640px) {
  .pa-hero { padding: 64px 20px 48px; }
  .pa-hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .pa-stat-n { font-size: 26px; }
}

/* ─── Form shell ──────────────────────────────────────────────────── */
.pa-form-wrap { padding: 56px 20px 96px; }
.pa-form-shell { max-width: 880px; margin: 0 auto; background: #fff; border-radius: 18px; border: 1px solid #e7ecf3; box-shadow: 0 4px 24px rgba(7,14,28,.06), 0 16px 48px rgba(7,14,28,.04); overflow: hidden; }

/* ─── Steps (only one visible at a time) ──────────────────────────── */
.pa-step { display: none; padding: 44px 44px 36px; }
.pa-step[data-active="true"] { display: block; }
@media (max-width: 640px) { .pa-step { padding: 32px 22px 28px; } }

.pa-eyebrow { font-family: var(--fb); font-size: 11px; font-weight: 700; letter-spacing: .12em; color: #1549C8; text-transform: uppercase; margin-bottom: 14px; }
.pa-h2 { font-family: var(--fh); font-weight: 700; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -.02em; color: var(--ink, #070E1C); margin: 0 0 12px; }
.pa-sub { font-family: var(--fb); font-size: 15.5px; line-height: 1.6; color: #4b5b78; margin: 0 0 28px; max-width: 600px; }
.pa-fine { font-size: 12px; color: #6b7a93; line-height: 1.6; margin-top: 18px; }
.pa-fine a { color: #1549C8; }

/* ─── Progress bar ────────────────────────────────────────────────── */
.pa-progress { position: relative; padding: 28px 44px 0; }
.pa-progress[data-progress="hidden"] { display: none; }
@media (max-width: 640px) { .pa-progress { padding: 24px 22px 0; } }
.pa-progress-track { position: absolute; left: 88px; right: 88px; top: 50px; height: 2px; background: #e7ecf3; border-radius: 2px; }
.pa-progress-fill { position: absolute; left: 88px; top: 50px; height: 2px; background: linear-gradient(90deg, #1549C8 0%, #5B9BFF 100%); border-radius: 2px; transition: width .3s ease; }
.pa-progress-dots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; max-width: 600px; margin: 0 auto; position: relative; }
.pa-dot { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pa-dot span { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid #e7ecf3; font-family: var(--fb); font-size: 12px; font-weight: 700; color: #94a3b8; transition: all .25s ease; position: relative; z-index: 1; }
.pa-dot[data-state="current"] span { background: var(--ink); color: #fff; border-color: var(--ink); }
.pa-dot[data-state="done"] span { background: #1549C8; color: #fff; border-color: #1549C8; }
.pa-dot label { font-family: var(--fb); font-size: 11px; color: #94a3b8; letter-spacing: .02em; }
.pa-dot[data-state="current"] label, .pa-dot[data-state="done"] label { color: var(--ink); font-weight: 500; }
@media (max-width: 520px) { .pa-dot label { display: none; } .pa-progress-track, .pa-progress-fill { left: 64px; right: 64px; } }

/* ─── Type picker cards (v3 — real buttons, raised, colored borders) ─── */
.pa-type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 8px; }
@media (max-width: 640px) { .pa-type-grid { grid-template-columns: 1fr; } }

.pa-type-card {
  display: block;
  text-align: left;
  width: 100%;
  padding: 30px 26px;
  border-radius: 14px;
  background: #ffffff;
  cursor: pointer;
  font-family: var(--fb);
  color: var(--ink, #070E1C);
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  transition: transform .15s ease, box-shadow .15s ease;
}

/* ISO: blue accent border + always-on raised shadow */
.pa-type-iso { border: 2.5px solid #1549C8; box-shadow: 0 1px 0 rgba(21,73,200,.4), 0 4px 12px rgba(7,14,28,.08), 0 1px 3px rgba(7,14,28,.06); }
.pa-type-iso:hover, .pa-type-iso:focus-visible { transform: translateY(-3px); box-shadow: 0 4px 0 rgba(21,73,200,.5), 0 14px 32px rgba(21,73,200,.18), 0 2px 6px rgba(7,14,28,.08); }

/* Affiliate: green accent border + always-on raised shadow */
.pa-type-aff { border: 2.5px solid #00A878; box-shadow: 0 1px 0 rgba(0,168,120,.4), 0 4px 12px rgba(7,14,28,.08), 0 1px 3px rgba(7,14,28,.06); }
.pa-type-aff:hover, .pa-type-aff:focus-visible { transform: translateY(-3px); box-shadow: 0 4px 0 rgba(0,168,120,.5), 0 14px 32px rgba(0,168,120,.18), 0 2px 6px rgba(7,14,28,.08); }

/* Press-down feedback on click — feels like a real button */
.pa-type-iso:active, .pa-type-aff:active { transform: translateY(0); transition-duration: 0.05s; }

.pa-type-badge { display: inline-block; padding: 6px 12px; border-radius: 6px; font-family: var(--fb); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #ffffff; margin-bottom: 22px; }
.pa-type-iso .pa-type-badge { background: #1549C8; }
.pa-type-aff .pa-type-badge { background: #00A878; }

.pa-type-amt { font-family: var(--fh); font-size: 30px; font-weight: 700; line-height: 1.1; color: var(--ink, #070E1C); margin-bottom: 4px; }
.pa-type-iso .pa-type-amt strong { color: #1549C8; }
.pa-type-aff .pa-type-amt strong { color: #00A878; }
.pa-type-amt-label { font-family: var(--fb); font-size: 13px; color: #5a6a87; margin-bottom: 22px; }

.pa-type-bullets { list-style: none; padding: 0; margin: 0 0 24px; }
.pa-type-bullets li { font-size: 13.5px; line-height: 1.6; color: #2c3e5a; padding-left: 22px; position: relative; margin-bottom: 8px; }
.pa-type-bullets li::before { content: "\2713"; position: absolute; left: 0; top: 0; font-weight: 700; font-size: 14px; }
.pa-type-iso .pa-type-bullets li::before { color: #1549C8; }
.pa-type-aff .pa-type-bullets li::before { color: #00A878; }

.pa-type-cta { font-family: var(--fb); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; padding-top: 14px; border-top: 1px solid #f0f3f8; margin-top: 4px; }
.pa-type-iso .pa-type-cta { color: #1549C8; }
.pa-type-aff .pa-type-cta { color: #00A878; }
.pa-type-cta .arr { transition: transform .15s ease; display: inline-block; }
.pa-type-card:hover .arr { transform: translateX(3px); }

/* ─── Form fields ─────────────────────────────────────────────────── */
.pa-card { background: #fff; }
.pa-field { display: block; margin-bottom: 18px; }
.pa-lbl { display: block; font-family: var(--fb); font-size: 12.5px; font-weight: 500; color: #334155; letter-spacing: .01em; margin-bottom: 7px; }
.pa-req::after { content: " *"; color: #dc2626; }

.pa-input, .pa-textarea { width: 100%; padding: 13px 14px; border: 1.5px solid #d6dde9; border-radius: 10px; font-family: var(--fb); font-size: 15px; color: var(--ink); background: #fff; transition: border-color .15s ease, box-shadow .15s ease; outline: none; -webkit-appearance: none; appearance: none; box-sizing: border-box; }
.pa-input::placeholder, .pa-textarea::placeholder { color: #94a3b8; }
.pa-input:focus, .pa-textarea:focus { border-color: #1549C8; box-shadow: 0 0 0 4px rgba(21,73,200,.08); }
.pa-textarea { resize: vertical; min-height: 80px; font-family: var(--fb); }
.pa-select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%2364748b' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 36px; }

.pa-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pa-grid3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .pa-grid2, .pa-grid3 { grid-template-columns: 1fr; } }

/* ─── Buttons ─────────────────────────────────────────────────────── */
.pa-btns { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 24px; }
.pa-btn-primary { background: var(--ink); color: #fff; font-family: var(--fb); font-weight: 600; font-size: 15px; padding: 14px 28px; border: none; border-radius: 10px; cursor: pointer; transition: background .15s ease, transform .1s ease; }
.pa-btn-primary:hover { background: #0E1A30; }
.pa-btn-primary:active { transform: scale(.98); }
.pa-btn-primary:disabled { opacity: .55; cursor: not-allowed; }
.pa-btn-ghost { background: transparent; color: #64748b; font-family: var(--fb); font-weight: 500; font-size: 13.5px; padding: 12px 16px; border: none; cursor: pointer; transition: color .15s ease; }
.pa-btn-ghost:hover { color: var(--ink); }

/* ─── Errors ──────────────────────────────────────────────────────── */
.pa-err { display: none; padding: 12px 14px; background: #fee2e2; border: 1px solid #fca5a5; border-radius: 8px; color: #991b1b; font-size: 13.5px; line-height: 1.5; margin-top: 8px; }
.pa-err[data-shown] { display: block; }

/* ─── Review section ──────────────────────────────────────────────── */
.pa-review-group { padding: 16px 0; border-bottom: 1px solid #e7ecf3; }
.pa-review-group:last-child { border-bottom: none; }
.pa-review-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.pa-review-title { font-family: var(--fb); font-size: 12px; font-weight: 600; color: #64748b; letter-spacing: .08em; text-transform: uppercase; }
.pa-review-edit { font-family: var(--fb); font-size: 12.5px; font-weight: 500; color: #1549C8; background: none; border: none; cursor: pointer; padding: 0; }
.pa-review-edit:hover { text-decoration: underline; }
.pa-review-row { display: flex; gap: 16px; padding: 4px 0; font-size: 14px; line-height: 1.55; }
.pa-review-key { color: #64748b; min-width: 140px; flex-shrink: 0; }
.pa-review-val { color: var(--ink); flex: 1; word-break: break-word; }
.pa-review-empty { color: #94a3b8; font-style: italic; }

/* ─── Done state ──────────────────────────────────────────────────── */
.pa-done { text-align: center; padding: 24px 0 12px; }
.pa-done-icon { width: 80px; height: 80px; border-radius: 50%; background: #E8FDF6; color: #00A878; display: flex; align-items: center; justify-content: center; font-size: 42px; font-weight: 700; margin: 0 auto 24px; }
.pa-done-card { background: #f8fafc; border: 1px solid #e7ecf3; border-radius: 12px; padding: 24px; max-width: 520px; margin: 28px auto 0; text-align: left; }
.pa-done-label { font-family: var(--fb); font-size: 11px; font-weight: 700; color: #64748b; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.pa-done-list { margin: 0; padding-left: 22px; }
.pa-done-list li { font-size: 14px; line-height: 1.7; color: #475569; padding-left: 4px; margin-bottom: 8px; }
.pa-done-list li strong { color: var(--ink); }
.pa-done-fine { text-align: center; max-width: 520px; margin: 28px auto 0; }
