/* ==========================================================================
   ValxMD — Checkout page styles
   ========================================================================== */

body { background: #f8f6f0; }

.checkout-header {
  background: #fff;
  border-bottom: 1px solid #e4e4e4;
  padding: 16px 0;
}
.checkout-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.checkout-header .nav-logo img { height: 32px; }
.checkout-secure {
  color: #1e40af;
  font-weight: 700;
  font-size: 14px;
}

.checkout-main { padding: 32px 0 48px; }

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

.checkout-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  color: #0a1a3d;
  margin: 0 0 24px;
}

.checkout-section {
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
}
.checkout-section h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  color: #0a1a3d;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eaeaea;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field { display: flex; flex-direction: column; }
.field-full { grid-column: 1 / -1; }
.field-third { }

@media (min-width: 640px) {
  .field-grid > .field-third:nth-of-type(1) { grid-column: 1 / span 1; }
  .field-grid > .field-third:nth-of-type(2) { grid-column: 2 / span 1; }
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: #0a1a3d;
  margin-bottom: 6px;
}
.field .req { color: #c9a961; }
.field .opt { color: rgba(10,26,61,0.5); font-weight: 400; }

.field input,
.field select {
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: #0a1a3d;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: #1e40af;
  box-shadow: 0 0 0 3px rgba(30,64,175,0.15);
}
.field input.invalid,
.field select.invalid {
  border-color: #b91c1c;
  background: #fef2f2;
}

.payment-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.payment-badges img { height: 22px; }

.checkout-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 12px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
}

.checkout-place-btn {
  width: 100%;
  background: #1e40af;
  color: #fff;
  border: none;
  padding: 18px 20px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.15s;
  letter-spacing: 0.3px;
}
.checkout-place-btn:hover:not(:disabled) { background: #2952c7; }
.checkout-place-btn:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}
.checkout-place-btn .btn-spinner { display: inline-block; }

.checkout-legal {
  font-size: 12px;
  color: rgba(10,26,61,0.6);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}
.checkout-legal a { color: #1e40af; text-decoration: underline; }

/* ---------- Right side: Order Summary ---------- */
.checkout-summary-col { position: sticky; top: 20px; }
.checkout-summary {
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  padding: 24px;
}
.checkout-summary h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  color: #0a1a3d;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eaeaea;
}
.summary-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #eaeaea;
  margin-bottom: 16px;
}
.summary-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #f8f6f0;
  border-radius: 6px;
}
.summary-name { font-weight: 700; color: #0a1a3d; font-size: 15px; line-height: 1.3; }
.summary-tier { color: rgba(10,26,61,0.65); font-size: 12px; margin-top: 2px; }
.summary-price { font-weight: 700; color: #0a1a3d; font-size: 15px; font-family: 'Manrope', sans-serif; }

.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  color: rgba(10,26,61,0.75);
}
.summary-total {
  font-size: 18px;
  color: #0a1a3d;
  font-weight: 700;
  border-top: 1px solid #eaeaea;
  margin-top: 8px;
  padding-top: 14px;
}
.summary-total span:last-child { font-family: 'Manrope', sans-serif; }

.summary-trust {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eaeaea;
}
.trust-item {
  font-size: 13px;
  color: rgba(10,26,61,0.75);
  padding: 4px 0;
}
.trust-item a { color: #1e40af; text-decoration: none; }

.checkout-footer {
  background: #fff;
  border-top: 1px solid #e4e4e4;
  padding: 20px 0;
  margin-top: 40px;
}
.checkout-footer-trust {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 14px;
}
.checkout-footer-trust img { height: 28px; opacity: 0.8; }
.checkout-footer .copyright-inner {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(10,26,61,0.65);
  border-top: 1px solid #eaeaea;
  padding-top: 12px;
}
.checkout-footer .copyright-inner a { color: #1e40af; text-decoration: none; }

@media (max-width: 900px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary-col { position: static; }
  .checkout-summary-col { order: -1; }
  .checkout-footer .copyright-inner { flex-direction: column; gap: 6px; text-align: center; }
}
@media (max-width: 480px) {
  .field-grid { grid-template-columns: 1fr; }
  .checkout-title { font-size: 26px; }
}

/* ============================================================
   Fraud protection: hide honeypot field from real users
   Use CSS positioning off-screen, not display:none (some bots skip display:none)
   ============================================================ */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
