/* ═══════════════════════════════════════════════════════════
   AquiCargo Checkout v2 — Professional Payment Form
   Dark bg rule: ALL text on dark = color:#fff !important
   ═══════════════════════════════════════════════════════════ */

/* ── Wrap ─────────────────────────────────────────────────── */
.aqc-checkout-wrap {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: #f0f4fc;
  min-height: 100vh;
}

/* ── Hero ─────────────────────────────────────────────────── */
.aqc-checkout-hero {
  background: linear-gradient(155deg, #000C25 0%, #001a4a 60%, #000C25 100%);
  padding: 72px 32px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.aqc-checkout-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.aqc-checkout-hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 120px;
  background: radial-gradient(ellipse, rgba(175,7,18,.18) 0%, transparent 70%);
  pointer-events: none;
}
.aqc-checkout-hero-inner { position: relative; z-index: 1; }

.aqc-checkout-logo {
  height: 56px;
  width: auto;
  margin: 0 auto 22px;
  display: block;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,.4));
}
.aqc-checkout-title {
  color: #ffffff !important;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -.035em;
  margin: 0 0 16px;
  line-height: 1.1;
}
.aqc-checkout-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,59,48,.12);
  border: 1px solid rgba(255,59,48,.3);
  color: #FF3B30 !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.aqc-checkout-price {
  color: #ffffff !important;
  line-height: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}
.aqc-price-amount {
  font-size: clamp(48px, 7vw, 72px);
  font-weight: 800;
  letter-spacing: -.04em;
  color: #ffffff !important;
}
.aqc-price-per {
  font-size: 20px;
  font-weight: 400;
  color: rgba(255,255,255,.45) !important;
}
.aqc-checkout-hero-sub {
  color: rgba(255,255,255,.55) !important;
  font-size: 13px;
  margin-top: 10px;
  letter-spacing: .02em;
}

/* ── Body ─────────────────────────────────────────────────── */
.aqc-checkout-body {
  max-width: 1060px;
  margin: 0 auto;
  padding: 44px 28px 72px;
}
.aqc-checkout-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 720px) {
  .aqc-checkout-columns { grid-template-columns: 1fr; }
  .aqc-checkout-body { padding: 28px 16px 56px; }
  .aqc-checkout-hero { padding: 48px 20px 44px; }
}

/* ── Cards ────────────────────────────────────────────────── */
.aqc-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0,12,37,.08), 0 1px 4px rgba(0,0,0,.04);
  overflow: hidden;
  transition: box-shadow .2s;
}
.aqc-card:hover {
  box-shadow: 0 8px 32px rgba(0,12,37,.12), 0 2px 8px rgba(0,0,0,.06);
}
.aqc-tier-card { padding: 28px; }
.aqc-payment-card { padding: 28px; }

/* ── Tier card header ─────────────────────────────────────── */
.aqc-tier-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f3f4f6;
}
.aqc-tier-badge-img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 2px 12px rgba(0,12,37,.15);
  flex-shrink: 0;
}
.aqc-tier-card-title {
  color: #000C25 !important;
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 3px;
  letter-spacing: -.02em;
}
.aqc-tier-card-sub {
  color: #6b7280 !important;
  font-size: 12px;
  font-weight: 500;
}

