/* checkout.css — NJBAI brand-aligned (uses --ink/--blue/--paper-2/--serif/--sans from styles.css).
   Local namespace .ck-* keeps it sandboxed. */

#order-form { scroll-margin-top: 24px; }

body[data-page="checkout"] {
  background: var(--paper-2);
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.55;
}

.ck-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Honeypot */
.ck-honeypot { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; }

/* HEADER */
.ck-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.ck-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ck-header .ck-wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.ck-logo { display: inline-flex; align-items: center; text-decoration: none; }
.ck-logo img { height: 32px; width: auto; display: block; }
.ck-secure {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; color: var(--ink-2); font-weight: 500;
}
.ck-secure svg { color: #4A90C4; }

/* MAIN */
.ck-main { padding: 32px 0 64px; }
.ck-main .ck-wrap, .ck-main .ck-grid { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.ck-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 960px) {
  .ck-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* LEFT COLUMN */
.ck-left { padding: 8px 0; }
.ck-mockup {
  max-width: 200px;
  margin: 0 auto 28px;
  filter: drop-shadow(0 14px 28px rgba(74,144,196,0.22));
}
@media (max-width: 540px) {
  .ck-mockup { max-width: 160px; margin-bottom: 24px; }
}
.ck-h1 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 400;
  color: #1A2332;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-align: center;
  margin: 0 0 14px;
  text-wrap: balance;
}
.ck-lede {
  text-align: center;
  color: var(--ink-2);
  font-size: 1rem;
  max-width: 460px;
  margin: 0 auto 32px;
  line-height: 1.5;
}
.ck-scroll-cta {
  display: none;
  background: #1A2332;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 22px;
  border-radius: 8px;
  text-decoration: none;
  margin: 0 auto 36px;
  text-align: center;
  max-width: 280px;
  letter-spacing: 0.02em;
}
@media (max-width: 960px) { .ck-scroll-cta { display: block; } }

.ck-included {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(74,144,196,0.04), 0 1px 2px rgba(74,144,196,0.06);
}
.ck-included h2 {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: center;
  margin: 0 0 18px;
}
.ck-checklist { list-style: none; padding: 0; margin: 0; }
.ck-checklist li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.92rem; color: var(--ink);
  padding: 7px 0;
}
.ck-checklist li::before {
  content: '✓';
  color: #4A90C4;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.ck-mini-faq { margin-top: 20px; }
.ck-mini-faq details {
  border-bottom: 1px solid var(--line);
}
.ck-mini-faq details:last-child { border-bottom: none; }
.ck-mini-faq summary {
  padding: 14px 4px;
  cursor: pointer;
  font-weight: 600;
  color: #1A2332;
  font-size: 0.92rem;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.ck-mini-faq summary::-webkit-details-marker { display: none; }
.ck-mini-faq summary::after { content: '+'; color: var(--ink-3); font-weight: 300; font-size: 1.2rem; }
.ck-mini-faq details[open] summary::after { content: '−'; }
.ck-mini-faq details p {
  padding: 0 4px 14px; margin: 0;
  color: var(--ink-2); font-size: 0.88rem; line-height: 1.55;
}
.ck-mini-faq details p a { color: #1A2332; }

.ck-disclaimer {
  font-size: 0.78rem;
  color: var(--ink-3);
  text-align: center;
  font-style: italic;
  margin-top: 24px;
  line-height: 1.6;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* RIGHT COLUMN */
.ck-right {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 16px 40px rgba(74,144,196,0.10), 0 4px 12px rgba(74,144,196,0.06);
}
@media (max-width: 540px) { .ck-right { padding: 24px; border-radius: 10px; } }

.ck-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 28px;
}
.ck-fieldset:last-of-type { margin-bottom: 0; }
.ck-fieldset legend {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 16px;
  padding: 0;
}

/* Fields */
.ck-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
@media (max-width: 480px) { .ck-row { grid-template-columns: 1fr; } }
.ck-field { display: flex; flex-direction: column; margin-bottom: 12px; }
.ck-field:last-child { margin-bottom: 0; }
.ck-field > span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 5px;
}
.ck-field > span em { color: #DC2626; font-style: normal; }
.ck-field input {
  font-family: var(--sans);
  font-size: 0.96rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-variant-numeric: tabular-nums;
}
.ck-field input:focus {
  outline: none;
  border-color: #1A2332;
  box-shadow: 0 0 0 3px rgba(74,144,196,0.12);
}
.ck-field input[aria-invalid="true"] {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.10);
}

.ck-checkbox {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 14px 0;
  font-size: 0.86rem; color: var(--ink-2); line-height: 1.45;
  cursor: pointer;
}
.ck-checkbox input { margin-top: 3px; flex-shrink: 0; accent-color: #1A2332; }
.ck-checkbox a { color: #1A2332; text-decoration: underline; }
.ck-checkbox-terms { background: var(--paper-2); padding: 14px 16px; border-radius: 8px; }

/* Bumps */
.ck-bump {
  background: #FFFDF5;
  border: 2px dashed #1A2332;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 14px;
  cursor: pointer;
  display: block;
  position: relative;
  transition: background 0.15s ease, border-style 0.15s ease, box-shadow 0.15s ease;
}
.ck-bump:last-of-type { margin-bottom: 0; }
.ck-bump:hover { background: #F5F0EA; }
.ck-bump.is-active {
  background: var(--blue-soft);
  border-style: solid;
  box-shadow: 0 6px 18px rgba(74,144,196,0.10);
}
.ck-bump-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  color: #fff;
}
.ck-bump-tag-blue { background: #1A2332; }
.ck-bump-tag-green { background: #4A90C4; }
.ck-bump-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 14px; margin-bottom: 6px;
}
.ck-bump-title {
  font-family: var(--serif);
  font-weight: 500;
  color: #1A2332;
  font-size: 1.05rem;
  line-height: 1.3;
  flex: 1;
}
.ck-bump-price-block { white-space: nowrap; text-align: right; line-height: 1.2; }
.ck-bump-anchor {
  display: block;
  color: var(--ink-3);
  text-decoration: line-through;
  font-size: 0.85rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.ck-bump-price {
  display: block;
  color: #1A2332;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.ck-bump-desc {
  font-size: 0.9rem;
  color: var(--ink);
  margin: 8px 0;
  line-height: 1.55;
}
.ck-bump-desc strong { color: #1A2332; }
.ck-bump-confirm {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(74,144,196,0.12);
  font-weight: 600;
  font-size: 0.92rem;
  color: #1A2332;
}
.ck-bump-check {
  width: 22px; height: 22px;
  border: 1.5px solid var(--ink-3);
  border-radius: 4px;
  background: var(--paper);
  flex-shrink: 0;
  position: relative;
  transition: all 0.15s ease;
}
.ck-bump.is-active .ck-bump-check { background: #1A2332; border-color: #1A2332; }
.ck-bump.is-active .ck-bump-check::after {
  content: '✓';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 0.85rem;
}
.ck-bump-input { position: absolute; opacity: 0; pointer-events: none; }
.ck-bump:focus-within {
  outline: 2px solid #1A2332;
  outline-offset: 3px;
}

/* Summary */
.ck-summary {
  background: var(--paper-2);
  border-radius: 10px;
  padding: 20px 22px;
}
.ck-line {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 0;
  font-size: 0.92rem;
  color: var(--ink);
  border-bottom: 1px dashed var(--line);
}
.ck-line:last-of-type { border-bottom: none; }
.ck-line-hidden { display: none; }
.ck-line-price { font-weight: 600; color: #1A2332; font-variant-numeric: tabular-nums; }
.ck-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 2px solid #1A2332;
}
.ck-total > span:first-child {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 0.95rem;
  color: #1A2332;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ck-total-amount {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  color: #1A2332;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* Payment mount */
.ck-payment-mount {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  min-height: 240px;
}
.ck-loading {
  text-align: center; padding: 32px 16px;
  color: var(--ink-3); font-size: 0.9rem;
}
.ck-loading::before {
  content: '';
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid var(--line);
  border-top-color: #1A2332;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 8px;
  animation: ckSpin 0.8s linear infinite;
}
@keyframes ckSpin { to { transform: rotate(360deg); } }
.ck-status {
  margin-top: 12px;
  font-size: 0.88rem;
  color: #DC2626;
  display: none;
}
.ck-status.is-shown { display: block; }
.ck-status.is-info { color: var(--ink-2); }

/* Pay button */
.ck-pay-button {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  background: #1A2332;
  color: #fff;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.18s ease;
  text-align: center;
  letter-spacing: -0.005em;
  margin-top: 14px;
  box-shadow: 0 6px 16px rgba(74,144,196,0.22), 0 2px 4px rgba(74,144,196,0.10);
  font-variant-numeric: tabular-nums;
}
.ck-pay-button:hover:not(:disabled) {
  background: #0F1722;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(74,144,196,0.30), 0 4px 8px rgba(74,144,196,0.14);
}
.ck-pay-button:active:not(:disabled) { transform: translateY(0); box-shadow: 0 4px 10px rgba(74,144,196,0.20); }
.ck-pay-button:disabled {
  background: var(--ink-3);
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.65;
}
.ck-pay-arrow { transition: transform 0.18s ease; }
.ck-pay-button:hover:not(:disabled) .ck-pay-arrow { transform: translateX(3px); }

.ck-error {
  display: none;
  color: #7F1D1D;
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 12px;
  font-size: 0.88rem;
}
.ck-error.is-shown { display: block; }

.ck-trust {
  margin-top: 16px;
  display: flex; justify-content: center; gap: 18px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--ink-3);
}
.ck-trust span { display: inline-flex; align-items: center; gap: 4px; }
.ck-trust svg { color: #4A90C4; }

/* FOOTER */
.ck-footer {
  background: #0F1722;
  color: rgba(255,255,255,0.55);
  padding: 24px 0;
  font-size: 0.82rem;
}
.ck-footer-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
@media (max-width: 640px) {
  .ck-footer-row { grid-template-columns: 1fr; text-align: center; gap: 6px; }
}
.ck-footer-copy { text-align: left; }
.ck-footer-mid { text-align: center; }
.ck-footer-mid a { color: rgba(255,255,255,0.85); text-decoration: none; }
.ck-footer-mid a:hover { text-decoration: underline; }
.ck-footer-powered { text-align: right; }
.ck-footer-powered .nv-brand { font-family: var(--serif); font-weight: 400; text-decoration: none; letter-spacing: 0.005em; }
.ck-footer-powered .nv-brand-nex { color: #fff; }
.ck-footer-powered .nv-brand-verto { color: #4A90C4; font-style: italic; }
@media (max-width: 640px) { .ck-footer-copy, .ck-footer-mid, .ck-footer-powered { text-align: center; } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
