/* ── payment.css v2 — matches booking page style ── */

/* ── Page ── */
.pay-page {
  background: #f3f4f6;
  min-height: 100vh;
  padding: 32px 16px 80px;
  font-family: 'Poppins', sans-serif;
}

/* ════════════════════════════════
   MAIN FORM CARD
════════════════════════════════ */
.pay-card {
  max-width: 600px;
  margin: 0 auto;
  border-radius: 12px;
  border: 0.5px solid #e5e7eb;
  overflow: hidden;
  background: #fff;
}

/* ── Card header — white with orange top stripe ── */
.pay-card-header {
  border-top: 4px solid #f59e0b;
  padding: 24px 32px 20px;
  background: #fff;
}

.pay-eyebrow {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 4px;
}

.pay-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 20px;
  color: #111827;
  line-height: 1.2;
}

/* ── Step track ── */
.pay-steps {
  display: flex;
  align-items: center;
}

.pay-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.pay-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #9ca3af;
  background: #fff;
}

.pay-step.active .pay-step-dot {
  background: #1a4b89;
  border-color: #1a4b89;
  color: #fff;
}

.pay-step.done .pay-step-dot {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #fff;
}

.pay-step-label {
  font-size: 0.7rem;
  color: #9ca3af;
  font-weight: 500;
}

