/**
 * Paya auth pages — login / OTP verify for customers and staff.
 *
 * Self-contained design matching the reference component (کامپوننت فرم ورود
 * ثبت نام): glass card on a light ambient background, deep-purple hero panel,
 * orange accent actions. All classes are prefixed `pv-` so nothing collides
 * with the older paya-* rules in the theme stylesheet.
 */

:root {
  --pv-purple: #582c88;
  --pv-purple-deep: #31144f;
  --pv-purple-night: #1a0c2e;
  --pv-purple-bright: #7542b1;
  --pv-lilac: #c0a5e2;
  --pv-lilac-soft: #e5d9f4;
  --pv-orange: #f38b00;
  --pv-orange-light: #ff9d1d;
  --pv-amber: #fca93e;
  --pv-ink: #0f172a;
  --pv-slate: #475569;
  --pv-slate-light: #64748b;
}

/* ------------------------------------------------------------- typography */

/**
 * Form controls do not inherit the document font by default — browsers give
 * input/button/select/textarea their own system font. The CRM forces its face
 * with `a, body, html, p { font-family: vazir, dana !important }` in
 * custom.css, which by definition never reaches a form control, so every
 * field on these pages rendered in Segoe UI while the labels around it were
 * in the site face. Inheriting here keeps the whole page on whatever font the
 * CRM is configured with, including a future change of that font.
 */
.pv-shell input,
.pv-shell button,
.pv-shell select,
.pv-shell textarea,
.pv-modal input,
.pv-modal button,
.pv-modal select,
.pv-modal textarea {
  font-family: inherit;
}

/* Digits read better with tabular spacing, but still in the site face. */
.pv-shell input[dir="ltr"],
.pv-modal input[dir="ltr"],
.pv-otp-boxes input,
.pv-prefix-code,
.pv-monitor-value {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* ------------------------------------------------------------------ shell */

/**
 * The backdrop is painted on the document, not on the shell.
 *
 * In the customers area the shell is rendered inside Bootstrap's fixed-width
 * .container, so a background on the shell itself stopped at the container
 * edge and read as a stray tinted box floating on the page. Painting it on
 * <body> instead makes it the page, edge to edge, at any viewport width.
 *
 * The alternatives were worse: a 100vw break-out overflows by the scrollbar
 * width, and a fixed underlay is invisible behind the theme's own body colour
 * at z-index -1 and covers the white navbar at z-index 0 (the navbar is
 * position:relative with z-index auto, so a later positioned element wins).
 * A background has neither problem — it always paints behind all content.
 *
 * The two glows are background layers here rather than blurred pseudo
 * elements, which keeps the whole backdrop in one declaration.
 */
body:has(.pv-shell) {
  background-color: #fdf8f1;
  background-image:
    radial-gradient(58% 52% at 10% 6%, rgba(117, 66, 177, 0.20), transparent 62%),
    radial-gradient(52% 48% at 90% 94%, rgba(243, 139, 0, 0.16), transparent 62%),
    linear-gradient(135deg, #f6f1fc 0%, #fdf8f1 55%, #f4eefb 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.pv-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  position: relative;
  background: transparent;
}

/* Browsers without :has() still get the gradient, just bounded by the
   container — the previous behaviour rather than a bare grey page. */
@supports not selector(body:has(.pv-shell)) {
  .pv-shell {
    background: linear-gradient(135deg, #f6f1fc 0%, #fdf8f1 55%, #f4eefb 100%);
  }
}

/* Hero is the first child (rendered on the right in RTL), the form card the
   second (left, slightly wider) — matching the reference screenshots. */
.pv-grid {
  position: relative;
  z-index: 1;
  width: min(1150px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.32fr);
  gap: 26px;
  align-items: stretch;
}

/* ------------------------------------------------------------------- card */

.pv-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid #fff;
  border-radius: 26px;
  box-shadow: 0 20px 50px -15px rgba(42, 19, 67, 0.1);
  padding: 36px 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pv-title h2,
.pv-title h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--pv-ink);
  letter-spacing: -0.01em;
}

.pv-title p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.9;
  color: var(--pv-slate);
}

.pv-title {
  margin-bottom: 20px;
}

/* --------------------------------------------------------- category tabs */

.pv-cat-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(42, 19, 67, 0.04);
  margin-bottom: 16px;
}

