/* ============================================================
   RABIA MOTORS — Payment Info Page Redesign
   ============================================================ */

body.payment-page {
  margin: 0;
  padding: 0;
  font-family: 'DM Sans', var(--font);
  background: #f0f2f6;
}

body.payment-page .topbar {
  background: #12182b;
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

body.payment-page .header {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 8px 24px rgba(22, 33, 62, 0.06);
}

.pay {
  --pay-dark: #12182b;
  --pay-dark2: #1a2744;
  --pay-mid: #243352;
  --pay-muted: #64748b;
  --pay-line: rgba(15, 23, 42, 0.08);
  --pay-radius: 16px;
  --pay-radius-lg: 22px;
  --pay-shadow: 0 20px 50px rgba(22, 33, 62, 0.12);
  --pay-accent: #f59e0b;
  --pay-accent-dark: #d97706;
}

/* ── Shared ──────────────────────────────────────────────────── */
.pay-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(252, 211, 77, 0.25);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.pay-eyebrow-dark {
  color: var(--pay-accent-dark);
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.18);
}

.pay-eyebrow-light {
  color: #fcd34d;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

/* ── Hero ────────────────────────────────────────────────────── */
body.payment-page .pay-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #12182b 0%, #1a2744 48%, #243352 100%);
  color: #fff;
  padding: 28px 0 64px;
}

.pay-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 92% 10%, rgba(245, 158, 11, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 6% 90%, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

body.payment-page .pay-hero .container {
  position: relative;
  z-index: 1;
}

.pay-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.82rem;
  color: #94a3b8;
}

.pay-breadcrumb a {
  color: #cbd5e1;
  transition: color 0.2s;
}

.pay-breadcrumb a:hover {
  color: #fff;
}

.pay-breadcrumb i {
  font-size: 0.62rem;
  opacity: 0.6;
}

.pay-breadcrumb span {
  color: #fff;
  font-weight: 600;
}

.pay-hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: end;
}

.pay-hero-copy h1 {
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0 0 16px;
}

.pay-hero-lead {
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 540px;
  margin: 0 0 22px;
}

.pay-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.pay-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 14px;
  border-radius: 999px;
}

.pay-hero-meta i {
  color: #fcd34d;
  font-size: 0.75rem;
}

.pay-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pay-hero-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
}

.pay-hero-panel {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--pay-radius-lg);
  padding: 22px 24px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pay-hero-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pay-hero-panel-head i {
  color: #fcd34d;
}

.pay-hero-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pay-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.pay-step span {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 800;
}

.pay-step em {
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 600;
  color: #e2e8f0;
}

/* ── Pillars ─────────────────────────────────────────────────── */
.pay-pillars {
  margin-top: -28px;
  padding-bottom: 32px;
  position: relative;
  z-index: 2;
}

.pay-pillar-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #fff;
  border: 1px solid var(--pay-line);
  border-radius: var(--pay-radius-lg);
  box-shadow: var(--pay-shadow);
  overflow: hidden;
}

.pay-pillar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  color: var(--pay-dark);
  border-right: 1px solid var(--pay-line);
  transition: background 0.2s;
}

.pay-pillar:last-child {
  border-right: none;
}

.pay-pillar:hover {
  background: #fffbeb;
}

.pay-pillar > i {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  color: var(--pay-accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.pay-pillar span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.pay-pillar strong {
  font-size: 0.9rem;
  font-weight: 700;
}

.pay-pillar em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--pay-muted);
}

/* ── Main layout ─────────────────────────────────────────────── */
.pay-main {
  padding: 16px 0 48px;
}

.pay-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: start;
}

.pay-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pay-side-card {
  background: #fff;
  border: 1px solid var(--pay-line);
  border-radius: var(--pay-radius);
  padding: 22px;
  box-shadow: 0 4px 16px rgba(22, 33, 62, 0.04);
}

.pay-side-alert {
  background: linear-gradient(135deg, #fffbeb, #fff);
  border-color: rgba(245, 158, 11, 0.2);
}

.pay-side-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--pay-dark);
  margin-bottom: 14px;
}