.pay-step.active .pay-step-label { color: #1a4b89; font-weight: 700; }
.pay-step.done   .pay-step-label { color: #6b7280; }

.pay-step-line {
  flex: 1;
  height: 2px;
  background: #e5e7eb;
  margin: 0 6px;
  margin-bottom: 16px;
  min-width: 20px;
}

.pay-step-line.done   { background: #f59e0b; }
.pay-step-line.active { background: #e5e7eb; }

/* ── Card body ── */
.pay-card-body {
  background: #fff;
  padding: 28px 32px 28px;
}

/* ── Error banner ── */
.pay-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.875rem;
  margin-bottom: 16px;
}

/* ── Field layout ── */
.pay-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.pay-row-single { margin-bottom: 14px; }

.pay-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 5px;
}

.pay-field label .req { color: #ef4444; margin-left: 2px; }

.pay-input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #d1d5db;
  border-radius: 7px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  color: #111827;
  background: #fff;
  transition: border-color 0.15s;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.pay-input:focus {
  outline: none;
  border-color: #1a4b89;
}

.pay-input::placeholder { color: #9ca3af; }

.pay-input-wrap { position: relative; }
.pay-input-prefix {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  font-size: 0.95rem; font-weight: 600; color: #6b7280; pointer-events: none;
}
.pay-input-wrap .pay-input { padding-left: 24px; }

/* ── Fee notice ── */
.pay-fee-notice {
  display: flex; align-items: center; gap: 7px;
  margin-top: 9px; padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  font-size: 0.8rem; color: #6b7280;
}

/* ── Divider ── */
.pay-divider { height: 1px; background: #e5e7eb; margin: 18px 0; }

/* ── Terms ── */
.pay-terms {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 14px 0 18px; font-size: 0.82rem; line-height: 1.6;
  color: #6b7280;
}
.pay-terms input[type="checkbox"] {
  margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px;
  accent-color: #1a4b89; cursor: pointer;
}
.pay-terms label { cursor: pointer; }
.pay-terms a { color: #1a4b89; font-weight: 600; text-decoration: underline; }

/* ── CTA button ── */
.pay-submit {
  width: 100%; height: 48px;
  background: #1a4b89;
  color: #fff;
  border: none; border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.15s;
}
.pay-submit:hover { background: #153d70; }
.pay-submit:disabled { opacity: 0.55; cursor: not-allowed; }

/* ── Trust footer strip ── */
.pay-trust {
  background: #f8fafc;
  border-top: 0.5px solid #e5e7eb;
  padding: 12px 32px;
  display: flex; align-items: center; justify-content: center;
  gap: 6px; flex-wrap: wrap;
}

.pay-trust-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
  color: #9ca3af; text-transform: uppercase;
}
.pay-trust-sep { color: #d1d5db; font-size: 12px; padding: 0 4px; }


/* ════════════════════════════════
   GATEWAY STEP (step 2) — side-by-side
════════════════════════════════ */
.pay-gw-wrap {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 24px;
  align-items: start;
}

/* ── Left column ── */
.pay-gw-left {
  position: sticky;
  top: 24px;
}

.pay-gw-outer {
  border-radius: 12px;
  border: 0.5px solid #e5e7eb;
  overflow: hidden;
  background: #fff;
}

.pay-gw-header {
  border-top: 4px solid #f59e0b;
  padding: 24px 28px 20px;
  background: #fff;
}

.pay-gw-summary {
  background: #f8fafc;
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  border-top: 0.5px solid #e5e7eb;
  border-bottom: 0.5px solid #e5e7eb;
}

.pay-gw-trip-name {
  font-size: 0.9rem; font-weight: 600; color: #111827;
  line-height: 1.3;
}

.pay-gw-trip-detail { font-size: 0.78rem; color: #6b7280; margin-top: 2px; }

.pay-gw-amount-label {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: #9ca3af; text-align: right;
}

.pay-gw-amount {
  font-size: 1.35rem; font-weight: 700;
  color: #1a4b89; text-align: right; line-height: 1.2;
}

.pay-gw-breakdown {
  background: #fff;
  padding: 14px 24px 16px;
  font-size: 0.875rem;
  border-bottom: 0.5px solid #e5e7eb;
}

.pay-gw-card-footer {
  background: #f8fafc;
  padding: 12px 24px 14px;
}

.pay-gw-brow { display: flex; justify-content: space-between; padding: 3px 0; color: #6b7280; }
.pay-gw-brow-label { color: #6b7280; }
.pay-gw-brow-val { color: #111827; font-weight: 500; }
.pay-gw-bdiv { height: 1px; background: #e5e7eb; margin: 7px 0; }
.pay-gw-btotal { display: flex; justify-content: space-between; padding: 3px 0; }
.pay-gw-btotal-label { color: #111827; font-weight: 700; }
.pay-gw-btotal-val { color: #1a4b89; font-weight: 700; font-size: 1rem; }

.pay-gw-secure {
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
  font-size: 0.7rem; color: #9ca3af; flex-wrap: wrap;
  text-transform: uppercase; font-weight: 600; letter-spacing: 0.05em;
}
.pay-gw-secure-item { display: flex; align-items: center; gap: 4px; }
.pay-gw-sep { color: #d1d5db; padding: 0 4px; }

.pay-back-link {
  display: block; text-align: center; margin-top: 10px;
  font-size: 0.8rem; color: #6b7280; cursor: pointer;
  background: none; border: none; text-decoration: underline;
  font-family: 'Poppins', sans-serif;
}
.pay-back-link:hover { color: #374151; }

/* ── Right column ── */
.pay-gw-right {}

.pay-gw-iframe-wrap {
  position: relative;
  min-height: 500px;
  background: #fff;
  border-radius: 12px;
  border: 0.5px solid #e5e7eb;
  overflow: hidden;
}
.pay-gw-iframe-wrap iframe { width: 100%; height: 700px; border: none; display: block; }

.pay-gw-loading {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #fff; z-index: 2; transition: opacity 0.3s;
}
.pay-gw-loading.hidden { opacity: 0; pointer-events: none; }
.pay-gw-spinner {
  width: 32px; height: 32px;
  border: 3px solid #e5e7eb;
  border-top-color: #1a4b89;
  border-radius: 50%; animation: pay-spin 0.8s linear infinite;
}
@keyframes pay-spin { to { transform: rotate(360deg); } }
.pay-gw-loading p { margin-top: 14px; font-size: 0.82rem; color: #6b7280; }


/* ════════════════════════════════
   RESULT STATES
════════════════════════════════ */
.pay-result-outer {
  max-width: 520px;
  margin: 0 auto;
}

.pay-result-card {
  border-radius: 12px;
  overflow: hidden;
  border: 0.5px solid #e5e7eb;
}

/* Success */
.pay-result-card.success {
  background: #fff;
  padding: 48px 40px 44px;
  text-align: center;
}

.pay-result-card.success .pay-result-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: #f59e0b;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  color: #fff;
}

.pay-result-card.success .pay-result-h {
  font-size: 1.5rem; font-weight: 700;
  color: #111827; margin-bottom: 10px;
}

.pay-result-card.success .pay-result-sub {
  font-size: 0.9rem; line-height: 1.7;
  color: #6b7280; max-width: 360px; margin: 0 auto 22px;
}

.pay-result-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px; padding: 7px 14px;
  font-size: 0.78rem; font-weight: 600;
  color: #15803d; margin-bottom: 26px;
}

/* Failure */
.pay-result-card.failed {
  background: #fff;
  padding: 48px 40px 44px;
  text-align: center;
}

.pay-result-card.failed .pay-result-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: #fef2f2;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.pay-result-card.failed .pay-result-icon svg { width: 36px; height: 36px; }

.pay-result-card.failed .pay-result-h {
  font-size: 1.5rem; font-weight: 700;
  color: #111827; margin-bottom: 10px;
}

.pay-result-card.failed .pay-result-sub {
  font-size: 0.9rem; line-height: 1.7;
  color: #6b7280; max-width: 360px; margin: 0 auto 24px;
}

.pay-result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.pay-btn {
  display: inline-flex; align-items: center; height: 44px; padding: 0 22px;
  border-radius: 8px; font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer; text-decoration: none; transition: all 0.15s; border: none;
}
.pay-btn-primary { background: #1a4b89; color: #fff; }
.pay-btn-primary:hover { background: #153d70; color: #fff; }
.pay-btn-outline { background: transparent; color: #6b7280; border: 1.5px solid #d1d5db; }
.pay-btn-outline:hover { border-color: #9ca3af; color: #374151; }


/* ── Responsive ── */
@media (max-width: 860px) {
  .pay-gw-wrap {
    grid-template-columns: 1fr;
  }
  .pay-gw-left {
    position: static;
  }
}

@media (max-width: 680px) {
  .pay-page { padding: 20px 12px 60px; }
  .pay-card-header, .pay-gw-header { padding: 20px 20px 16px; }
  .pay-card-body { padding: 20px 20px 20px; }
  .pay-trust { padding: 10px 20px; }
  .pay-row { grid-template-columns: 1fr; }
  .pay-gw-summary, .pay-gw-breakdown, .pay-gw-card-footer { padding-left: 20px; padding-right: 20px; }
  .pay-gw-iframe-wrap iframe { height: 550px; }
  .pay-result-card.success,
  .pay-result-card.failed { padding: 36px 24px 36px; }
}
