/* ── Apply Page (legacy dark header — unused) ────────────────────────────── */
.apply-page-header {
  background: linear-gradient(135deg, #0d1117 0%, #1a1a2e 100%);
  border-bottom: 3px solid var(--wcm-red);
  padding: 2.5rem 0 2rem;
}

/* ── Apply Page Main — white background matching site theme ──────────────── */
.apply-page-main { padding: 2.5rem 0 5rem; }

/* ── Apply Form ──────────────────────────────────────────────────────────── */
.scu-apply-form {
  max-width: 780px;
  margin: 0 auto;
}

/* Form inputs — orange focus to match theme */
.apply-page-main .form-control,
.apply-page-main input[type="text"],
.apply-page-main input[type="email"],
.apply-page-main input[type="date"],
.apply-page-main input[type="number"],
.apply-page-main textarea,
.apply-page-main select {
  border-color: #ced4da;
  border-radius: var(--radius);
  color: var(--text-primary);
}
.apply-page-main .form-control:focus,
.apply-page-main input[type="text"]:focus,
.apply-page-main input[type="email"]:focus,
.apply-page-main input[type="date"]:focus,
.apply-page-main input[type="number"]:focus,
.apply-page-main textarea:focus,
.apply-page-main select:focus {
  border-color: var(--wcm-orange);
  outline: none;
  box-shadow: 0 0 0 3px rgba(207,69,32,0.15);
}
.apply-page-main input[type="checkbox"],
.apply-page-main input[type="radio"],
.scu-apply-form input[type="checkbox"],
.scu-apply-form input[type="radio"] {
  accent-color: var(--wcm-orange);
  width: 1.1em;
  height: 1.1em;
}
.apply-page-main .form-text,
.apply-page-main .description {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* Progress bar */
.apply-progress {
  margin: 0 0 2.5rem;
  overflow-x: auto;
}
.apply-progress__bar {
  display: flex;
  align-items: center;
  justify-content: center;
}
.apply-progress__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 60px;
}
.apply-progress__dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.88rem;
  background: #f0f0f0;
  color: #aaa;
  border: 2px solid #e0e0e0;
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.apply-progress__step.active .apply-progress__dot {
  background: var(--wcm-orange);
  color: #fff;
  border-color: var(--wcm-orange);
  box-shadow: 0 0 0 5px rgba(207,69,32,0.15);
}
.apply-progress__step.done .apply-progress__dot {
  background: #1a7a3a;
  color: #fff;
  border-color: #1a7a3a;
}
.apply-progress__label {
  font-size: 0.7rem;
  color: #bbb;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}
.apply-progress__step.active .apply-progress__label { color: var(--text-primary); font-weight: 600; }
.apply-progress__step.done  .apply-progress__label { color: #777; }

.apply-progress__line {
  flex: 1;
  height: 2px;
  background: #e8e8e8;
  min-width: 12px;
  margin-bottom: 24px;
  flex-shrink: 1;
}
.apply-progress__line.done { background: #1a7a3a; }

@media (max-width: 480px) {
  .apply-progress__step { min-width: 0; flex: 1; }
  .apply-progress__dot  { width: 28px; height: 28px; font-size: 0.75rem; }
  .apply-progress__label { font-size: 0.6rem; white-space: normal; max-width: 48px; }
  .apply-progress__line { min-width: 6px; margin-bottom: 18px; }
}

/* Step headings */
.apply-step__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.apply-step__intro {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
}

/* Two-column row */
.apply-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.5rem;
}
@media (max-width: 576px) {
  .apply-row-2col { grid-template-columns: 1fr; }
}

/* Radio card style — light theme with WCM Orange selection */
.apply-radio-cards .form-radios { display: flex; flex-direction: column; gap: 8px; }
.apply-radio-cards .form-item--radio {
  background: #fafafa;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px 14px;
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
}
.apply-radio-cards .form-item--radio:hover {
  border-color: var(--wcm-orange);
  background: rgba(207,69,32,0.03);
}
.apply-radio-cards .form-item--radio:has(input:checked) {
  border-color: var(--wcm-orange);
  background: rgba(207,69,32,0.06);
}
.apply-radio-cards .form-item--radio label {
  cursor: pointer;
  font-weight: 500;
  color: var(--text-primary);
}

/* Navigation buttons — override btn-primary-wcm for light bg context */
.scu-apply-form .apply-nav .btn-primary-wcm {
  background: var(--wcm-orange);
  color: #fff;
  border-color: var(--wcm-orange);
  padding: 9px 24px;
  font-size: 0.9rem;
  transform: none;
}
.scu-apply-form .apply-nav .btn-primary-wcm:hover {
  background: var(--wcm-orange-hover);
  border-color: var(--wcm-orange-hover);
  color: #fff;
  transform: none;
}
.scu-apply-form .apply-nav .btn-outline-secondary {
  color: var(--wcm-orange);
  border-color: var(--wcm-orange);
  background: transparent;
  padding: 9px 24px;
  font-size: 0.9rem;
}
.scu-apply-form .apply-nav .btn-outline-secondary:hover {
  background: var(--wcm-orange);
  color: #fff;
  border-color: var(--wcm-orange);
}

.apply-nav {
  display: flex;
  gap: 12px;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e8e8e8;
  flex-wrap: wrap;
}

/* PI context banner */
.apply-pi-context {
  background: rgba(207,69,32,0.07);
  border: 1px solid rgba(207,69,32,0.25);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}
.apply-pi-context .bi { color: var(--wcm-orange); margin-right: 6px; }

/* Review step */
.apply-review {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 640px) { .apply-review { grid-template-columns: 1fr; } }

.apply-review__section {
  background: #f8f8f8;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  padding: 1rem 1.25rem;
}
.apply-review__section h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wcm-orange);
  margin-bottom: 0.85rem;
  font-weight: 700;
}
.apply-review dt { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 1px; }
.apply-review dd { color: var(--text-primary); margin-bottom: 0.5rem; font-size: 0.88rem; }

/* Admin submission view */
.apply-admin-section .card-header {
  background: #f4f4f4;
  border-color: #e0e0e0;
  color: var(--text-primary);
}
.apply-admin-section { background: #fff; border-color: #e0e0e0; }

/* ── WCM CWID probe (inline yes/no) ─────────────────────────────────────── */
.apply-cwid-probe {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 8px;
  padding: 14px 18px;
  margin: 1rem 0 0.5rem;
}
.apply-cwid-probe > .form-item {
  margin: 0;
}
.apply-cwid-probe .fieldset__title,
.apply-cwid-probe label.form-item__label {
  font-weight: 600;
  color: #5c4300;
  font-size: 0.92rem;
}
.apply-cwid-probe .form-item__description {
  color: #7a5c00;
  font-size: 0.82rem;
  margin-top: 2px;
}
.apply-radio-inline .form-radios {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  margin-top: 8px;
}
.apply-radio-inline .form-item--radio {
  background: none;
  border: none;
  padding: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.apply-radio-inline .form-item--radio:hover { background: none; }
.apply-radio-inline .form-item--radio:has(input:checked) { background: none; border: none; }
.apply-radio-inline .form-item--radio label { font-weight: 500; cursor: pointer; }

/* ── Apply Confirmation Page ─────────────────────────────────────────────── */
.apply-confirm-wrap {
  max-width: 600px;
  margin: 3rem auto;
  padding: 0 1rem;
  text-align: center;
}
.apply-confirm__icon { font-size: 3.5rem; color: #28a745; margin-bottom: 1rem; }
.apply-confirm__title { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.25rem; }
.apply-confirm__sub { color: #555; margin-bottom: 1.5rem; }
.apply-confirm__card {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  text-align: left;
}
.apply-confirm__row {
  display: flex;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e9ecef;
  align-items: baseline;
}
.apply-confirm__row:last-child { border-bottom: none; }
.apply-confirm__label {
  flex: 0 0 140px;
  font-size: 0.85rem;
  color: #888;
  font-weight: 500;
}
.apply-confirm__value { flex: 1; font-weight: 500; }
.apply-confirm__next { color: #555; font-size: 0.95rem; margin-bottom: 1.5rem; }
.apply-confirm__actions { display: flex; gap: 1rem; justify-content: center; margin-bottom: 2rem; }
.apply-confirm__footer { color: #aaa; font-size: 0.8rem; }
