/* ====================================================
   Divine Path – Checkout Page (Screenshot Style)
   Clean white card form, blue pay button
   ==================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Noto+Sans+Devanagari:wght@400;600;700&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --cream:     #f5f7fa;
  --white:     #ffffff;
  --gold:      #e89c10;
  --gold-br:   #f9bc2f;
  --gold-pale: #fef3d0;
  --navy:      #0f1f5c;
  --blue-btn:  #2563eb;
  --blue-dark: #1d4ed8;
  --red:       #c0392b;
  --border:    #e5e7eb;
  --text:      #1a1a2e;
  --text-mid:  #6b7280;
  --text-light:#9ca3af;
  --font-en:   'Poppins', sans-serif;
  --font-mr:   'Noto Sans Devanagari', 'Poppins', sans-serif;
  --r:         12px;
  --shadow:    0 4px 24px rgba(0,0,0,0.08);
  --pattern:   url('../images/mandala-pattern.png');
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-en);
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
}

/* ── Top Bar ──────────────────────────────────────── */
.co-topbar {
  background: var(--navy);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.co-brand {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  font-family: 'Playfair Display', var(--font-en);
}
.co-brand span { color: var(--gold-br); }
.co-secure {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* ── Page Layout ─────────────────────────────────── */
.co-page {
  max-width: 920px;
  margin: 32px auto;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  padding: 0 16px 48px;
  align-items: start;
}

/* ═══════════════════════════════════════════════════
   LEFT PANEL
═══════════════════════════════════════════════════ */
.co-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 20px;
}

/* Banner */
.co-banner {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.co-banner img {
  width: 100%;
  display: block;
}

/* Info Card */
.co-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.co-info-header {
  background: var(--navy);
  padding: 12px 16px;
  position: relative;
  overflow: hidden;
}
.co-info-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--pattern);
  background-size: 180px;
  opacity: 0.07;
}
.co-info-header-inner { position: relative; z-index: 1; }
.co-info-title {
  font-family: var(--font-mr);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
}
.co-info-sub { font-size: 10px; color: rgba(255,255,255,0.5); margin-top: 2px; }

.co-info-body { padding: 10px 14px; }
.co-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.co-info-row:last-child { border-bottom: none; }
.co-info-icon { font-size: 15px; width: 20px; text-align: center; flex-shrink: 0; }
.co-info-key  { color: var(--text-light); font-size: 10px; }
.co-info-val  { color: var(--navy); font-weight: 600; font-size: 12px; }

/* Price box on left */
.co-price-box {
  background: var(--gold-pale);
  border: 1px solid #f0d060;
  border-radius: var(--r);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cpb-amount { font-size: 24px; font-weight: 900; color: var(--navy); }
.cpb-orig   { font-size: 11px; color: var(--text-light); text-decoration: line-through; }
.cpb-save   { background: var(--red); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 50px; display: inline-block; margin-top: 3px; }

/* ═══════════════════════════════════════════════════
   RIGHT PANEL – Form (Screenshot Style)
═══════════════════════════════════════════════════ */
.co-right {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.co-form-header {
  margin-bottom: 0;
}
.co-form-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.co-form-sub {
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 20px;
}

/* Billing card */
.billing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 12px;
}
.billing-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--border);
}
.billing-field {
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}
.billing-field:last-child { border-bottom: none; }
.billing-field input,
.billing-field select {
  width: 100%;
  padding: 13px 16px;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: var(--font-en);
  color: var(--text);
  background: transparent;
}
.billing-field input::placeholder { color: var(--text-light); }
.billing-field select { width: auto; min-width: 96px; border-right: 1px solid var(--border); color: var(--text-mid); }
.billing-field .phone-input { flex: 1; }

/* Quantity card */
.qty-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.qty-label { font-size: 13px; font-weight: 600; color: var(--text); }
.qty-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.qty-btn {
  width: 30px; height: 30px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--cream);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  transition: background 0.15s;
  line-height: 1;
  flex-shrink: 0;
}
.qty-btn:hover { background: var(--border); }
.qty-num { font-size: 15px; font-weight: 700; color: var(--text); min-width: 16px; text-align: center; }

/* Service summary card */
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 16px;
}
.service-header {
  padding: 12px 16px 8px;
  border-bottom: 1px dashed var(--border);
}
.service-name { font-size: 13px; font-weight: 600; color: var(--text); }
.service-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.service-row:last-child { border-bottom: none; font-weight: 700; }
.sr-label { color: var(--text-mid); }
.sr-val   { color: var(--text); font-weight: 600; }
.service-row.total .sr-label { color: var(--text); font-weight: 700; }
.service-row.total .sr-val   { font-size: 15px; color: var(--navy); font-weight: 800; }

/* Pay button */
.co-submit {
  width: 100%;
  padding: 15px;
  background: var(--blue-btn);
  color: var(--white);
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: var(--r);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.2px;
  margin-bottom: 12px;
}
.co-submit:hover    { background: var(--blue-dark); transform: translateY(-1px); }
.co-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Payment icons SVG */
.payment-icons {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.payment-icons img {
  height: 19px;
  display: block;
}

/* Messages */
.msg-box {
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 14px;
  display: none;
}
.msg-box.error   { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; display: block; }
.msg-box.success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; display: block; }

/* Footer */
.co-footer {
  background: var(--navy);
  padding: 14px 24px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.co-footer a { color: rgba(255,255,255,0.4); text-decoration: none; }
.co-footer a:hover { color: var(--gold-br); }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
  .co-page { grid-template-columns: 1fr; margin: 16px auto; }
  .co-left  { position: static; }
}
