/* ═══════════════════════════════════════════════════════════════════════
   Deck Academy — page-specific sections
   cb-academy-apply: dark two-column application block (copy + form card).
   The form card & inputs reuse the .cb-estimate__* language from home-c.css;
   only the Academy layout lives here. Auto-loaded by head.php (sections glob).
   ═══════════════════════════════════════════════════════════════════════ */

.cb-apply__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}

.cb-apply__heading { margin: 14px 0 0; }
.cb-apply__accent { color: var(--cb-yellow); }

.cb-apply__intro {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .82);
  max-width: 52ch;
  margin: 18px 0 36px;
}

/* "What happens next" — big yellow numerals thread the steps */
.cb-apply__steps {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 26px;
}
.cb-apply__step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.cb-apply__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 46px;
  line-height: .85;
  color: var(--cb-yellow);
  min-width: 40px;
  text-align: center;
}
.cb-apply__step-title {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  color: var(--cb-white);
  margin: 2px 0 5px;
}
.cb-apply__step-text {
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .68);
  max-width: 46ch;
  margin: 0;
}

/* Social proof — graduate quote card + micro trust row */
.cb-apply__quote {
  position: relative;
  background: var(--cb-panel);
  border: 1px solid var(--cb-line);
  border-radius: 4px;
  padding: 22px 24px 20px;
  margin: 0 0 20px;
}
.cb-apply__quote-mark {
  position: absolute;
  top: -8px;
  left: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 64px;
  line-height: .6;
  color: var(--cb-yellow);
  pointer-events: none;
}
.cb-apply__quote-stars {
  color: var(--cb-yellow);
  font-size: 13px;
  letter-spacing: 3px;
  margin: 4px 0 10px 34px;
}
.cb-apply__quote-text {
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .88);
}
.cb-apply__quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cb-apply__quote-avatar {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--cb-yellow);
  color: var(--cb-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
}
.cb-apply__quote-who {
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255, 255, 255, .6);
}
.cb-apply__quote-who strong {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--cb-white);
}
/* Hero-scale trust row: big Oswald values, yellow icons and stars. */
.cb-apply__trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0 0 30px;
}
.cb-apply__trust li {
  min-width: 0;
  padding: 4px 26px;
  border-left: 1px solid var(--cb-line);
}
.cb-apply__trust li:first-child { padding-left: 0; border-left: 0; }
.cb-apply__trust-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cb-apply__trust-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  color: var(--cb-yellow);
}
.cb-apply__trust-icon svg { width: 100%; height: 100%; display: block; }
.cb-apply__trust-big {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 2.4vw, 38px);
  line-height: 1;
  color: var(--cb-white);
  white-space: nowrap;
}
.cb-apply__trust-stars {
  color: var(--cb-yellow);
  font-size: 16px;
  letter-spacing: 2.5px;
  padding-bottom: 3px;
  align-self: flex-end;
  white-space: nowrap;
}
.cb-apply__trust-label {
  display: block;
  margin-top: 6px;
  font-family: var(--font-ui);
  font-size: 14.5px;
  color: rgba(255, 255, 255, .8);
}

.cb-apply__contact {
  border-top: 1px solid var(--cb-line);
  padding-top: 22px;
  font-family: var(--font-ui);
  font-size: 15.5px;
  color: rgba(255, 255, 255, .7);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
}
.cb-apply__contact-link {
  color: var(--cb-white);
  font-weight: 700;
  text-decoration: none;
  transition: color .15s ease;
}
.cb-apply__contact-link:hover { color: var(--cb-yellow); }
.cb-apply__contact-sep { color: rgba(255, 255, 255, .35); }

/* Form card additions (base card/input styles come from .cb-estimate__*) */
.cb-apply__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cb-apply__fields .cb-apply__wide { grid-column: 1 / -1; }
.cb-apply__textarea {
  min-height: 112px;
  resize: vertical;
  margin-top: 12px;
}
.cb-estimate__label + .cb-apply__textarea { margin-top: 0; }

/* Success panel — swaps in for the form after a successful submit */
.cb-apply__success {
  text-align: center;
  padding: 26px 4px 8px;
  outline: none;
}
.cb-apply__success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--cb-yellow);
  color: var(--cb-ink);
}
.cb-apply__success-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 2vw, 28px);
  line-height: 1.15;
  color: var(--cb-white);
  margin: 18px 0 8px;
}
.cb-apply__success-text {
  font-family: var(--font-ui);
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .75);
  max-width: 42ch;
  margin: 0 auto;
}

/* ── Mobile ────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cb-apply__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  /* Form first on mobile — same reversal pattern as the reviews column */
  .cb-apply__card { order: -1; }
}
@media (max-width: 640px) {
  .cb-apply__num { font-size: 38px; min-width: 32px; }
  .cb-apply__fields { grid-template-columns: 1fr; gap: 10px; }
  .cb-apply__fields .cb-apply__wide { grid-column: auto; }
  .cb-apply__steps { gap: 20px; margin-bottom: 24px; }
  .cb-apply__step-text { font-size: 14.5px; }
  .cb-apply__quote { padding: 18px 18px 16px; }
  .cb-apply__quote-mark { font-size: 52px; left: 14px; }
  .cb-apply__quote-stars { margin-left: 28px; }
  .cb-apply__quote-text { font-size: 14.5px; }
  /* One tidy 3-up row — flex wrapping left a ragged second line at 360px */
  .cb-apply__trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 24px;
  }
  .cb-apply__trust li { padding: 2px 10px; }
  .cb-apply__trust li:first-child { padding-left: 0; }
  .cb-apply__trust-row { gap: 6px; }
  .cb-apply__trust-icon { width: 18px; height: 18px; }
  .cb-apply__trust-big { font-size: 24px; }
  .cb-apply__trust-stars { font-size: 11px; letter-spacing: 1.5px; padding-bottom: 2px; }
  .cb-apply__trust-label { font-size: 11.5px; line-height: 1.3; margin-top: 4px; }
  .cb-apply__contact { font-size: 14.5px; }
}