/* ── Feature list ─────────────────────────────────────────── */
.aqc-feature-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.aqc-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #f9fafb;
  color: #374151 !important;
  font-size: 14px;
  line-height: 1.5;
}
.aqc-feature-item:last-child { border-bottom: none; }
.aqc-feature-check {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(34,197,94,.3);
}
.aqc-feature-check::after {
  content: '✓';
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

/* ── TSRA notice ──────────────────────────────────────────── */
.aqc-tsra-notice {
  background: linear-gradient(135deg, #f0f4fc, #e8f0fe);
  border: 1px solid #dbeafe;
  border-left: 3px solid #000C25;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 11px;
  color: #4b5563 !important;
  line-height: 1.65;
}
.aqc-tsra-notice strong { color: #000C25 !important; }

/* ── Payment card ─────────────────────────────────────────── */
.aqc-payment-section { margin-bottom: 22px; }
.aqc-payment-section:last-of-type { margin-bottom: 0; }
.aqc-payment-section-title {
  font-size: 12px;
  font-weight: 700;
  color: #9ca3af !important;
  margin: 0 0 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.aqc-payment-section-title::before {
  content: '';
  flex: 1;
  height: 1px;
  background: #f3f4f6;
  order: 1;
}

/* ── Card input fields ────────────────────────────────────── */
.aqc-field-group { display: flex; flex-direction: column; gap: 10px; }
.aqc-field-row { display: flex; gap: 10px; }
.aqc-field {
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 16px;
  min-height: 52px;
  flex: 1;
  transition: border-color .15s, box-shadow .15s, background .15s;
  font-size: 15px;
}
.aqc-field:focus-within {
  border-color: #000C25;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,12,37,.08);
}

/* ── Pay button ───────────────────────────────────────────── */
.aqc-btn-pay {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #AF0712 0%, #FF3B30 100%);
  color: #ffffff !important;
  border: none;
  border-radius: 14px;
  padding: 18px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 16px;
  letter-spacing: -.01em;
  box-shadow: 0 6px 20px rgba(175,7,18,.35), 0 2px 6px rgba(0,0,0,.1);
  transition: opacity .15s, transform .15s, box-shadow .15s;
  position: relative;
  overflow: hidden;
}
.aqc-btn-pay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.1), transparent);
  pointer-events: none;
}
.aqc-btn-pay:hover {
  opacity: .93;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(175,7,18,.4), 0 4px 10px rgba(0,0,0,.12);
}
.aqc-btn-pay:active { transform: translateY(0); }
.aqc-btn-pay:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Divider ──────────────────────────────────────────────── */
.aqc-checkout-divider {
  text-align: center;
  margin: 20px 0;
  color: #d1d5db;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  position: relative;
}
.aqc-checkout-divider::before,
.aqc-checkout-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: #e5e7eb;
}
.aqc-checkout-divider::before { left: 0; }
.aqc-checkout-divider::after  { right: 0; }

/* ── PayPal container ─────────────────────────────────────── */
#aqc-paypal-button-container {
  min-height: 52px;
  border-radius: 12px;
  overflow: hidden;
}

/* ── Error / message ──────────────────────────────────────── */
.aqc-error {
  color: #dc2626 !important;
  font-size: 13px;
  margin-top: 8px;
  padding: 10px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  display: none;
}
.aqc-payment-message {
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  display: none;
}

/* ── Legal footer ─────────────────────────────────────────── */
.aqc-checkout-legal {
  font-size: 11px;
  color: #9ca3af !important;
  text-align: center;
  margin-top: 20px;
  line-height: 1.7;
  padding: 16px 4px 0;
  border-top: 1px solid #f3f4f6;
}
.aqc-checkout-legal a { color: #AF0712 !important; text-decoration: none; }

/* ── Payment badges strip ─────────────────────────────────── */
.aqc-payment-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.aqc-payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .01em;
}
.aqc-payment-badge--ssl  { background: #f0fdf4; color: #166534 !important; border: 1px solid #bbf7d0; }
.aqc-payment-badge--qbo  { background: #f0fdf4; color: #2CA01C !important; border: 1px solid #bbf7d0; }
.aqc-payment-badge--pp   { background: #eff6ff; color: #1d4ed8 !important; border: 1px solid #bfdbfe; }
.aqc-payment-badge--tsra { background: #f5f3ff; color: #5b21b6 !important; border: 1px solid #ddd6fe; }

/* ── Login gate ───────────────────────────────────────────── */
.aqc-checkout-login {
  max-width: 440px;
  margin: 60px auto;
  padding: 48px 40px;
  text-align: center;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 40px rgba(0,12,37,.1);
}
.aqc-checkout-login img {
  height: 52px;
  margin-bottom: 20px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.15));
}
.aqc-checkout-login-title {
  font-size: 22px;
  font-weight: 800;
  color: #000C25 !important;
  margin: 0 0 12px;
  letter-spacing: -.01em;
}
.aqc-checkout-login p {
  color: #374151 !important;
  font-size: 16px;
  margin-bottom: 24px;
}
.aqc-checkout-login .aqc-btn-cta {
  display: inline-block;
  background: linear-gradient(135deg, #AF0712, #FF3B30);
  color: #ffffff !important;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(175,7,18,.3);
  transition: opacity .15s, transform .1s;
}
.aqc-checkout-login .aqc-btn-cta:hover { opacity: .9; transform: translateY(-1px); }