.pv-cat-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 12px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--pv-slate);
  text-decoration: none;
  transition: all 0.18s ease;
  cursor: pointer;
}

.pv-cat-tab:hover {
  color: var(--pv-ink);
  text-decoration: none;
}

.pv-cat-tab.is-active {
  background: #fff;
  color: var(--pv-purple);
  box-shadow: 0 6px 16px rgba(88, 44, 136, 0.1);
}

.pv-cat-tab svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

/* -------------------------------------------------------- identifier row */

.pv-idrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 12px;
}

.pv-idrow-label {
  font-weight: 700;
  color: #334155;
}

.pv-pills {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
}

.pv-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: var(--pv-slate);
  transition: all 0.15s ease;
  cursor: pointer;
}

.pv-pill.is-active {
  background: var(--pv-purple);
  color: #fff;
  box-shadow: 0 4px 10px rgba(88, 44, 136, 0.25);
}

.pv-pill svg {
  width: 12px;
  height: 12px;
}

/* ------------------------------------------------------------ method tabs */

.pv-method-tabs {
  display: flex;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  margin-bottom: 20px;
}

.pv-method-tab {
  padding: 0 12px 11px;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--pv-slate-light);
  transition: all 0.18s ease;
  cursor: pointer;
}

.pv-method-tab:hover {
  color: var(--pv-ink);
}

.pv-method-tab.is-active {
  color: var(--pv-purple);
  border-bottom-color: var(--pv-purple);
}

/* ------------------------------------------------------------------ views */

.pv-view {
  display: none;
}

.pv-view.is-visible {
  display: block;
}

/* ----------------------------------------------------------------- fields */

.pv-field {
  margin-bottom: 16px;
}

.pv-field > label {
  display: block;
  margin-bottom: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
}

.pv-field-labelrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.pv-field-labelrow label {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
}

.pv-field-labelrow a {
  font-size: 12px;
  font-weight: 600;
  color: var(--pv-purple);
}

.pv-input-wrap {
  display: flex;
  align-items: center;
  border-radius: 15px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
}

.pv-input-wrap:focus-within {
  background: #fff;
  border-color: var(--pv-purple);
  box-shadow: 0 0 0 3px rgba(88, 44, 136, 0.14);
}

.pv-input-prefix {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: stretch;
  padding: 0 13px;
  border-left: 1px solid rgba(148, 163, 184, 0.3);
  color: var(--pv-slate-light);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  flex: 0 0 auto;
}

.pv-input-prefix svg {
  width: 15px;
  height: 15px;
  color: var(--pv-purple);
}

.pv-input-wrap input.form-control,
.pv-input-wrap input {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  font-size: 14.5px;
  color: var(--pv-ink) !important;
}

.pv-input-wrap input::placeholder {
  color: #94a3b8;
}

.pv-input-wrap input:focus {
  outline: none;
}

.pv-input-wrap input[dir="ltr"] {
  text-align: left;
  font-family: inherit;
}

.pv-input-wrap input[type="tel"] {
  text-align: right;
  letter-spacing: 0.04em;
}

.pv-eye {
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  align-self: stretch;
  color: #94a3b8;
  cursor: pointer;
  user-select: none;
  transition: color 0.15s ease;
}

.pv-eye:hover {
  color: var(--pv-slate);
}

.pv-eye svg {
  width: 16px;
  height: 16px;
}

.pv-hint {
  margin: 7px 2px 0;
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--pv-slate-light);
}

/* -------------------------------------------------------- alerts / errors */

.pv-error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  margin-bottom: 14px;
  border-radius: 13px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
  font-size: 12.5px;
}

.pv-success {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  margin-bottom: 14px;
  border-radius: 13px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  font-size: 12.5px;
}

.pv-card .alert {
  border-radius: 13px;
  font-size: 12.5px;
}

/* ---------------------------------------------------------------- buttons */

.pv-accent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 50px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--pv-orange) 0%, var(--pv-orange-light) 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(243, 139, 0, 0.28);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.pv-accent-btn:hover,
.pv-accent-btn:focus {
  color: #fff;
  filter: brightness(0.96);
  text-decoration: none;
}

.pv-accent-btn:active {
  transform: scale(0.99);
}

