/* /status — applicant self-serve pipeline tracker */

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.status-main {
  min-height: calc(100vh - 64px);
}

/* ─── Hero / Lookup Form ─────────────────────────────────────────────────── */
.status-hero {
  padding: 80px 24px 60px;
  text-align: center;
}
.status-hero-inner {
  max-width: 560px;
  margin: 0 auto;
}

.status-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  color: var(--cream);
  margin: 12px 0 16px;
}

.status-sub {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 40px;
}

/* ─── Form ────────────────────────────────────────────────────────────────── */
.status-form {
  text-align: left;
}

.status-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.status-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.status-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-label-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  color: #666;
}

.status-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 15px;
  color: var(--cream);
  font-family: var(--font-body);
  transition: border-color 0.2s;
  outline: none;
}
.status-input::placeholder { color: rgba(154,163,178,0.5); }
.status-input:focus { border-color: var(--amber); }

.status-field-hint {
  font-size: 12px;
  color: #5a6380;
  line-height: 1.5;
}
.status-field-hint em { font-style: normal; color: var(--text-muted); }

.btn-status-lookup {
  width: 100%;
  background: var(--amber);
  color: var(--navy);
  border: none;
  border-radius: 8px;
  padding: 15px 24px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}
.btn-status-lookup:hover { background: var(--amber-light); }
.btn-status-lookup:disabled { opacity: 0.6; cursor: not-allowed; }

.status-error {
  margin-top: 14px;
  padding: 12px 16px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 6px;
  font-size: 14px;
  color: #fca5a5;
  line-height: 1.5;
}

/* ─── Results Panel ───────────────────────────────────────────────────────── */
.status-result {
  padding: 60px 24px 80px;
}
.status-result-inner {
  max-width: 600px;
  margin: 0 auto;
}

.status-result-header {
  margin-bottom: 48px;
}

.status-result-name {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--cream);
  margin: 8px 0 6px;
}

.status-result-applied {
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── Stage Timeline ──────────────────────────────────────────────────────── */
.stage-timeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 40px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.stage-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 80px;
  flex: 1;
  opacity: 0.35;
  transition: opacity 0.2s;
}
.stage-node.stage-completed,
.stage-node.stage-current { opacity: 1; }

.stage-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.stage-completed .stage-dot {
  background: rgba(245,158,11,0.15);
  border-color: var(--amber);
}
.stage-current .stage-dot {
  background: rgba(245,158,11,0.2);
  border-color: var(--amber);
}

/* Pulse ring on active stage */
.stage-dot-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse-ring 1.8s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(0.9); opacity: 1; }
  70%  { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(0.9); opacity: 0; }
}

.stage-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}
.stage-current .stage-label { color: var(--amber); }
.stage-completed .stage-label { color: var(--cream); }

.stage-entered {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Connector line between stage nodes */
.stage-connector {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.08);
  margin-top: 15px; /* vertically aligns to center of 32px dot */
  min-width: 20px;
}
.stage-connector.connector-done {
  background: var(--amber);
  opacity: 0.45;
}

/* ─── Current Stage Message Card ─────────────────────────────────────────── */
.status-message-card {
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.18);
  border-radius: 10px;
  padding: 24px 28px;
  margin-bottom: 32px;
}

.status-message-stage {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
}

.status-message-text {
  font-size: 16px;
  color: var(--cream);
  line-height: 1.65;
  margin-bottom: 12px;
}

.status-message-eta {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

/* ─── CTA buttons at bottom of results ──────────────────────────────────── */
.status-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.status-action-btn {
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 7px;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-body);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--cream);
  transition: border-color 0.2s, background 0.2s;
}
.status-action-btn:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.04);
}

/* ─── Upload Portal CTA (status page) ────────────────────────────────────── */
.status-upload-cta {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(34,197,94,0.07);
  border: 1.5px solid rgba(34,197,94,0.25);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 28px 0;
}

.upload-cta-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.upload-cta-body {
  flex: 1;
}

.upload-cta-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 4px;
}

.upload-cta-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 6px;
}

.upload-cta-docs {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.75;
}

.upload-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  flex-shrink: 0;
}

.btn-upload-cta {
  display: inline-block;
  background: #22c55e;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  font-family: var(--font-body);
  padding: 10px 18px;
  border-radius: 7px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.btn-upload-cta:hover { background: #16a34a; }

.btn-resend-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-family: var(--font-body);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: color 0.2s;
}
.btn-resend-link:hover { color: var(--cream); }

.resend-feedback {
  font-size: 12px;
  margin-top: 2px;
}

/* ─── Already applied sticky footer strip (injected into landing pages) ───── */
.status-sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(15,22,41,0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}
.status-sticky-footer a {
  color: var(--amber);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.status-sticky-footer a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .stage-label { font-size: 11px; }
  .stage-node { min-width: 60px; }
  .status-hero { padding: 48px 16px 40px; }
}
