/* Status page inherits design tokens from styles.css */

/* ===== STATUS PAGE LAYOUT ===== */
.status-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.status-hero {
  background: var(--navy);
  padding: calc(var(--header-height) + var(--space-xl)) 0 var(--space-xl);
  text-align: center;
}

.status-hero .section-label {
  color: var(--gold);
}

.status-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  margin-top: var(--space-xs);
}

.status-hero p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-top: var(--space-sm);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ===== FORM SECTION ===== */
.status-form-section {
  background: var(--white);
  padding: var(--space-2xl) 0;
  flex: 1;
}

.status-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: var(--space-lg);
  box-shadow: 0 1px 3px rgba(15, 33, 55, 0.04), 0 8px 24px rgba(15, 33, 55, 0.06);
}

.status-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.status-form #turnstile-container {
  display: flex;
  justify-content: center;
}

.status-field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.status-field input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.status-field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-light);
}

.status-field input::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.status-field input.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.status-submit {
  width: 100%;
  padding: 16px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: var(--space-xs);
}

.status-submit:hover {
  background: var(--gold-hover);
}

.status-submit:active {
  transform: scale(0.98);
}

.status-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.status-submit .spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--navy);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.status-error {
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.15);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--error);
  font-size: 0.9rem;
  text-align: center;
  display: none;
}

.status-error.visible {
  display: block;
}

/* ===== RESULT CARD ===== */
.status-result {
  display: none;
  max-width: 600px;
  margin: 0 auto;
  animation: fadeInUp 0.5s var(--ease-out);
}

.status-result.visible {
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.result-case-id {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-status {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 8px;
}

.result-description {
  color: var(--steel);
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 8px;
}

/* ===== PROGRESS TRACKER ===== */
.progress-tracker {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin: var(--space-lg) 0;
  position: relative;
  padding: 0 8px;
}

.progress-tracker::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 24px;
  right: 24px;
  height: 3px;
  background: var(--border);
  z-index: 0;
}

.progress-fill {
  position: absolute;
  top: 16px;
  left: 24px;
  height: 3px;
  background: var(--gold);
  z-index: 1;
  transition: width 0.8s var(--ease-out);
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
  flex: 1;
  max-width: 100px;
}

.progress-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-out);
  flex-shrink: 0;
}

.progress-step.completed .progress-dot {
  background: var(--gold);
  border-color: var(--gold);
}

.progress-step.completed .progress-dot svg {
  display: block;
}

.progress-step.active .progress-dot {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-light);
}

.progress-dot svg {
  display: none;
  width: 14px;
  height: 14px;
  stroke: var(--navy);
  stroke-width: 3;
  fill: none;
}

.progress-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.3;
  max-width: 80px;
}

.progress-step.completed .progress-label,
.progress-step.active .progress-label {
  color: var(--navy);
}

/* ===== RESULT DETAILS ===== */
.result-details {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  gap: var(--space-md);
}

.result-detail {
  flex: 1;
  text-align: center;
}

.result-detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.result-detail-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
}

/* ===== CHECK ANOTHER ===== */
.result-actions {
  text-align: center;
  margin-top: var(--space-lg);
}

.btn-check-another {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 12px 32px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-check-another:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 639px) {
  .status-hero {
    padding-top: calc(var(--header-height) + var(--space-lg));
  }

  .status-card {
    margin: 0 16px;
    padding: var(--space-md);
  }

  .status-result {
    margin: 0 16px;
  }

  .progress-tracker {
    padding: 0;
  }

  .progress-tracker::before {
    top: 13px;
    left: 16px;
    right: 16px;
  }

  .progress-fill {
    top: 13px;
    left: 16px;
  }

  .progress-label {
    font-size: 0.6rem;
    max-width: 56px;
  }

  .progress-dot {
    width: 26px;
    height: 26px;
  }

  .progress-dot svg {
    width: 11px;
    height: 11px;
  }

  .result-details {
    flex-direction: column;
    gap: var(--space-sm);
  }
}