.pay-side-head i {
  color: var(--pay-accent-dark);
}

.pay-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pay-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--pay-muted);
  line-height: 1.55;
}

.pay-checklist i {
  width: 20px;
  color: var(--pay-accent-dark);
  margin-top: 2px;
  flex-shrink: 0;
}

.pay-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pay-method {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid var(--pay-line);
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--pay-dark);
}

.pay-method i {
  width: 28px;
  color: var(--pay-accent-dark);
  text-align: center;
}

.pay-side-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pay-side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--pay-line);
  background: #f8fafc;
  color: var(--pay-dark);
  transition: background 0.2s, border-color 0.2s;
}

.pay-side-link:hover {
  background: #fff;
  border-color: rgba(245, 158, 11, 0.2);
}

.pay-side-link > i {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff;
  color: var(--pay-accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.pay-side-wa > i {
  color: #25d366;
}

.pay-side-link span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pay-side-link strong {
  font-size: 0.82rem;
  font-weight: 700;
}

.pay-side-link em {
  font-style: normal;
  font-size: 0.76rem;
  color: var(--pay-muted);
  word-break: break-all;
}

/* ── Instructions panel ──────────────────────────────────────── */
.pay-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.pay-bank-panel {
  background: #fff;
  border: 1px solid var(--pay-line);
  border-radius: var(--pay-radius-lg);
  padding: 36px 40px;
  box-shadow: var(--pay-shadow);
}

.pay-bank-columns {
  display: grid;
  gap: 22px;
}

.pay-bank-block h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--pay-dark);
  letter-spacing: 0.01em;
}

.pay-bank-list {
  margin: 0;
}

.pay-bank-list > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px 16px;
  margin-bottom: 6px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.pay-bank-list dt {
  margin: 0;
  font-weight: 700;
  color: var(--pay-dark);
}

.pay-bank-list dd {
  margin: 0;
  color: #334155;
  font-weight: 600;
}

.pay-bank-iban {
  font-family: Consolas, "Courier New", monospace;
  letter-spacing: 0.03em;
  word-break: break-all;
}

.pay-bank-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 24px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 0.9rem;
  line-height: 1.55;
}

.pay-bank-warning i {
  margin-top: 2px;
  color: #ea580c;
}

.pay-bank-warning strong {
  color: #c2410c;
}

.pay-instructions-panel {
  background: #fff;
  border: 1px solid var(--pay-line);
  border-radius: var(--pay-radius-lg);
  padding: 36px 40px;
  box-shadow: var(--pay-shadow);
}

.pay-panel-head {
  margin-bottom: 24px;
}

.pay-panel-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: var(--pay-dark);
  letter-spacing: -0.02em;
}

.pay-panel-head p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--pay-muted);
  line-height: 1.65;
  max-width: 620px;
}

.pay-instructions {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.8;
}

.pay-instructions p {
  margin: 0 0 16px;
}

.pay-instructions p:last-child {
  margin-bottom: 0;
}

.pay-instructions h2,
.pay-instructions h3,
.pay-instructions h4 {
  margin: 24px 0 12px;
  font-weight: 800;
  color: var(--pay-dark);
  letter-spacing: -0.02em;
}

.pay-instructions h2 { font-size: 1.25rem; }
.pay-instructions h3 { font-size: 1.1rem; }
.pay-instructions h4 { font-size: 1rem; }

.pay-instructions ul,
.pay-instructions ol {
  margin: 0 0 18px;
  padding-left: 1.4rem;
}

.pay-instructions li {
  margin-bottom: 8px;
}

.pay-instructions li::marker {
  color: var(--pay-accent-dark);
}

.pay-instructions a {
  color: var(--pay-accent-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pay-instructions strong {
  color: var(--pay-dark);
  font-weight: 700;
}

.pay-instructions table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.9rem;
}

.pay-instructions th,
.pay-instructions td {
  padding: 12px 14px;
  border: 1px solid var(--pay-line);
  text-align: left;
}

.pay-instructions th {
  background: #fffbeb;
  font-weight: 700;
  color: var(--pay-dark);
}

.pay-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--pay-line);
}

