/* Payment Page v2 — scoped to .hv2-pay* classes only */

.hv2-pay {
  background: #f1f5f9;
  min-height: 60vh;
}

.hv2-pay__container {
  max-width: 1200px;
}

.hv2-pay__layout {
  align-items: flex-start;
}

/* ── Sidebar (left column) ── */
.hv2-pay__sidebar {
  position: sticky;
  top: 1rem;
}

.hv2-pay__timer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  font-size: 0.8125rem;
  color: #92400e;
  margin-bottom: 1rem;
}

.hv2-pay__timer i {
  color: #d97706;
}

.hv2-pay__timer strong {
  color: #b45309;
  font-weight: 700;
}

.hv2-pay .payment-title h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.65rem;
}

.hv2-pay__fare-card,
.hv2-pay__sidebar > .card,
.hv2-pay__sidebar .card.mb-3 {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  margin-bottom: 1rem;
}

.hv2-pay__fare-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid #f3f4f6;
}

.hv2-pay__fare-head h5 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #111827;
}

.hv2-pay__fare-travellers {
  display: inline-block;
  font-size: 0.72rem;
  color: #1d4ed8;
  font-weight: 600;
  background: #eff6ff;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  line-height: 1.4;
}

.hv2-pay__fare-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1.15rem;
  gap: 0.75rem;
}

.hv2-pay__fare-line-label {
  font-size: 0.8125rem;
  color: #6b7280;
  font-weight: 500;
}

.hv2-pay__fare-line-val {
  font-size: 0.8125rem;
  color: #111827;
  font-weight: 600;
  white-space: nowrap;
}

.hv2-pay__fare-line-val--disc {
  color: #16a34a;
}

.hv2-pay .payment_farebrkup {
  padding: 0.55rem 1.15rem !important;
  border-bottom: 1px solid #f9fafb !important;
}

.hv2-pay .payment_farebrkup h5,
.hv2-pay .payment_farebrkup h6 {
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  color: #6b7280 !important;
  margin: 0 !important;
}

.hv2-pay .payment_farebrkup b,
.hv2-pay .payment_farebrkup .card-text {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.hv2-pay__fare-total {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.85rem 1.15rem 1rem;
  border-top: 1px solid #e5e7eb;
}

.hv2-pay__fare-total-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #111827;
  display: block;
  padding-top: 0.15rem;
}

.hv2-pay__fare-total-right {
  text-align: right;
}

.hv2-pay__fare-total-amt {
  font-size: 1.2rem;
  font-weight: 700;
  color: #111827;
  display: block;
}

.hv2-pay__fare-guarantee {
  margin: 0.2rem 0 0;
  font-size: 0.68rem;
  color: #16a34a;
  font-weight: 600;
}

/* Flight summary compact card */
.hv2-pay__flight-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1rem 1.15rem 1.1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.hv2-pay__flight-title {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #111827;
}

.hv2-pay__flight-route {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.hv2-pay__flight-end {
  flex: 0 0 auto;
  min-width: 4.5rem;
}

.hv2-pay__flight-end--right {
  text-align: right;
}

.hv2-pay__flight-code {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.hv2-pay__flight-datetime {
  display: block;
  font-size: 0.72rem;
  color: #6b7280;
  line-height: 1.35;
}

.hv2-pay__flight-mid {
  flex: 1;
  text-align: center;
  padding-top: 0.35rem;
  position: relative;
}

.hv2-pay__flight-mid::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0.65rem;
  height: 1px;
  background: #d1d5db;
  z-index: 0;
}

.hv2-pay__flight-mid img {
  position: relative;
  z-index: 1;
  height: 16px;
  width: auto;
  background: #fff;
  padding: 0 0.35rem;
  opacity: 0.85;
}

.hv2-pay__flight-dur {
  position: relative;
  z-index: 1;
  font-size: 0.68rem;
  color: #9ca3af;
  display: block;
  margin-top: 0.15rem;
}

.hv2-pay__flight-times {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #4b5563;
}

.hv2-pay__refund-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  font-size: 0.72rem;
  color: #16a34a;
  font-weight: 600;
  margin-top: 0.75rem;
}

.hv2-pay .booking-summary-card {
  padding: 1rem 1.15rem;
}

.hv2-pay .booking-summary-card .location {
  font-size: 0.7rem;
  font-weight: 700;
  color: #2563eb;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.hv2-pay .location-block {
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
}

.hv2-pay .traveller .title,
.hv2-pay .contact_form .title {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  color: #9ca3af !important;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

/* ── Main payment card (right column) ── */
.hv2-pay__main {
  margin-bottom: 1.5rem;
}

.hv2-pay__card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.hv2-pay__card-inner {
  display: flex;
  align-items: stretch;
  min-height: 420px;
}

/* Payment methods nav — Figma pills */
.hv2-pay__methods-nav {
  flex: 0 0 200px;
  border-right: 1px solid #e5e7eb;
  padding: 1.25rem 1rem;
  background: #fafafa;
}

.hv2-pay__nav-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.85rem;
  padding: 0 0.15rem;
}

