/* ═══════════════════════════════════════════════
   checkout.css — Premium low-friction checkout
   Design: Inter, white/soft-grey, dark-blue accent
   ═══════════════════════════════════════════════ */

/* ── Body ── */
.checkout-body {
  background: #f5f5f7;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1d1d1f;
  margin: 0;
  padding: 0;
}

/* ── Top bar ── */
.checkout-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(29,29,31,.07);
  padding: 16px 0;
}

.checkout-topbar {
  max-width: 1500px;
  margin: 0 auto 0;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.checkout-brand {
  text-decoration: none;
  color: #1d1d1f;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -.02em;
}

.checkout-topbar-text {
  color: #6e6e73;
  font-size: 14px;
}

/* ── Page heading ── */
.checkout-page-heading {
  max-width: 1500px;
  margin: 0 auto;
  padding: 32px 24px 0;
  text-align: center;
}

.checkout-page-title {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #1d1d1f;
  letter-spacing: -.04em;
  line-height: 1.05;
}

.checkout-page-intro {
  margin: 0 0 24px;
  color: #6e6e73;
  font-size: 1rem;
  line-height: 1.7;
}

/* ── Page wrapper ── */
.checkout-page {
  background: #f5f5f7;
  padding: 36px 0 70px;
}

.checkout-shell {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Two-column grid ── */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 24px;
  align-items: start;
}

/* ── Cards ── */
.checkout-card {
  background: #ffffff;
  border: 1px solid rgba(29,29,31,.08);
  border-radius: 24px;
  box-shadow: 0 14px 40px rgba(0,0,0,.06);
}

/* ══ LEFT: Summary ══ */
.checkout-summary-inner {
  padding: 30px;
}

.checkout-product {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: start;
}

.checkout-product-image {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.10);
}

.checkout-product-content {
  display: flex;
  flex-direction: column;
}

.checkout-label {
  display: inline-flex;
  min-height: 30px;
  padding: 0 12px;
  align-items: center;
  border-radius: 999px;
  background: #fff0e6;
  color: #e8600a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  align-self: flex-start;
}

.checkout-product h1 {
  margin: 0 0 10px;
  font-size: 1.6rem;
  line-height: 1.05;
  letter-spacing: -.04em;
  color: #1d1d1f;
}

.checkout-product p {
  margin: 0;
  color: #6e6e73;
  line-height: 1.7;
  font-size: 0.9rem;
}

.checkout-price-row {
  display: grid;
  gap: 6px;
  padding: 24px 0;
  border-top: 1px solid rgba(29,29,31,.08);
  border-bottom: 1px solid rgba(29,29,31,.08);
  margin: 24px 0;
}

.checkout-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: #e8600a;
  letter-spacing: -.03em;
}

.checkout-price-note {
  font-size: 14px;
  color: #6e6e73;
}

.checkout-includes h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  color: #1d1d1f;
}

.checkout-includes ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.checkout-includes li {
  position: relative;
  padding-left: 20px;
  color: #6e6e73;
  line-height: 1.65;
  font-size: 0.9rem;
}

.checkout-includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e8600a;
}

.checkout-trust {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(29,29,31,.08);
}

.checkout-trust p {
  margin: 0;
  color: #6e6e73;
  font-size: 14px;
}

/* ══ RIGHT: Form ══ */
.checkout-form-inner {
  padding: 30px;
}

.checkout-form-section + .checkout-form-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(29,29,31,.08);
}

.checkout-form-section h2 {
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 750;
  color: #1d1d1f;
}

/* ── Form fields ── */
.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid.two-col {
  grid-template-columns: 1fr 1fr;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1f;
}

.required-star {
  color: #e53e3e;
  margin-left: 2px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(29,29,31,.10);
  background: #ffffff;
  padding: 0 16px;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  color: #1d1d1f;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236e6e73' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #e8600a;
  box-shadow: 0 0 0 4px rgba(232,96,10,.10);
}

/* ── Field hints and errors ── */
.field-hint {
  display: block;
  font-size: 13px;
  color: #6e6e73;
  margin-top: 5px;
  line-height: 1.5;
}

.field-error {
  display: block;
  font-size: 13px;
  color: #e53e3e;
  margin-top: 5px;
  font-weight: 500;
  min-height: 0;
}

.field-optional {
  color: #6e6e73;
  font-weight: 400;
  font-size: 13px;
}

.field-invalid {
  border-color: #e53e3e !important;
  box-shadow: 0 0 0 4px rgba(229,62,62,.08) !important;
}

.form-error-banner {
  background: #fff5f5;
  border: 1px solid rgba(229,62,62,.25);
  border-radius: 14px;
  padding: 14px 18px;
  color: #c53030;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ── Legal note above footer links ── */
.checkout-legal-note {
  text-align: center;
  color: #6e6e73;
  font-size: 13px;
  margin: 18px 0 8px;
}

/* ── WhatsApp checkbox ── */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
}

.form-check input[type="checkbox"] {
  margin-top: 4px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: #e8600a;
}

