* { font-family: 'Poppins', sans-serif; }
body { background: #f4f6fb; color: #222; }

/* Shared nav (matches policy pages) */
.navbar { background: #072142; }
.navbar-brand img { height: 48px; }
.nav-link { color: #fff !important; font-weight: 600; }
.nav-link:hover { color: #00BFA6 !important; }

/* Hero */
.pay-hero {
  background: linear-gradient(135deg, #00796b 0%, #072142 50%, #1C1B4D 100%);
  padding: 96px 0 90px;
  color: #fff;
  text-align: center;
}
.pay-hero .badge-pill {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  display: inline-block;
  margin-bottom: 16px;
}
.pay-hero h1 { font-size: 2.3rem; font-weight: 700; margin-bottom: 8px; }
.pay-hero p { opacity: 0.85; font-size: 1.02rem; margin: 0; }

/* Layout */
.pay-wrap { max-width: 980px; margin: -56px auto 70px; padding: 0 16px; }
.pay-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(7,33,66,0.16);
  overflow: hidden;
}
@media (max-width: 820px) {
  .pay-grid { grid-template-columns: 1fr; }
}

/* Left summary / card panel */
.pay-left {
  background: linear-gradient(160deg, #072142 0%, #0d3a63 60%, #00796b 100%);
  color: #fff;
  padding: 38px 32px;
  display: flex;
  flex-direction: column;
}
.pay-left .merchant {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 0.95rem; letter-spacing: .3px;
  margin-bottom: 28px;
}
.pay-left .merchant i { color: #00BFA6; }

/* Live credit card */
.credit-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1.586 / 1;
  border-radius: 16px;
  background: linear-gradient(135deg, #1C1B4D 0%, #072142 45%, #00957e 120%);
  box-shadow: 0 14px 30px rgba(0,0,0,0.35);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.credit-card::after {
  content: "";
  position: absolute;
  top: -40%; right: -20%;
  width: 70%; height: 160%;
  background: radial-gradient(circle, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0) 70%);
  transform: rotate(25deg);
}
.cc-top { display: flex; justify-content: space-between; align-items: center; }
.cc-chip {
  width: 46px; height: 34px; border-radius: 7px;
  background: linear-gradient(135deg, #f7d774, #d4af37);
  position: relative;
}
.cc-chip::before {
  content: ""; position: absolute; inset: 6px 8px;
  border: 1px solid rgba(0,0,0,0.25); border-radius: 3px;
}
.cc-brand { font-size: 2.2rem; line-height: 1; min-height: 34px; }
.cc-brand .cc-brand-text {
  font-size: 1rem; font-weight: 700; font-style: italic;
  letter-spacing: .5px;
}
.cc-number {
  font-size: 1.32rem;
  letter-spacing: 2px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  word-spacing: 4px;
}
.cc-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.cc-label { font-size: 0.6rem; text-transform: uppercase; opacity: 0.7; letter-spacing: 1px; display: block; margin-bottom: 3px; }
.cc-name { font-size: 0.9rem; font-weight: 600; text-transform: uppercase; max-width: 62%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-exp { font-size: 0.9rem; font-weight: 600; font-variant-numeric: tabular-nums; }

.pay-left .reassure { margin-top: auto; padding-top: 26px; }
.pay-left .reassure div { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; opacity: 0.9; margin-top: 10px; }
.pay-left .reassure i { color: #00BFA6; width: 16px; text-align: center; }

/* Right form panel */
.pay-right { padding: 38px 34px; }
.pay-right h2 { font-size: 1.25rem; font-weight: 700; color: #072142; margin-bottom: 4px; }
.pay-right .sub { color: #6b7280; font-size: 0.9rem; margin-bottom: 24px; }

.field { margin-bottom: 18px; }
.field label { font-size: 0.82rem; font-weight: 600; color: #374151; margin-bottom: 6px; display: block; }
.field .input-wrap { position: relative; }
.field input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e2e6ee;
  border-radius: 10px;
  font-size: 0.97rem;
  color: #111827;
  transition: border-color .15s, box-shadow .15s;
  background: #fbfcfe;
}
.field input:focus {
  outline: none;
  border-color: #00BFA6;
  box-shadow: 0 0 0 3px rgba(0,191,166,0.15);
  background: #fff;
}
.field input.invalid { border-color: #e11d48; box-shadow: 0 0 0 3px rgba(225,29,72,0.12); }
.field .card-icon {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: #94a3b8;
}
.field .err { color: #e11d48; font-size: 0.76rem; margin-top: 5px; display: none; }
.field .err.show { display: block; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.pay-btn {
  width: 100%;
  background: linear-gradient(135deg, #00BFA6, #00957e);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: filter .15s, transform .05s;
}
.pay-btn:hover { filter: brightness(1.05); }
.pay-btn:active { transform: translateY(1px); }

.accepted { display: flex; align-items: center; gap: 12px; margin: 22px 0 6px; flex-wrap: wrap; }
.accepted span { font-size: 0.75rem; color: #94a3b8; }
.accepted img { height: 24px; opacity: .85; }
.accepted .fa-cc-visa, .accepted .fa-cc-mastercard, .accepted .fa-cc-amex, .accepted .fa-cc-discover { font-size: 1.9rem; color: #cbd5e1; }

.secure-note {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; color: #64748b;
  margin-top: 16px; line-height: 1.4;
}
.secure-note i { color: #00957e; }

/* Result message */
.pay-result {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
}
.pay-result.ok { display: block; background: #e8f5e9; border-left: 4px solid #43a047; color: #2e7d32; }
.pay-result.warn { display: block; background: #fff8e1; border-left: 4px solid #f59e0b; color: #92600a; }

/* Footer hover (matches site) */
.hover-link:hover { color: #00BFA6 !important; }
