/* ============================================================
   page-tracker-card.css
   Full-width Payment Tracker card for static content pages.
   Self-contained — no Bootstrap dependency required.
   ============================================================ */

/* Base resets scoped to the card */
.omf-tracker-form *,
.omf-tracker-form *::before,
.omf-tracker-form *::after { box-sizing: border-box; }

/* Card wrapper */
.omf-tracker-form {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg,#fef0f6 0%,#fef6fa 60%,#fdfafb 100%);
  border: 1px solid #d8dde4;
  border-radius: 12px;
  padding: 28px 28px 22px 28px;
  box-shadow: 0 2px 12px rgba(15,23,42,0.08);
  font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
}

/* Ensure form contents sit above background */
.omf-tracker-form > form { position: relative; z-index: 1; }

/* Label */
.omf-tracker-label {
  display: block;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0;
  text-transform: none;
  margin: 0 0 8px 2px;
}

/* Standard inputs — scoped so no Bootstrap dependency needed */
.omf-tracker-form .form-control {
  display: block;
  width: 100%;
  font-size: 16px !important;
  padding: 14px 16px !important;
  height: 56px !important;
  min-height: 56px;
  line-height: 1.3;
  border-top: 1.5px solid #90a8bc !important;
  border-left: 1.5px solid #a8c0d0 !important;
  border-right: 1.5px solid #d4e4ee !important;
  border-bottom: 1.5px solid #dceaf4 !important;
  border-radius: 8px !important;
  color: #111827;
  background: linear-gradient(180deg,#eaf0f6 0%,#f4f8fb 25%,#ffffff 55%);
  box-shadow:
    inset 0 4px 10px rgba(0,0,0,0.11),
    inset 0 1px 3px rgba(0,0,0,0.07),
    0 1px 1px rgba(255,255,255,0.9);
  box-sizing: border-box;
  transition: border-color .18s ease,box-shadow .18s ease,background .18s ease;
  margin: 0;
  outline: none;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}
.omf-tracker-form .form-control::placeholder {
  color: #111827 !important;
  font-size: 15px;
  font-weight: 300;
  opacity: 1;
}
.omf-tracker-form .form-control:hover::placeholder { color: #9ca3af !important; }
.omf-tracker-form .form-control:focus {
  border-color: #047857 !important;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(4,120,87,0.15);
  outline: none;
}
.omf-tracker-form .form-control:hover:not(:focus) {
  background: #ffffff;
  border-color: #a8b4bf !important;
}

/* Margin helpers */
.omf-tracker-form .form-control,
.omf-tracker-form .input-group-text { margin-bottom: 0 !important; }
.omf-tracker-form > form > .form-control,
.omf-tracker-form > form > div > .form-control:not(.input-group .form-control) {
  margin-bottom: 12px !important;
}
.omf-tracker-form .field-block { margin-bottom: 12px; }

/* UETR hero (big) field */
.omf-tracker-form .uetr-hero {
  position: relative;
  border-radius: 10px;
  margin-bottom: 14px;
  padding: 4px;
}
.omf-tracker-form .uetr-hero .form-control {
  font-size: 18px !important;
  height: 64px !important;
  min-height: 64px;
  padding: 16px 18px !important;
  border-radius: 12px !important;
  font-weight: 500;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 1;
}
.omf-tracker-form .uetr-hero .form-control::placeholder {
  font-size: 15px;
  font-weight: 300;
}

/* Input group (TRN row) */
.omf-tracker-form .input-group {
  display: flex;
  align-items: stretch;
  margin-bottom: 12px;
}
.omf-tracker-form .input-group .form-control {
  border-right: 0 !important;
  border-radius: 8px 0 0 8px !important;
  flex: 1;
  margin-bottom: 0 !important;
}
.omf-tracker-form .input-group-text {
  display: flex;
  align-items: center;
  border: 1.5px solid #d1d5db !important;
  border-left: 0 !important;
  border-radius: 0 8px 8px 0 !important;
  background: #fff !important;
  padding: 0 14px !important;
  height: 56px;
  flex-shrink: 0;
}
.omf-tracker-form .input-group-text a { line-height: 1; }

/* Amount + currency row */
.omf-tracker-form .omf-ptc-amount-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 12px;
}
.omf-tracker-form .omf-ptc-amount-row .form-control.omf-ptc-amount {
  flex: 2;
  min-width: 0;
  margin-bottom: 0 !important;
}
.omf-tracker-form .omf-ptc-amount-row .form-control.omf-ptc-currency {
  flex: 1;
  min-width: 100px;
  max-width: 140px;
  text-transform: uppercase;
  margin-bottom: 0 !important;
}

/* Submit button */
.omf-tracker-form .omf-ptc-submit {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background: linear-gradient(180deg,#059669 0%,#047857 55%,#065f46 100%);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.55);
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-align: center;
  margin-top: 4px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.18) inset,
    0 4px 12px rgba(4,120,87,0.4),
    0 1px 3px rgba(0,0,0,0.25);
  transition: all 0.18s ease;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}
.omf-tracker-form .omf-ptc-submit:hover {
  background: linear-gradient(180deg,#06b880 0%,#059669 55%,#047857 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.18) inset,
    0 6px 18px rgba(4,120,87,0.5),
    0 2px 5px rgba(0,0,0,0.28);
  transform: translateY(-1px);
}
.omf-tracker-form .omf-ptc-submit:active { transform: translateY(0); }

/* Animations */
@keyframes omfPulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.45; transform:scale(1.35); }
}
@media (prefers-reduced-motion: reduce) {
  .omf-tracker-form .omf-ptc-submit { transition: none; }
  .omf-tracker-form [style*="omfPulse"] { animation: none !important; }
}

/* Responsive */
@media (max-width: 600px) {
  .omf-tracker-form { padding: 18px 14px 16px; }
  .omf-tracker-form .uetr-hero .form-control { font-size: 15px !important; }
  .omf-tracker-form .omf-ptc-amount-row { flex-direction: column; }
  .omf-tracker-form .omf-ptc-amount-row .form-control.omf-ptc-currency { max-width: none; }
}

/* ── Custom auth checkbox (matches homepage) ─────────────────────────── */
.omf-auth-check {
  appearance: none;
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border: 2px solid #cbd5e1;
  border-radius: 5px;
  background: #f1f5f9;
  cursor: pointer;
  flex-shrink: 0;
  margin: 2px 0 0;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.omf-auth-check:checked {
  background: #2563eb;
  border-color: #2563eb;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 11' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='1.5,5.5 5,9 12.5,1.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
}
.omf-auth-check:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }

/* ── Found / Not-Found modal entrance animation ──────────────────────── */
@keyframes nfSlideUp {
  from { opacity:0; transform:translateY(22px) scale(0.96); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}
