/* #########################################################
   PAGE: Online Payment  —  html.pg-payment
   ######################################################### */
/* =========================================================
   Travel Point – Online payment page: QR / UPI / Bank / Cash tabs (left) + payment confirmation form (right)
   Loaded after common.css + inner.css (hero, breadcrumbs, .btn--line).
   ========================================================= */

/* Hero trust points */
:where(.pg-payment) .pay-trust{ display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: clamp(14px, 1.6vw, 26px); }
:where(.pg-payment) .pay-trust li{ display: inline-flex; align-items: center; gap: 8px; font-size: clamp(12.5px, .95vw, 14.5px); font-weight: 500; color: var(--heading); }
:where(.pg-payment) .pay-trust i{ width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--gold-2); box-shadow: 0 3px 10px rgba(18, 48, 46, .08); font-size: 13px; }

/* =========================================================
   LAYOUT
   ========================================================= */
:where(.pg-payment) .pay{ position: relative; background: linear-gradient(180deg, #fff 0%, #fbf8f2 100%); padding: clamp(10px, 1.2vw, 24px) 0 clamp(40px, 4.4vw, 84px); }
:where(.pg-payment) .pay::before{
  content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 96px; opacity: .06; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 14%, transparent 86%, #000 100%); mask-image: linear-gradient(90deg, #000 0%, transparent 14%, transparent 86%, #000 100%);
}
:where(.pg-payment) .pay__grid{ display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: clamp(16px, 1.8vw, 34px); align-items: start; }

:where(.pg-payment) .pcard{ position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 14px 40px rgba(18, 48, 46, .07); padding: clamp(20px, 2vw, 38px); }
:where(.pg-payment) .pcard__title{ font-family: var(--serif); font-weight: 700; color: var(--heading); font-size: clamp(22px, 1.9vw, 32px); line-height: 1.15; }
:where(.pg-payment) .pcard__title::after{ content: ""; display: block; width: 56px; height: 3px; border-radius: 3px; margin-top: 10px; background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%); }
:where(.pg-payment) .pcard__lead{ margin-top: 12px; font-size: clamp(13.5px, 1vw, 15px); color: var(--muted); line-height: 1.6; }
:where(.pg-payment) .pay__form{ scroll-margin-top: 94px; }
@media (max-width: 1100px){ :where(.pg-payment) .pay__form{ scroll-margin-top: calc(var(--appbar-h) + 12px); } }

/* =========================================================
   TABS
   ========================================================= */
:where(.pg-payment) .ptabs{ display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: clamp(16px, 1.6vw, 26px) 0 0; padding: 6px; background: #f6f1e6; border-radius: 14px; }
:where(.pg-payment) .ptab{
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 72px; padding: 10px 8px;
  font-family: var(--sans); font-size: 13.5px; font-weight: 600; color: #3d4a49; background: transparent; border: 1.5px solid transparent; border-radius: 10px; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, box-shadow .25s;
}
:where(.pg-payment) .ptab i{ font-size: 20px; color: var(--gold-2); transition: color .25s; }
:where(.pg-payment) .ptab:hover{ background: rgba(255, 255, 255, .7); color: var(--heading); }
:where(.pg-payment) .ptab.is-active{ background: var(--teal-800); color: #fff; border-color: var(--teal-800); box-shadow: 0 8px 18px rgba(0, 55, 56, .22); }
:where(.pg-payment) .ptab.is-active i{ color: var(--gold-mid); }
:where(.pg-payment) .ptab:focus-visible{ outline: 2px solid var(--gold); outline-offset: 2px; }

:where(.pg-payment) .ppanel{ padding-top: clamp(18px, 1.8vw, 30px); animation: ppanelIn .35s ease; }
:where(.pg-payment) .ppanel[hidden]{ display: none; }
@keyframes ppanelIn{ from{ opacity: 0; transform: translateY(6px); } to{ opacity: 1; transform: none; } }
:where(.pg-payment) .ppanel__next{ margin-top: clamp(18px, 1.6vw, 26px); width: 100%; }

:where(.pg-payment) .psteps{ counter-reset: step; list-style: none; display: grid; gap: 10px; margin-top: 16px; }
:where(.pg-payment) .psteps li{ counter-increment: step; position: relative; padding-left: 36px; font-size: 14px; line-height: 1.5; color: #2b3737; }
:where(.pg-payment) .psteps li::before{
  content: counter(step); position: absolute; left: 0; top: -1px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: var(--teal-800); background: #fbe9c0; border: 1px solid #efd08f;
}
:where(.pg-payment) .psteps b{ color: var(--heading); }

/* Copy button */
:where(.pg-payment) .pcopy{
  display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 6px 11px; border-radius: 7px; cursor: pointer;
  font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--teal-700); background: #eef6f5; border: 1px solid #cfe2e0; transition: background .2s, color .2s, border-color .2s;
}
:where(.pg-payment) .pcopy:hover{ background: var(--teal-700); border-color: var(--teal-700); color: #fff; }
:where(.pg-payment) .pcopy.is-done{ background: #1e8e3e; border-color: #1e8e3e; color: #fff; }

/* ---------- QR ---------- */
:where(.pg-payment) .pqr{ display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 2vw, 34px); align-items: center; }
:where(.pg-payment) .pqr__frame{ position: relative; width: clamp(200px, 15vw, 260px); aspect-ratio: 1; padding: 14px; background: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(18, 48, 46, .12); }
:where(.pg-payment) .pqr__frame img, :where(.pg-payment) .pqr__frame svg{ display: block; width: 100%; height: 100%; object-fit: contain; }
:where(.pg-payment) .pqr__corner{ position: absolute; width: 26px; height: 26px; border: 3px solid var(--gold); }
:where(.pg-payment) .pqr__corner--tl{ top: -2px; left: -2px; border-right: 0; border-bottom: 0; border-top-left-radius: 16px; }
:where(.pg-payment) .pqr__corner--tr{ top: -2px; right: -2px; border-left: 0; border-bottom: 0; border-top-right-radius: 16px; }
:where(.pg-payment) .pqr__corner--bl{ bottom: -2px; left: -2px; border-right: 0; border-top: 0; border-bottom-left-radius: 16px; }
:where(.pg-payment) .pqr__corner--br{ bottom: -2px; right: -2px; border-left: 0; border-top: 0; border-bottom-right-radius: 16px; }
:where(.pg-payment) .pqr__info h3{ font-family: var(--serif); font-size: clamp(18px, 1.35vw, 22px); color: var(--heading); }
:where(.pg-payment) .pqr__apps{ margin-top: 6px; font-size: 12.5px; color: var(--muted); }
:where(.pg-payment) .pqr__apps i{ color: var(--heading); font-size: 1.3em; vertical-align: -2px; }
:where(.pg-payment) .pqr__dl{ margin-top: 16px; }

/* ---------- UPI ---------- */
:where(.pg-payment) .pupi__label{ font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #b4782a; }
:where(.pg-payment) .pupi__id{ display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; padding: 14px 16px; border-radius: 12px; background: #fbf7ef; border: 1.5px dashed #e6cd96; }
:where(.pg-payment) .pupi__id b{ font-size: clamp(17px, 1.4vw, 22px); color: var(--heading); word-break: break-all; letter-spacing: .01em; }
:where(.pg-payment) .pupi__payee{ margin-top: 10px; font-size: 14px; color: var(--muted); }
:where(.pg-payment) .pupi__payee b{ color: var(--heading); }
:where(.pg-payment) .pupi__app{ display: none; margin-top: 14px; width: 100%; }

/* ---------- Bank ---------- */
:where(.pg-payment) .pbank__lead{ font-size: 14px; color: #2b3737; }
:where(.pg-payment) .pbank__lead i{ color: var(--gold-2); margin-right: 4px; }
:where(.pg-payment) .pbank__list{ margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
:where(.pg-payment) .pbank__row{ display: grid; grid-template-columns: minmax(110px, .7fr) minmax(0, 1.3fr); border-top: 1px solid var(--line); }
:where(.pg-payment) .pbank__row:first-child{ border-top: 0; }
:where(.pg-payment) .pbank__row:nth-child(odd){ background: #fdfbf6; }
:where(.pg-payment) .pbank__row dt{ padding: 12px 14px; font-size: 13px; font-weight: 500; color: var(--muted); }
:where(.pg-payment) .pbank__row dd{ display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px 8px 0; font-size: 14.5px; font-weight: 600; color: var(--heading); word-break: break-word; }
:where(.pg-payment) .pbank__hint{ margin-top: 12px; font-size: 13px; color: var(--muted); }

/* ---------- Cash ---------- */
:where(.pg-payment) .pcash__text{ font-size: 14px; color: #2b3737; line-height: 1.6; }
:where(.pg-payment) .pcash__list{ display: grid; gap: 14px; margin: 16px 0 18px; }
:where(.pg-payment) .pcash__list li{ display: flex; gap: 14px; align-items: flex-start; }
:where(.pg-payment) .pcash__ic{ flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #fbf1dc; color: var(--teal-800); font-size: 17px; }
:where(.pg-payment) .pcash__list h3{ font-size: 14px; font-weight: 600; color: var(--heading); margin-bottom: 2px; }
:where(.pg-payment) .pcash__list address, :where(.pg-payment) .pcash__list p{ font-style: normal; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
:where(.pg-payment) .pcash__list a:hover{ color: var(--gold-2); }

/* Safety note + empty state */
:where(.pg-payment) .pnote{ display: flex; gap: 12px; align-items: flex-start; margin-top: clamp(18px, 1.6vw, 26px); padding: 14px 16px; border-radius: 12px; background: #fff7e6; border: 1px solid #f1d79c; }
:where(.pg-payment) .pnote i{ color: #b4782a; font-size: 18px; margin-top: 2px; }
:where(.pg-payment) .pnote p{ font-size: 13px; line-height: 1.55; color: #5a4a2a; }
:where(.pg-payment) .pempty{ display: flex; gap: 12px; margin-top: 18px; padding: 16px; border-radius: 12px; background: #f3f8f7; color: var(--heading); font-size: 14px; }
:where(.pg-payment) .pempty i{ color: var(--teal-700); font-size: 18px; margin-top: 2px; }
:where(.pg-payment) .pempty a{ font-weight: 600; text-decoration: underline; }

/* =========================================================
   FORM
   ========================================================= */
:where(.pg-payment) .pform{ display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-top: clamp(16px, 1.6vw, 26px); }
:where(.pg-payment) .pfield{ min-width: 0; }
:where(.pg-payment) .pfield--full{ grid-column: 1 / -1; }
:where(.pg-payment) .pfield > label{ display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #233131; }
:where(.pg-payment) .pfield sup{ color: #d33; font-size: .9em; top: 0; }
:where(.pg-payment) .pcontrol{
  position: relative; display: flex; align-items: center; min-height: 48px; background: #fff; border: 1.5px solid #dcd6c8; border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}
:where(.pg-payment) .pcontrol > i{ position: absolute; left: 14px; color: #a7976f; font-size: 14px; pointer-events: none; }
:where(.pg-payment) .pcontrol--area > i{ top: 15px; }
:where(.pg-payment) .pcontrol__prefix{ padding-left: 40px; font-size: 14px; font-weight: 500; color: #4e5a5a; }
:where(.pg-payment) .pcontrol input, :where(.pg-payment) .pcontrol select, :where(.pg-payment) .pcontrol textarea{
  width: 100%; min-width: 0; height: 100%; min-height: 45px; padding: 10px 14px 10px 40px; border: 0; outline: 0; background: transparent; border-radius: 10px;
  font-family: var(--sans); font-size: 14px; color: var(--text);
}
:where(.pg-payment) .pcontrol__prefix + input{ padding-left: 8px; }
:where(.pg-payment) .pcontrol textarea{ resize: vertical; min-height: 84px; line-height: 1.5; }
:where(.pg-payment) .pcontrol select{ appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer; }
:where(.pg-payment) .pcontrol--select::after{ content: "\f107"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; right: 14px; color: #6d7a79; pointer-events: none; }
:where(.pg-payment) .pcontrol:focus-within{ border-color: var(--gold); box-shadow: 0 0 0 4px rgba(211, 162, 74, .16); }
:where(.pg-payment) .pcontrol.is-invalid, :where(.pg-payment) .pdrop.is-invalid{ border-color: #d93a3a; box-shadow: 0 0 0 3px rgba(217, 58, 58, .12); }
:where(.pg-payment) input::placeholder, :where(.pg-payment) textarea::placeholder{ color: #9aa3a2; }

/* Receipt drop zone */
:where(.pg-payment) .pdrop{
  position: relative; display: block; border: 1.8px dashed #d4c39b; border-radius: 12px; background: #fdfaf3; cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
:where(.pg-payment) .pdrop:hover, :where(.pg-payment) .pdrop.is-over{ border-color: var(--gold-2); background: #fbf2de; }
:where(.pg-payment) .pdrop:focus-within{ box-shadow: 0 0 0 4px rgba(211, 162, 74, .16); }
:where(.pg-payment) .pdrop input{ position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
:where(.pg-payment) .pdrop.has-file input{ pointer-events: none; }
:where(.pg-payment) .pdrop__empty{ display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 14px; text-align: center; font-size: 13.5px; color: #4e5a5a; }
:where(.pg-payment) .pdrop__empty i{ font-size: 28px; color: var(--gold-2); margin-bottom: 4px; }
:where(.pg-payment) .pdrop__empty b{ color: var(--heading); }
:where(.pg-payment) .pdrop__empty small{ font-size: 12px; color: #8a9291; }
:where(.pg-payment) .pdrop__file{ position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 12px; }
:where(.pg-payment) .pdrop__file[hidden]{ display: none; }
:where(.pg-payment) .pdrop__thumb{ flex: none; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: #c0392b; font-size: 26px; }
:where(.pg-payment) .pdrop__thumb img{ width: 100%; height: 100%; object-fit: cover; }
:where(.pg-payment) .pdrop__meta{ display: flex; flex-direction: column; min-width: 0; flex: 1; }
:where(.pg-payment) .pdrop__meta b{ font-size: 13.5px; color: var(--heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:where(.pg-payment) .pdrop__meta small{ font-size: 12px; color: #8a9291; }
:where(.pg-payment) .pdrop__x{ flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #f1e9d8; color: #6b5a33; cursor: pointer; }
:where(.pg-payment) .pdrop__x:hover{ background: #d93a3a; color: #fff; }

:where(.pg-payment) .pform__submit{ grid-column: 1 / -1; width: 100%; padding: 15px 24px; font-size: 15px; margin-top: 4px; }
:where(.pg-payment) .pform__submit[aria-busy="true"]{ opacity: .7; pointer-events: none; }
:where(.pg-payment) .pform__submit[aria-busy="true"] i{ animation: pspin 1s linear infinite; }
:where(.pg-payment) .pform__submit[aria-busy="true"] i::before{ content: "\f110"; }
@keyframes pspin{ to{ transform: rotate(360deg); } }
:where(.pg-payment) .pform__status{ grid-column: 1 / -1; font-size: 14px; line-height: 1.5; min-height: 0; }
:where(.pg-payment) .pform__status:empty{ display: none; }
:where(.pg-payment) .pform__status.is-error{ padding: 12px 14px; border-radius: 10px; color: #a4262c; background: #fdecec; border: 1px solid #f5c2c2; }
:where(.pg-payment) .pform__status.is-ok{ padding: 12px 14px; border-radius: 10px; color: #17602c; background: #e9f7ee; border: 1px solid #bfe5cb; }
:where(.pg-payment) .pform__secure{ grid-column: 1 / -1; text-align: center; font-size: 12px; color: #7c8786; }
:where(.pg-payment) .pform__secure i{ color: #1e8e3e; margin-right: 4px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px){
  :where(.pg-payment) .pqr{ grid-template-columns: 1fr; justify-items: center; text-align: center; }
  :where(.pg-payment) .pqr .psteps{ text-align: left; }
}
@media (max-width: 900px){
  :where(.pg-payment) .pay__grid{ grid-template-columns: 1fr; }
  :where(.pg-payment) .pupi__app{ display: inline-flex; }
}
@media (max-width: 560px){
  :where(.pg-payment) .pform{ grid-template-columns: 1fr; }
  :where(.pg-payment) .ptabs{ grid-template-columns: repeat(2, 1fr); }
  :where(.pg-payment) .ptab{ min-height: 60px; flex-direction: row; gap: 8px; }
  :where(.pg-payment) .ptab i{ font-size: 17px; }
  :where(.pg-payment) .pcard{ border-radius: 14px; padding: 18px 16px; }
  :where(.pg-payment) .pbank__row{ grid-template-columns: 1fr; }
  :where(.pg-payment) .pbank__row dt{ padding: 10px 12px 0; font-size: 12px; }
  :where(.pg-payment) .pbank__row dd{ padding: 4px 12px 10px; }
  :where(.pg-payment) .pay-trust{ gap: 8px 14px; }
}
