/* PQPlus — application flow (/apply). Translated from the design's Tailwind classes. */

body.pqp-apply-page { background: var(--hint); }
.apply { min-height: 100vh; background: var(--hint); padding-bottom: 96px; }

/* Minimal header */
.apply-header { background: #fff; border-bottom: 1px solid var(--border); }
.apply-header-inner { align-items: center; display: flex; justify-content: space-between; margin: 0 auto; max-width: 1200px; min-height: 72px; padding: 0 16px; }
.apply-header .logo img { height: 36px; width: 26px; }
.apply-header .logo strong { font-size: 18px; }
.apply-help { align-items: center; color: var(--blue); display: inline-flex; font-size: 14px; font-weight: 600; gap: 6px; min-height: 44px; }

/* Progress */
.apply-progress { background: #fff; border-bottom: 1px solid var(--border); }
.apply-progress-inner { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 auto; max-width: 1200px; padding: 0 16px; }
.apply-progress li { align-items: center; border-bottom: 3px solid transparent; color: var(--muted); display: flex; font-size: 12px; font-weight: 600; gap: 8px; min-height: 64px; }
.apply-progress li.is-on { border-color: var(--blue); color: var(--heading); }
.apply-progress li.is-on .num { color: var(--blue); }
.apply-progress .lbl { display: none; }
.apply-progress .done { color: var(--green); display: none; margin-left: auto; }
.apply-progress .done svg { height: 16px; width: 16px; }

/* Mobile summary bar */
.apply-mobile-summary { background: var(--navy); border-bottom: 1px solid rgba(255, 255, 255, 0.1); color: #fff; position: sticky; top: 0; z-index: 30; }
.admin-bar .apply-mobile-summary { top: 46px; }
.apply-mobile-summary > button { align-items: center; display: flex; font-size: 14px; font-weight: 600; justify-content: space-between; min-height: 56px; padding: 0 16px; text-align: left; width: 100%; }
.apply-mobile-summary-body { border-top: 1px solid rgba(255, 255, 255, 0.1); max-height: 70vh; overflow-y: auto; padding: 24px 20px; }

/* Toast */
.apply-toast { align-items: center; background: #fff; border: 1px solid var(--green-100); border-radius: 10px; box-shadow: 0 10px 25px rgba(6, 22, 46, 0.12); color: var(--green-text); display: flex; font-size: 14px; font-weight: 600; gap: 8px; padding: 12px 16px; position: fixed; right: 16px; top: 96px; z-index: 50; }
.apply-toast .choice-tick { background: transparent; border: 0; color: var(--green); }

/* Layout */
.apply-grid { display: grid; gap: 40px; margin: 0 auto; max-width: 1200px; padding: 40px 16px; }
.apply-aside { display: none; }

/* Typography */
.apply-eyebrow { color: var(--blue); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; margin-bottom: 12px; text-transform: uppercase; }
.apply-step h1 { font-size: 36px; line-height: 1.25; }
.apply-intro { color: var(--body); font-size: 18px; margin-top: 16px; }
.apply-small { color: var(--muted); font-size: 14px; margin-top: 24px; }

/* Alert */
.apply-alert { background: var(--red-50); border: 1px solid var(--red); border-radius: 10px; margin-bottom: 24px; padding: 16px; }
.apply-alert strong { color: var(--red-700); display: block; }
.apply-alert p { color: var(--red-700); font-size: 14px; margin-top: 4px; }
.field-error { align-items: center; color: var(--red-700); display: flex; font-size: 14px; font-weight: 400; gap: 8px; margin-top: 8px; }

/* Choice cards */
.apply-fieldset { margin-top: 40px; }
.apply-fieldset legend, .chip-group legend { color: var(--heading); font-weight: 600; margin-bottom: 16px; }
.choice-grid { display: grid; gap: 12px; }
.choice { align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 16px; cursor: pointer; display: flex; gap: 16px; min-height: 96px; padding: 16px; position: relative; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s; }
.choice:hover { border-color: var(--blue-300); box-shadow: 0 1px 3px rgba(6, 22, 46, 0.08); }
.choice.is-checked { background: var(--blue-50); border: 2px solid var(--blue); padding: 15px; }
.choice.is-disabled { background: var(--hint); cursor: not-allowed; opacity: 0.6; }
.choice.is-disabled:hover { border-color: var(--border); box-shadow: none; }
.choice:focus-within { outline: 3px solid #7ea3ed; outline-offset: 2px; }
.choice-icon svg { height: 24px; width: 24px; }
.choice-title { color: var(--heading); display: block; }
.choice-title.sm { font-size: 14px; }
.choice-note { color: var(--muted); display: block; font-size: 14px; }
.choice-note.xs { font-size: 12px; margin-top: 4px; }
.choice-badge { background: var(--hint); border-radius: 6px; color: var(--body); display: inline-block; font-size: 12px; font-weight: 600; margin-top: 8px; padding: 4px 8px; }
.choice-tick { align-items: center; border: 1px solid var(--border-strong); border-radius: 50%; color: transparent; display: flex; flex: 0 0 auto; height: 24px; justify-content: center; margin-left: auto; width: 24px; }
.choice-tick svg { height: 16px; width: 16px; }
.choice.is-checked .choice-tick { background: var(--blue); border-color: var(--blue); color: #fff; }
.choice-reason { bottom: 8px; color: var(--muted); font-size: 12px; left: 16px; position: absolute; right: 16px; }

/* Details */
.details-grid { display: grid; gap: 20px; margin-top: 40px; }
.apply-label { color: var(--heading); display: block; font-size: 14px; font-weight: 600; }
.apply-input { background: #fff; border: 1px solid var(--border-strong); border-radius: 10px; color: var(--heading); display: block; font-weight: 400; margin-top: 8px; min-height: 48px; outline: none; padding: 0 14px; transition: border-color 0.15s, box-shadow 0.15s; width: 100%; }
.apply-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-100); }
.apply-input[aria-invalid='true'] { border-color: var(--red); }
.phone-wrap { display: flex; margin-top: 8px; }
.phone-prefix { align-items: center; background: var(--hint); border: 1px solid var(--border-strong); border-radius: 10px 0 0 10px; border-right: 0; color: var(--body); display: flex; font-weight: 400; min-height: 48px; padding: 0 12px; }
.phone-wrap .apply-input { border-radius: 0 10px 10px 0; margin-top: 0; }
.apply-check { align-items: center; color: var(--body); cursor: pointer; display: flex; font-size: 14px; gap: 12px; min-height: 44px; }
.apply-check input, .deposit-check input { accent-color: var(--blue); flex: 0 0 auto; height: 20px; width: 20px; }
.link-btn { color: var(--blue); font-size: 14px; font-weight: 600; min-height: 44px; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 4px; }
.email-suggest { color: var(--blue); display: block; font-size: 14px; font-weight: 500; margin-top: 8px; min-height: 44px; }
.promo { margin-top: 8px; max-width: 384px; }

/* Chips */
.chip-stack { display: grid; gap: 32px; margin-top: 40px; }
.chip-group { border-bottom: 1px solid var(--border); padding-bottom: 32px; }
.chip-group.no-rule { border-bottom: 0; padding-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: #fff; border: 1px solid var(--border-strong); border-radius: 10px; color: var(--body); cursor: pointer; font-size: 14px; font-weight: 500; padding: 10px 16px; transition: border-color 0.15s; }
.chip:hover { border-color: var(--blue-300); }
.chip.is-checked { background: var(--blue-50); border-color: var(--blue); color: var(--action); }
.chip:focus-within { outline: 3px solid #7ea3ed; outline-offset: 2px; }
.optional { color: var(--muted); font-weight: 400; }
.laptop-note { background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 10px; color: var(--blue-900); font-size: 14px; padding: 16px; }

/* Review */
.review-groups { display: grid; gap: 16px; margin-top: 36px; }
.review-group { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.review-head { align-items: center; display: flex; justify-content: space-between; margin-bottom: 16px; }
.review-head h2 { color: var(--heading); font-family: var(--font-heading); font-size: 18px; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.review-group dl { display: grid; gap: 12px; }
.review-group dl > div { display: grid; font-size: 14px; gap: 16px; grid-template-columns: 120px 1fr; }
.review-group dt { color: var(--muted); }
.review-group dd { color: var(--heading); font-weight: 500; overflow-wrap: anywhere; }
.review-fee { background: var(--blue-50); border-radius: 16px; margin-top: 24px; padding: 20px; }
.review-fee .row { display: flex; gap: 16px; justify-content: space-between; }
.review-fee .row strong { color: var(--heading); }
.review-fee .green { color: var(--green-text); font-size: 14px; margin-top: 4px; }
.review-fee .split { border-top: 1px solid var(--blue-100); margin-top: 16px; padding-top: 16px; }
.deposit-check { align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; display: flex; gap: 12px; margin-top: 24px; padding: 16px; }
.deposit-check input { margin-top: 2px; }
.deposit-check span { color: var(--heading); font-size: 14px; }

/* Navigation */
.apply-nav { align-items: center; border-top: 1px solid var(--border); display: none; justify-content: space-between; margin-top: 40px; padding-top: 24px; }
.apply-back { color: var(--blue); font-weight: 600; min-height: 48px; padding: 0 12px; }
.apply-back.is-invisible { visibility: hidden; }
.apply-back.is-hidden { display: none; }
.apply-next { align-items: center; background: var(--action); border-radius: 10px; color: #fff; display: inline-flex; font-weight: 600; gap: 8px; justify-content: center; min-height: 48px; min-width: 192px; padding: 0 24px; transition: background 0.2s; }
.apply-next:hover { background: var(--action-hover); }
.apply-next:disabled { cursor: not-allowed; opacity: 0.4; }
.apply-next .arr { height: 16px; width: 16px; }
.apply-mobile-bar { align-items: center; background: #fff; border-top: 1px solid var(--border); bottom: 0; box-shadow: 0 -8px 24px rgba(6, 22, 46, 0.08); display: flex; gap: 12px; left: 0; padding: 12px; position: fixed; right: 0; z-index: 40; }
.apply-mobile-bar .apply-next { flex: 1; min-width: 0; padding: 0 20px; }

/* Summary (ink) */
.apply-summary { background: var(--navy); border-radius: 16px; box-shadow: 0 20px 25px -5px rgba(6, 22, 46, 0.18); color: #fff; padding: 32px; position: sticky; top: 24px; }
.admin-bar .apply-summary { top: 56px; }
.summary-content { display: grid; gap: 16px; }
.sum-label { color: var(--dark-secondary); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; margin-bottom: 4px; text-transform: uppercase; }
.sum-track { align-items: flex-start; display: flex; gap: 12px; }
.sum-track .dot { background: var(--blue-300); border-radius: 50%; flex: 0 0 auto; height: 10px; margin-top: 8px; width: 10px; }
.summary-content .k { color: var(--dark-secondary); display: block; font-size: 12px; }
.summary-content strong { color: #fff; }
.sum-row { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 12px; }
.sum-row strong { font-size: 14px; }
.sum-next { border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 16px; padding-top: 28px; }
.sum-next ol { display: grid; font-size: 14px; gap: 16px; margin-top: 12px; }
.sum-next li { display: flex; gap: 12px; }
.sum-next li span { color: var(--blue-300); }
.sum-help { align-items: center; color: var(--blue-200); display: inline-flex; font-size: 14px; font-weight: 600; gap: 8px; margin-top: 16px; min-height: 44px; text-underline-offset: 4px; }
.sum-help:hover { text-decoration: underline; }

/* Success */
.apply-success { background: #fff; min-height: 100vh; }
.success-top { margin: 0 auto; max-width: 760px; padding: 64px 16px; text-align: center; }
.success-icon { align-items: center; background: var(--green-50); border-radius: 50%; color: var(--green); display: flex; height: 64px; justify-content: center; margin: 0 auto 28px; width: 64px; }
.success-icon svg { height: 24px; width: 24px; }
.success-top h1 { font-size: 36px; line-height: 1.25; outline: none; }
.success-lead { color: var(--body); font-size: 18px; margin: 20px auto 0; max-width: 620px; }
.success-next { background: var(--navy); color: #fff; padding: 56px 16px; }
.success-inner { margin: 0 auto; max-width: 760px; }
.success-next h2 { color: #fff; font-size: 30px; margin-bottom: 32px; }
.success-next ol { display: grid; gap: 16px; }
.success-next li { border-bottom: 1px solid rgba(255, 255, 255, 0.15); color: #fff; display: flex; gap: 20px; padding-bottom: 16px; }
.success-next li .n { color: var(--blue-300); font-weight: 600; }
.success-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 36px; }
.success-change { color: var(--dark-secondary); font-size: 14px; margin-top: 28px; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.success-change:hover { color: #fff; }

.hide-sm { display: none; }

@media (min-width: 640px) {
  .hide-sm { display: inline; }
  .apply-progress .lbl { display: inline; }
  .choice-grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .choice-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .details-grid { grid-template-columns: 1fr 1fr; }
  .details-grid .span-2 { grid-column: span 2; }
  .success-actions { flex-direction: row; }
}

@media (min-width: 768px) {
  .apply { padding-bottom: 0; }
  .apply-header-inner, .apply-progress-inner { padding: 0 24px; }
  .apply-progress li { font-size: 14px; }
  .apply-progress li.is-done .done { display: block; }
  .apply-mobile-summary, .apply-mobile-bar { display: none; }
  .apply-grid { grid-template-columns: repeat(12, 1fr); padding: 56px 24px; }
  .apply-main { grid-column: span 7; }
  .apply-aside { display: block; grid-column: span 5; }
  .apply-nav { display: flex; }
  .apply-step h1 { font-size: 48px; }
  .apply-step[data-step='2'] h1, .apply-step[data-step='3'] h1, .apply-step[data-step='4'] h1 { font-size: 36px; }
  .success-top { padding: 96px 16px; }
  .success-top h1 { font-size: 48px; }
  .success-next { padding: 80px 16px; }
}