.pv-accent-btn svg {
  width: 16px;
  height: 16px;
}

/* ------------------------------------------------------------- footer row */

.pv-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 12.5px;
  color: var(--pv-slate);
}

.pv-remember input {
  width: 15px;
  height: 15px;
  accent-color: var(--pv-purple);
  margin: 0;
}

.pv-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  text-align: center;
  font-size: 12.5px;
  color: var(--pv-slate);
}

.pv-foot a,
.pv-link {
  font-weight: 700;
  color: var(--pv-purple);
}

.pv-foot a:hover,
.pv-link:hover {
  color: var(--pv-purple-bright);
  text-decoration: none;
}

/* -------------------------------------------------------------- OTP boxes */

.pv-backlink {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--pv-slate-light);
}

.pv-backlink:hover {
  color: var(--pv-purple);
  text-decoration: none;
}

.pv-otp-boxes {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 22px 0;
}

.pv-otp-boxes input {
  width: 54px;
  height: 62px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(42, 19, 67, 0.05);
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  color: var(--pv-ink);
  transition: all 0.15s ease;
}

.pv-otp-boxes input:focus {
  outline: none;
  background: #fff;
  border-color: var(--pv-purple);
  box-shadow: 0 0 0 3px rgba(88, 44, 136, 0.16);
}

.pv-otp-boxes input.is-filled {
  border-color: var(--pv-purple);
  color: var(--pv-purple);
  box-shadow: 0 0 0 2px rgba(88, 44, 136, 0.14);
}

.pv-otp-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 12px;
  color: var(--pv-slate-light);
}

.pv-otp-meta strong {
  color: var(--pv-purple);
  font-weight: 800;
  letter-spacing: 0.05em;
}

/* ------------------------------------------------------------- hero panel */

.pv-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 440px;
  padding: 30px 28px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: linear-gradient(135deg, var(--pv-purple-night) 0%, var(--pv-purple-deep) 55%, #451e6b 100%);
  color: #fff;
  box-shadow: 0 24px 50px -12px rgba(30, 10, 50, 0.35);
}

.pv-hero::before,
.pv-hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.pv-hero::before {
  top: -80px;
  right: -80px;
  background: rgba(117, 66, 177, 0.35);
}

.pv-hero::after {
  bottom: -80px;
  left: -80px;
  background: rgba(243, 139, 0, 0.18);
}

.pv-hero > * {
  position: relative;
  z-index: 1;
}

.pv-hero-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
}

.pv-hero-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--pv-orange);
}

.pv-hero-logo svg {
  width: 22px;
  height: 22px;
}

.pv-hero-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.01em;
}

.pv-hero-badge {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(243, 139, 0, 0.2);
  border: 1px solid rgba(243, 139, 0, 0.3);
  color: var(--pv-amber);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.pv-hero-sub {
  margin: 3px 0 0;
  font-size: 12px;
  color: rgba(229, 217, 244, 0.8);
}

.pv-monitor {
  border-radius: 16px;
  padding: 15px 16px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.pv-monitor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 12px;
  color: rgba(229, 217, 244, 0.9);
}

.pv-monitor-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pv-orange);
  margin-inline-start: 2px;
  animation: pv-ping 1.6s ease-out infinite;
}

@keyframes pv-ping {
  0%   { box-shadow: 0 0 0 0 rgba(243, 139, 0, 0.5); }
  80%  { box-shadow: 0 0 0 7px rgba(243, 139, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(243, 139, 0, 0); }
}

.pv-monitor-value {
  font-weight: 800;
  color: var(--pv-amber);
  font-size: 14px;
  direction: ltr;
}

.pv-monitor svg {
  display: block;
  width: 100%;
  height: 34px;
  color: var(--pv-lilac);
  opacity: 0.85;
}

.pv-features {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 22px 0;
}

.pv-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.18s ease;
}

.pv-feature:hover {
  background: rgba(255, 255, 255, 0.1);
}

.pv-feature-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(88, 44, 136, 0.4);
  border: 1px solid rgba(192, 165, 226, 0.3);
  color: var(--pv-lilac-soft);
}

.pv-feature-icon svg {
  width: 16px;
  height: 16px;
}

.pv-feature h3 {
  margin: 0 !important;
  padding: 0;
  font-size: 13px !important;
  line-height: 1.6;
  font-weight: 700;
  color: #fff !important;
  text-shadow: none;
}