.pay-panel-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  font-weight: 700;
}

/* ── Info cards ──────────────────────────────────────────────── */
.pay-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pay-info-card {
  background: #fff;
  border: 1px solid var(--pay-line);
  border-radius: var(--pay-radius);
  padding: 24px;
  box-shadow: 0 4px 16px rgba(22, 33, 62, 0.04);
}

.pay-info-card > i {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fffbeb;
  color: var(--pay-accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.pay-info-card h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--pay-dark);
}

.pay-info-card p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--pay-muted);
  line-height: 1.65;
}

/* ── FAQ ─────────────────────────────────────────────────────── */
.pay-section-head {
  margin-bottom: 20px;
}

.pay-section-head h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--pay-dark);
  letter-spacing: -0.02em;
}

.pay-section-head p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--pay-muted);
}

.pay-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.pay-faq-item {
  background: #fff;
  border: 1px solid var(--pay-line);
  border-radius: var(--pay-radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(22, 33, 62, 0.04);
}

.pay-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--pay-dark);
  cursor: pointer;
  list-style: none;
}

.pay-faq-item summary::-webkit-details-marker {
  display: none;
}

.pay-faq-item summary i {
  color: var(--pay-accent-dark);
  font-size: 0.75rem;
  transition: transform 0.2s;
}

.pay-faq-item[open] summary i {
  transform: rotate(180deg);
}

.pay-faq-item p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 0.88rem;
  color: var(--pay-muted);
  line-height: 1.65;
}

.pay-faq-item p a {
  color: var(--pay-accent-dark);
  font-weight: 600;
}

/* ── Split CTA ───────────────────────────────────────────────── */
.pay-cta {
  background: linear-gradient(135deg, #12182b 0%, #1a2744 55%, #243352 100%);
  padding: 48px 0 80px;
}

.pay-cta-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  border-radius: var(--pay-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  background: linear-gradient(135deg, #12182b 0%, #1a2744 55%, #243352 100%);
}

.pay-cta-main {
  padding: 48px 44px;
}

.pay-cta-main h2 {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.pay-cta-main p {
  margin: 0 0 28px;
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 480px;
}

.pay-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pay-cta-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
}

.pay-cta-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
  background: rgba(0, 0, 0, 0.15);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.pay-cta-contact {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  min-height: 76px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: #fff;
  transition: background 0.2s, border-color 0.2s;
}

.pay-cta-contact:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.pay-cta-contact i {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.22);
  color: #fcd34d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.pay-cta-wa i {
  background: rgba(37, 211, 102, 0.2);
  color: #4ade80;
}

.pay-cta-contact span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.pay-cta-contact strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}

.pay-cta-contact em {
  font-style: normal;
  font-size: 0.86rem;
  color: #cbd5e1;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .pay-hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pay-pillar-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .pay-pillar:nth-child(2) {
    border-right: none;
  }

  .pay-pillar:nth-child(odd) {
    border-bottom: 1px solid var(--pay-line);
  }

  .pay-layout {
    grid-template-columns: 1fr;
  }

  .pay-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .pay-side-contact {
    grid-column: span 2;
  }

  .pay-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .pay-cta-grid {
    grid-template-columns: 1fr;
  }

  .pay-cta-side {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .pay-faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.payment-page .pay-hero {
    padding: 22px 0 44px;
  }

  .pay-pillars {
    margin-top: -14px;
    padding-bottom: 24px;
  }

  .pay-pillar-bar {
    grid-template-columns: 1fr;
  }

  .pay-pillar {
    border-right: none;
    border-bottom: 1px solid var(--pay-line);
  }

  .pay-pillar:last-child {
    border-bottom: none;
  }

  .pay-hero-steps {
    grid-template-columns: 1fr;
  }

  .pay-sidebar {
    grid-template-columns: 1fr;
  }

  .pay-side-contact {
    grid-column: auto;
  }

  .pay-instructions-panel {
    padding: 28px 24px;
  }

  .pay-panel-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .pay-cta-main,
  .pay-cta-side {
    padding: 36px 28px;
  }
}
