/**
 * assets/css/payment_panel.css
 * Shared styles for the bank-details/QR payment panel and the
 * pn-* form components, used by pay_now.php, open_account.php,
 * and apply_account.php so all three look and behave identically.
 */

:lang(gu) { font-family: 'Noto Sans Gujarati', 'Inter', sans-serif; }
.pn-wrap { max-width: 760px; margin: 0 auto; }
.pn-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
@media(max-width:760px){ .pn-grid { grid-template-columns: 1fr; } }
.pn-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 26px; }
.pn-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.pn-row:last-child { border-bottom: none; }
.pn-row-label { font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.pn-row-value { font-size: 14.5px; font-weight: 700; color: var(--heading); line-height: 1.4; word-break: break-word; }
.pn-copy-btn {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px;
  border: 1.5px solid var(--border); border-radius: 8px; background: var(--off-white);
  color: var(--muted); font-size: 11.5px; font-weight: 700; cursor: pointer; transition: 0.15s; margin-top: 1px;
}
.pn-copy-btn:hover { border-color: var(--gold); color: var(--gold); }
.pn-copy-btn svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }
.pn-copy-btn.copied { border-color: var(--success); color: var(--success); background: var(--success-bg); }

.pn-qr-card { text-align: center; }
.pn-qr-img-wrap {
  background: #fff; border-radius: var(--radius-md); padding: 14px;
  display: inline-block; border: 1px solid var(--border); margin: 6px 0 16px;
}
.pn-qr-img-wrap img { width: 100%; max-width: 220px; display: block; }
.pn-qr-title { font-size: 14.5px; font-weight: 700; color: var(--heading); margin-bottom: 4px; }
.pn-qr-sub { font-size: 12px; color: var(--muted); line-height: 1.5; margin-bottom: 4px; }
.pn-upi-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 13px 16px; border-radius: 12px; background: var(--navy); color: #fff;
  font-size: 14px; font-weight: 700; text-decoration: none; margin-top: 6px; transition: 0.15s;
}
.pn-upi-btn:hover { background: var(--navy-light); }
.pn-upi-btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; }
.pn-note {
  display: flex; gap: 10px; align-items: flex-start; background: var(--gold-pale);
  border: 1px solid rgba(201,152,42,0.35); border-radius: var(--radius-md); padding: 14px 16px;
  margin-top: 18px; font-size: 12.5px; color: var(--text); line-height: 1.55;
}
.pn-note svg { width: 17px; height: 17px; stroke: var(--gold); fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 1px; }

.pn-section-title { font-size: 15px; font-weight: 700; color: var(--heading); margin-bottom: 4px; }
.pn-section-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; line-height: 1.5; }
.pn-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media(max-width:600px){ .pn-form-grid { grid-template-columns: 1fr; } }
.pn-form-row label { font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 6px; }
.pn-form-row select, .pn-form-row input, .pn-form-row textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; font-family: 'Inter', sans-serif; color: var(--text); background: var(--surface); outline: none; transition: border-color 0.18s;
}
.pn-form-row select:focus, .pn-form-row input:focus, .pn-form-row textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11,30,62,0.08); }
.pn-form-row { margin-bottom: 16px; }
.pn-form-row.pn-span-2 { grid-column: 1 / -1; }
.pn-form-row textarea { resize: vertical; min-height: 70px; }
.pn-file-input { font-size: 13px; }

.pn-history-list { margin-top: 8px; }
.pn-history-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.pn-history-item:last-child { border-bottom: none; }
.pn-history-main { font-size: 13.5px; font-weight: 700; color: var(--heading); }
.pn-history-meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.pn-history-proof { font-size: 11.5px; color: var(--blue); text-decoration: none; font-weight: 700; }
.pn-status-pill { font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 10px; flex-shrink: 0; white-space: nowrap; }
.pn-status-pill.pending { background: var(--blue-bg); color: var(--blue); }
.pn-status-pill.verified { background: var(--gold-pale); color: var(--gold); }
.pn-status-pill.posted { background: var(--success-bg); color: var(--success); }
.pn-status-pill.rejected { background: var(--danger-bg); color: var(--danger); }
.pn-status-pill.submitted { background: var(--blue-bg); color: var(--blue); }
.pn-status-pill.approved { background: var(--gold-pale); color: var(--gold); }
.pn-status-pill.account_opened { background: var(--success-bg); color: var(--success); }
.pn-empty-state { text-align: center; padding: 24px; color: var(--muted); font-size: 13px; }

.oa-radio-group { display: flex; gap: 12px; }
.oa-radio-card {
  flex: 1; border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 14px;
  cursor: pointer; text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); transition: 0.15s;
}
.oa-radio-card.selected { border-color: var(--navy); background: var(--off-white); color: var(--navy); }
.oa-fd-fields { display: none; }
.oa-fd-fields.visible { display: grid; }

.fdc-card { background: var(--gold-pale); border: 1px solid rgba(201,152,42,0.3); border-radius: var(--radius-md); padding: 14px 16px; margin-top: 12px; }
.fdc-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; font-size: 12.5px; }
.fdc-row-total { border-top: 1px solid rgba(201,152,42,0.3); margin-top: 4px; padding-top: 8px; }
.fdc-label { color: var(--muted); font-weight: 600; }
.fdc-value { font-weight: 700; color: var(--heading); }
.fdc-row-total .fdc-value { font-size: 14px; color: var(--gold); }
.fdc-note { font-size: 10.5px; color: var(--muted); margin-top: 8px; line-height: 1.4; }

.lpc-wrap { margin-top: 4px; }
.lpc-camera-wrap video, .lpc-camera-wrap img { display: block; }

.fdc-fixed-terms { background: var(--off-white); border-radius: var(--radius-md); padding: 12px 16px; margin-bottom: 4px; }
.fdc-fixed-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 12.5px; }
.fdc-fixed-row span:first-child { color: var(--muted); font-weight: 600; }
.fdc-fixed-row span:last-child { color: var(--heading); font-weight: 700; }
.fdc-renewal-note { font-size: 11px; color: var(--muted); margin-top: 6px; line-height: 1.4; }