.pv-feature p {
  margin: 2px 0 0;
  font-size: 11px;
  color: rgba(229, 217, 244, 0.75);
}

.pv-hero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  color: rgba(229, 217, 244, 0.7);
}

.pv-hero-foot .pv-award {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pv-hero-foot svg {
  width: 14px;
  height: 14px;
  color: var(--pv-orange);
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 991px) {
  .pv-grid {
    grid-template-columns: 1fr;
  }

  .pv-hero {
    min-height: 0;
    order: 2;
  }

  .pv-card {
    padding: 26px 20px 22px;
  }

  .pv-otp-boxes input {
    width: 46px;
    height: 54px;
    font-size: 22px;
  }

  .pv-otp-boxes {
    gap: 8px;
  }
}

/* ----------------------------------------------------- smart identifier */

.pv-flag {
  font-size: 16px;
  line-height: 1;
}

.pv-input-prefix.is-hidden {
  display: none;
}

/* ------------------------------------------------------ secondary button */

.pv-ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 48px;
  padding: 0 18px;
  border: 1.5px solid rgba(88, 44, 136, 0.35);
  border-radius: 15px;
  background: #fff;
  color: var(--pv-purple);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pv-ghost-btn:hover,
.pv-ghost-btn:focus {
  background: rgba(88, 44, 136, 0.05);
  border-color: var(--pv-purple);
  color: var(--pv-purple);
  text-decoration: none;
}

.pv-ghost-btn svg {
  width: 15px;
  height: 15px;
}

.pv-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: #94a3b8;
  font-size: 12px;
}

.pv-divider::before,
.pv-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

/* --------------------------------------------------------- register form */

.pv-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 560px) {
  .pv-row-2 {
    grid-template-columns: 1fr;
  }
}

.pv-inline-action {
  flex: 0 0 auto;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 0;
  background: rgba(88, 44, 136, 0.07);
  color: var(--pv-purple);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.pv-inline-action:hover:not(:disabled) {
  background: rgba(88, 44, 136, 0.13);
}

.pv-inline-action:disabled {
  color: #94a3b8;
  cursor: default;
}

.pv-otp-inline {
  margin-top: 12px;
}

.pv-otp-inline .pv-otp-boxes {
  margin: 0 0 10px;
  justify-content: flex-start;
}

.pv-otp-inline .pv-otp-boxes input {
  width: 44px;
  height: 50px;
  font-size: 20px;
  border: 1.5px solid #e2e8f0;
}

.pv-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  font-size: 12px;
  font-weight: 700;
}

.pv-terms {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 4px 0 16px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--pv-slate);
}

.pv-terms input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--pv-purple);
  flex: 0 0 auto;
}

.pv-switch-audience {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  color: var(--pv-slate-light);
}

.pv-switch-audience a {
  color: var(--pv-purple);
  font-weight: 700;
}

/* --------------------------------------------- LTR wrap (phone / email) */

/* The country prefix must sit on the visual LEFT of the number, so phone
   and identifier wraps run LTR internally while placeholders stay
   right-aligned for the RTL audience. */
.pv-ltr-wrap {
  direction: ltr;
}

.pv-ltr-wrap .pv-input-prefix {
  border-left: 0;
  border-right: 1px solid rgba(148, 163, 184, 0.3);
}

.pv-ltr-wrap .pv-inline-action {
  border-right: 1px solid rgba(148, 163, 184, 0.25);
}

.pv-input-wrap input::placeholder {
  text-align: right;
  direction: rtl;
}

.pv-flag-svg {
  display: inline-flex;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  overflow: hidden;
}

.pv-flag-svg svg {
  width: 100% !important;
  height: 100% !important;
  color: initial;
}

.pv-input-prefix .pv-prefix-code {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
}

/* ------------------------------------------------------------- hero logo */

.pv-hero-logo-img img {
  max-height: 46px;
  max-width: 170px;
  width: auto;
  display: block;
}

.pv-hero-logo-img .logo-text {
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.pv-hero-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: 16px;
  padding: 15px 16px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pv-hero-contact-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: rgba(229, 217, 244, 0.92);
}

.pv-hero-contact-row svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--pv-amber);
}