.form-check-hint {
  margin: 6px 0 0 26px;
  color: #6e6e73;
  font-size: 13px;
  line-height: 1.5;
}

.form-check label {
  color: #6e6e73;
  font-size: 14px;
  line-height: 1.6;
  cursor: pointer;
}

/* ── Payment section ── */
.payment-trust-line {
  margin: 0 0 14px;
  color: #6e6e73;
  font-size: 14px;
  line-height: 1.6;
}

.payment-box {
  background: #fbfbfd;
  border: 1px solid rgba(29,29,31,.08);
  border-radius: 18px;
  padding: 18px;
}

.payment-method-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.payment-method-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #1d1d1f;
  font-size: 0.95rem;
}

.payment-cards-note {
  color: #6e6e73;
  font-size: 13px;
}

.payment-box-desc {
  margin: 0;
  color: #6e6e73;
  font-size: 13px;
  line-height: 1.6;
}

/* ── Order total ── */
.checkout-order-total {
  display: grid;
  gap: 14px;
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #1d1d1f;
  font-size: 15px;
}

.checkout-total-final {
  padding-top: 14px;
  border-top: 1px solid rgba(29,29,31,.08);
  font-size: 1.05rem;
  font-weight: 600;
}

.checkout-total-final strong {
  font-size: 1.2rem;
  font-weight: 800;
  color: #e8600a;
}

.checkout-total-note {
  margin: 0;
  color: #6e6e73;
  font-size: 14px;
  line-height: 1.6;
}

.checkout-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  background: #e8600a;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  letter-spacing: -.01em;
  box-shadow: 0 18px 40px rgba(232,96,10,.28);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}

.checkout-submit-btn:hover {
  background: #c94f06;
  transform: translateY(-1px);
}

/* ── Policy links ── */
.checkout-legal {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
}

.checkout-legal a {
  color: #6e6e73;
  font-size: 13px;
  text-decoration: none;
  transition: color .15s;
}

.checkout-legal a:hover {
  color: #e8600a;
}

/* ═══════════════════════════════════════════════
   THANK-YOU PAGE
   ═══════════════════════════════════════════════ */
.thank-you-page {
  background: #f5f5f7;
  padding: 40px 0 80px;
}

.thank-you-shell {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.thank-you-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  border: 1px solid rgba(11,46,103,.08);
  border-radius: 30px;
  box-shadow: 0 24px 70px rgba(11,46,103,.10);
  padding: 52px 40px;
  text-align: center;
}

.thank-you-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff0e6;
  margin: 0 auto 20px;
}

.thank-you-card .section-kicker {
  display: inline-flex;
  min-height: 30px;
  padding: 0 14px;
  align-items: center;
  border-radius: 999px;
  background: #fff0e6;
  color: #e8600a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.thank-you-card h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -.04em;
  color: #1d1d1f;
}

.thank-you-card > p {
  margin: 0 0 28px;
  color: #6e6e73;
  line-height: 1.7;
  font-size: 1.05rem;
}

.thank-you-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.thank-you-link {
  color: #e8600a;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity .15s;
}

.thank-you-link:hover { opacity: .7; }

.thank-you-order-summary {
  background: #f8faff;
  border: 1px solid rgba(11,46,103,.08);
  border-radius: 18px;
  padding: 20px 24px;
  text-align: left;
  margin: 0 0 24px;
  display: grid;
  gap: 12px;
}

.thank-you-order-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: #6e6e73;
}

.thank-you-order-row span:last-child {
  color: #1d1d1f;
  font-weight: 500;
  text-align: right;
}

.thank-you-order-total {
  padding-top: 12px;
  border-top: 1px solid rgba(29,29,31,.08);
  font-size: 1rem;
}

.thank-you-order-total span {
  color: #1d1d1f;
  font-weight: 600;
}

.thank-you-order-total strong {
  color: #e8600a;
  font-size: 1.1rem;
  font-weight: 800;
}

.thank-you-help {
  margin: 0 !important;
  font-size: 14px;
  color: #6e6e73;
  line-height: 1.6;
}

.thank-you-help a {
  color: #e8600a;
  font-weight: 600;
  text-decoration: none;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 991px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .checkout-page {
    padding: 18px 0 42px;
  }

  .checkout-shell {
    padding: 0 16px;
  }

  .checkout-card {
    border-radius: 18px;
  }

  .checkout-topbar {
    padding: 0 16px;
    margin-bottom: 14px;
  }

  .checkout-topbar-text {
    font-size: 13px;
  }

  .checkout-summary-inner,
  .checkout-form-inner {
    padding: 22px;
  }

  .checkout-product {
    grid-template-columns: 88px 1fr;
    gap: 14px;
  }

  .checkout-product h1 {
    font-size: 1.3rem;
  }

  .form-grid.two-col {
    grid-template-columns: 1fr;
  }

  .thank-you-card {
    padding: 36px 22px;
  }

  .thank-you-order-summary {
    padding: 16px 18px;
  }
}
