/* "Track Your Parcel" modal for pages that don't carry index.html's own modal
   styles (contact, privacy-policy, terms-condition, data-deletion). Paired with
   assets/js/track-modal.js, which injects the markup. Classes are tm-* prefixed
   so they never collide with a page's own .form-group / .btn-primary rules. */

/* Top-bar Track is a <button>, styled like the old <a class="nav-demo"> */
button.nav-demo { border: none; cursor: pointer; font-family: inherit; }

.tm-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 20px;
}
.tm-overlay.open { display: flex; }
.tm-box {
  background: var(--bg-section); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--r-xl); padding: 36px; width: 100%; max-width: 480px;
  box-shadow: var(--rp-shadow-modal); text-align: left;
  animation: tm-in .25s ease;
}
@keyframes tm-in { from { opacity: 0; transform: scale(.96) translateY(12px); } to { opacity: 1; transform: none; } }
.tm-title { font-size: 22px; font-weight: 800; margin: 0 0 6px; color: var(--text); }
.tm-sub { font-size: 14px; color: var(--text-sub); margin: 0 0 24px; }
.tm-field { margin-bottom: 16px; }
.tm-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-sub); }
.tm-field input {
  width: 100%; box-sizing: border-box; padding: 11px 14px; border-radius: var(--r-md);
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); font-size: 14px; font-family: inherit;
  transition: border-color .2s; outline: none;
}
.tm-field input:focus { border-color: var(--teal); }
.tm-error { font-size: 12px; color: var(--rp-danger); margin-top: 4px; display: none; }
.tm-field.invalid .tm-error { display: block; }
.tm-field.invalid input { border-color: var(--rp-danger); }
.tm-actions { display: flex; gap: 12px; margin-top: 22px; }
.tm-submit {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--orange); color: #fff; border: none; cursor: pointer; font-family: inherit;
  padding: 12px 22px; border-radius: var(--r-md); font-size: 14.5px; font-weight: 700;
  transition: opacity .2s;
}
.tm-submit:hover { opacity: .88; }
.tm-cancel {
  background: var(--bg-card); border: 1px solid var(--border); cursor: pointer; font-family: inherit;
  color: var(--text); padding: 11px 22px; border-radius: var(--r-md);
  font-size: 14px; font-weight: 600; transition: background .2s;
}
.tm-cancel:hover { background: var(--bg-card-hov); }

@media (max-width: 768px) {
  .tm-box { padding: 24px 20px; }
  .tm-actions { flex-direction: column-reverse; }
  .tm-submit, .tm-cancel { width: 100%; }
}
@media (max-width: 480px) {
  .tm-box { border-radius: var(--r-lg); padding: 20px 16px; }
}