.pv-hero-contact-row span[dir="ltr"] {
  font-family: inherit;
}

/* ---------------------------------------------------------------- modal */

.pv-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(20, 10, 38, 0.55);
  backdrop-filter: blur(5px);
}

.pv-modal-overlay.is-open {
  display: flex;
}

.pv-modal {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 22px;
  padding: 28px 26px 24px;
  box-shadow: 0 30px 70px rgba(20, 10, 38, 0.3);
  position: relative;
}

.pv-modal-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: #f1f5f9;
  color: var(--pv-slate);
  font-size: 16px;
  cursor: pointer;
}

.pv-modal-close:hover {
  background: #e2e8f0;
}

.pv-modal h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 800;
  color: var(--pv-ink);
}

.pv-modal p {
  margin: 0 0 18px;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--pv-slate);
}

/* ------------------------------------ configurable side panel (module) */

/* Image and slider modes: the panel is the picture, so its own padding and
   informational children are irrelevant — the slides fill it edge to edge. */
.pv-hero--image,
.pv-hero--slider {
  padding: 0;
  overflow: hidden;
}

.pv-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.pv-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.pv-slide.is-active {
  opacity: 1;
}

.pv-slide-dots {
  position: absolute;
  z-index: 2;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.pv-slide-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.pv-slide-dot.is-active {
  background: #fff;
  transform: scale(1.25);
}

/* Plain colour mode: logo and name, centred. */
.pv-hero--color {
  justify-content: center;
  text-align: center;
}

.pv-hero-plain {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.pv-hero-plain .pv-hero-logo-img img {
  max-height: 64px;
  max-width: 220px;
}

.pv-hero-plain .pv-hero-name {
  font-size: 22px;
}

.pv-hero-plain .pv-hero-sub {
  max-width: 320px;
}

/* ------------------------------------------------- required field marker */

.pv-req {
  color: #dc2626;
  font-weight: 700;
  margin-inline-start: 2px;
}

/* The verification modal holds a row of code boxes, so it needs more room
   than the recovery dialog. */
.pv-modal .pv-otp-boxes {
  margin: 18px 0 12px;
}

.pv-modal .pv-otp-boxes input {
  width: 46px;
  height: 54px;
  font-size: 22px;
  border: 1.5px solid #e2e8f0;
}

.pv-modal .pv-otp-meta {
  margin-bottom: 16px;
}

.pv-modal .pv-error,
.pv-modal .pv-success {
  margin-bottom: 12px;
}

/**
 * Image and slider panels carry only absolutely positioned slides, so they
 * have no intrinsic height. In the two-column layout the grid's stretch
 * alignment hides that, but as soon as the panel stands alone in its row —
 * the responsive single-column layout, or a short form card — it collapses to
 * nothing and the picture disappears. A floor keeps it visible everywhere.
 */
.pv-hero--image,
.pv-hero--slider {
  min-height: 320px;
}

@media (max-width: 991px) {
  .pv-hero--image,
  .pv-hero--slider {
    min-height: 200px;
  }
}

/* ------------------------------------------- province / city pickers */
/* paya-iran-location.js hides the input and adds a bootstrap-select here. The
   wrapper must not clip the dropdown, and the picker's button takes the
   input's place: borderless, full height, inside the rounded wrapper. */

.pv-input-wrap.pv-select-wrap {
  overflow: visible;
}

.pv-select-wrap .bootstrap-select {
  flex: 1 1 auto;
  width: 100% !important;
  min-width: 0;
}

.pv-select-wrap .bootstrap-select > .dropdown-toggle {
  height: 48px;
  padding: 0 14px;
  border: 0 !important;
  border-radius: 15px !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  font-size: 14.5px;
  color: var(--pv-ink);
}

.pv-select-wrap .bootstrap-select > .dropdown-toggle.bs-placeholder .filter-option-inner-inner {
  color: #94a3b8;
}

.pv-select-wrap .bootstrap-select .dropdown-menu {
  border-radius: 12px;
  font-size: 13.5px;
}

.pv-select-wrap .bootstrap-select > .dropdown-toggle .filter-option {
  display: flex;
  align-items: center;
}

.pv-select-wrap .bootstrap-select > .dropdown-toggle .filter-option {
  padding: 0 !important; /* the button already carries the 14px inset of the other fields */
}
