/* ── Consulta / rastrear ── */

.page-track {
  background: var(--surface);
}

.page-track .site-main {
  background: var(--surface);
}

.page-track .site-header {
  border-bottom-color: var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.page-banner {
  background: var(--hero-bg);
  color: var(--white);
  padding: 32px 0 36px;
  position: relative;
}

.page-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--hero-accent);
}

.page-banner h1 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}

.page-banner p {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  max-width: 420px;
}

.track-shell {
  padding: 24px 0 40px;
}

.track-form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px 20px 22px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.track-form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--hero-accent);
}

.track-form-card .form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
}

.form-input-lg {
  font-size: 16px;
  min-height: 48px;
  border-color: var(--gray-200);
  background: #fafbfc;
}

.form-input-lg:focus {
  background: var(--white);
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(35, 130, 188, 0.15);
}

.form-hint {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 5px;
  line-height: 1.4;
}

.btn-lg {
  min-height: 48px;
  font-size: 15px;
  margin-top: 8px;
}

.track-trust {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.45;
  padding: 10px 14px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--blue-100);
}

.track-form-error {
  margin-bottom: 12px;
}

.track-form-error[hidden] {
  display: none !important;
}

.track-back-link {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
}

.track-back-link a {
  color: var(--blue-700);
  font-weight: 600;
}

.track-shell .save-page-notice {
  margin-bottom: 16px;
}

#trackSubmitBtn {
  position: relative;
}

#trackSubmitBtn .btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: se-spin 0.7s linear infinite;
  margin-left: 8px;
}

#trackSubmitBtn.is-loading {
  opacity: 0.88;
  pointer-events: none;
}

#trackSubmitBtn.is-loading .btn-spinner {
  display: inline-block;
}

.site-footer--mini .footer-bottom {
  padding: 12px 0;
}

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

@media (min-width: 640px) {
  .page-banner {
    padding: 40px 0 44px;
  }

  .page-banner h1 {
    font-size: 28px;
  }

  .track-form-card {
    padding: 28px 26px 24px;
  }
}