.hv2-pay__methods-nav .nav-link {
  width: 100% !important;
  text-align: center !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 999px !important;
  background: #fafafa !important;
  color: #374151 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 0.55rem 0.85rem !important;
  margin-bottom: 0.45rem !important;
  border-right: 1px solid #e5e7eb !important;
  border-bottom: 1px solid #e5e7eb !important;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.hv2-pay__methods-nav .nav-link:hover {
  border-color: #93c5fd !important;
  color: #2563eb !important;
}

.hv2-pay__methods-nav .nav-link.active {
  background: #eff6ff !important;
  border-color: #2563eb !important;
  color: #2563eb !important;
  border-left: 1px solid #2563eb !important;
}

.hv2-pay__methods-nav .hv2-pay__method-hidden {
  display: none !important;
}

/* Tab content area */
.hv2-pay__methods-content {
  flex: 1;
  padding: 1.35rem 1.5rem !important;
  min-width: 0;
}

.hv2-pay__panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.15rem;
  gap: 1rem;
}

.hv2-pay__panel-title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.2rem;
}

.hv2-pay__panel-sub {
  font-size: 0.78rem;
  color: #6b7280;
  margin: 0;
}

.hv2-pay__secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #16a34a;
  white-space: nowrap;
}

.hv2-pay__secure-badge i {
  font-size: 0.75rem;
}

/* UPI layout (Figma) */
.hv2-pay__upi-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 1.25rem;
}

.hv2-pay__qr-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.15rem;
  text-align: center;
}

.hv2-pay__qr-placeholder {
  width: 140px;
  height: 140px;
  margin: 0 auto 0.65rem;
  background: #fff;
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 2.5rem;
}

.hv2-pay__qr-label {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0 0 0.5rem;
}

.hv2-pay__upi-apps {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  color: #9ca3af;
}

.hv2-pay__or-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 600;
  padding-top: 3rem;
}

.hv2-pay__or-divider::before,
.hv2-pay__or-divider::after {
  content: '';
  width: 1px;
  height: 80px;
  background: #e5e7eb;
  position: absolute;
}

.hv2-pay__or-divider {
  position: relative;
  flex-direction: column;
  gap: 0.5rem;
}

.hv2-pay__vpa-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.4rem;
  display: block;
}

.hv2-pay__vpa-input-wrap {
  display: flex;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.hv2-pay__vpa-input {
  flex: 1;
  border: none;
  padding: 0.65rem 0.85rem;
  font-size: 0.8125rem;
  outline: none;
}

.hv2-pay__vpa-verify {
  background: none;
  border: none;
  border-left: 1px solid #e5e7eb;
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0 0.85rem;
  cursor: pointer;
}

.hv2-pay__vpa-hint {
  font-size: 0.68rem;
  color: #9ca3af;
  margin-bottom: 1rem;
}

/* Form elements inside panels */
.hv2-pay__methods-content .tab-pane p {
  font-size: 0.78rem;
  color: #6b7280;
  line-height: 1.5;
}

.hv2-pay__methods-content .form-check-label {
  font-size: 0.78rem;
  color: #4b5563;
}

.hv2-pay__methods-content .form-check-label a {
  color: #2563eb;
}

.hv2-pay__pay-btn {
  display: block;
  width: 100%;
  background: #ef4444 !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 0.8rem 1rem !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin-top: 0.5rem;
}

.hv2-pay__pay-btn:hover {
  background: #dc2626 !important;
}

.hv2-pay__trust-badges {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
  font-size: 0.65rem;
  color: #9ca3af;
  font-weight: 600;
}

.hv2-pay__trust-badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Security notice bar */
.hv2-pay__secure-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #f1f5f9;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin-top: 1rem;
  font-size: 0.78rem;
  color: #1e40af;
  line-height: 1.5;
}

.hv2-pay__secure-notice i {
  font-size: 1.25rem;
  color: #2563eb;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.hv2-pay__secure-notice strong {
  color: #2563eb;
  font-size: 14px!important;
}

.hv2-pay__secure-notice p {
    font-size: 12px;
    color: #9ca3af;
}

/* Hide old payment title in main col */
.hv2-pay__main > .payment-title {
  display: none;
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
  .hv2-pay__sidebar {
    position: static;
    margin-bottom: 1.5rem;
  }

  .hv2-pay__card-inner {
    flex-direction: column;
    min-height: 0;
  }

  .hv2-pay__methods-nav {
    flex: none;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.85rem;
  }

  .hv2-pay__methods-nav .nav-link {
    width: auto !important;
    margin-bottom: 0 !important;
  }

  .hv2-pay__upi-grid {
    grid-template-columns: 1fr;
  }

  .hv2-pay__or-divider {
    padding: 0.5rem 0;
    flex-direction: row;
  }

  .hv2-pay__or-divider::before,
  .hv2-pay__or-divider::after {
    display: none;
  }
}
