/* ============================================================
   DESIGN TOKENS — brand palette locked to exactly three colors:
   navy primary, navy dark, blue accent. Everything else here is
   a neutral (gray/white) or a functional state color (error/success),
   never a decorative fourth brand color.
   ============================================================ */
:root {
  --navy-primary: #081e4f;
  --navy-dark: #051436;
  --blue-accent: #42a5f5;
  --blue-accent-rgb: 66, 165, 245;

  /* neutrals */
  --pn-bg: #f5f7fa;
  --pn-surface: #ffffff;
  --pn-border: #e1e6ed;
  --pn-border-soft: #edf1f5;
  --pn-text: #1b2636;
  --pn-text-muted: #66727f;
  --pn-text-faint: #99a3ad;

  /* functional (not decorative) */
  --pn-danger: #d64545;
  --pn-danger-bg: #fcecec;
  --pn-success: #1f9d55;
  --pn-success-bg: #e9f8ef;
  --pn-warn: #8a6d1a;
  --pn-warn-bg: #faf3e0;

  --pn-font-display: "Inter", sans-serif;
  --pn-font-body: "Inter", sans-serif;
  --pn-font-mono: "Inter", sans-serif;

  --pn-radius-sm: 10px;
  --pn-radius-md: 14px;
  --pn-radius-lg: 20px;
  --pn-radius-xl: 28px;

  --pn-shadow-card:
    0 1px 2px rgba(5, 20, 54, 0.04), 0 24px 48px -16px rgba(5, 20, 54, 0.18);
  --pn-shadow-btn: 0 10px 22px -6px rgba(8, 30, 79, 0.4);
  --pn-shadow-input-focus: 0 0 0 4px rgba(var(--blue-accent-rgb), 0.18);

  --pn-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pn-safe-b: env(safe-area-inset-bottom, 0px);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================================================
   RESET / SCOPE
   ============================================================ */
.pg-register * {
  box-sizing: border-box;
}
.pg-register {
  font-family: var(--pn-font-body);
  color: var(--pn-text);
  background: var(--pn-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}
.pg-register .dx-form {
  padding: 0 !important;
}
.pg-register .dx-header,
.pg-register .footer {
  display: none;
}
.pg-register img {
  max-width: 100%;
}
.pg-register .main-wrapper {
  padding: 0 !important;
}

/* ============================================================
   BRAND HEADER
   ============================================================ */
.brand-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  z-index: 10;
  width: 100%;
  padding: clamp(1.25rem, 4vw, 1.75rem) 0 0.5rem;
}
.logo-icon-bg {
  width: 40px;
  height: 40px;
  background: var(--pn-surface);
  border: 1px solid var(--pn-border);
  box-shadow: 0 1px 2px rgba(5, 20, 54, 0.06);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.brand-name {
  font-family: "Outfit", var(--pn-font-display), sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 1.4rem;
  color: var(--navy-primary);
}

/* ============================================================
   PAGE SHELL
   ============================================================ */
.pg-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 0 clamp(1.25rem, 6vw, 3rem);
}

.pg-grid {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 1rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 3vw, 2rem);
}

@media (min-width: 768px) {
  .pg-grid {
    padding: 0 clamp(1.5rem, 4vw, 1rem);
  }
}

@media (min-width: 1024px) {
  .pg-grid {
    grid-template-columns: 380px minmax(0, 1fr);
    padding-top: clamp(2rem, 5vw, 1rem);
    /* Default grid stretch keeps both columns the same height */
    align-items: stretch;
  }
}

/* ============================================================
   LEFT / INFO PANEL
   ============================================================ */
.pg-info {
  position: relative;
  background: linear-gradient(
    160deg,
    var(--navy-primary) 0%,
    var(--navy-dark) 100%
  );
  color: #eef2fa;
  border-radius: 0 0 var(--pn-radius-lg) var(--pn-radius-lg);
  padding: clamp(1.5rem, 5vw, 2.25rem) clamp(1.25rem, 5vw, 2rem)
    clamp(2rem, 6vw, 2.5rem);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .pg-info {
    border-radius: var(--pn-radius-xl);
    position: sticky;
    top: 2.5rem;
    padding: 2.75rem 2.25rem;
  }
}

.pg-info::before {
  content: "";
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 220px;
  background: radial-gradient(
    ellipse at center,
    rgba(var(--blue-accent-rgb), 0.32),
    transparent 70%
  );
  pointer-events: none;
}

.pg-info-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #bfe0fb;
  background: rgba(var(--blue-accent-rgb), 0.18);
  border: 1px solid rgba(var(--blue-accent-rgb), 0.35);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.pg-info h1 {
  font-family: var(--pn-font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 4.4vw, 2.3rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.65rem;
  color: #fff;
}

.pg-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}
.pg-price-row .pg-currency {
  font-size: 18px;
  font-weight: 600;
  color: #a9c2da;
  align-self: flex-start;
  margin-top: 6px;
}
.pg-price-row .pg-amount {
  font-family: var(--pn-font-display);
  font-size: clamp(2.1rem, 5vw, 2.6rem);
  font-weight: 600;
  color: #fff;
}
.pg-price-row .pg-cadence {
  font-size: 14px;
  color: #93accb;
  font-weight: 500;
}
.pg-free-tag {
  font-family: var(--pn-font-display);
  font-size: clamp(1.6rem, 4vw, 2rem);
  color: #bfe0fb;
  font-weight: 600;
}

.pg-info-sub {
  font-size: 13.5px;
  color: #a9bfd4;
  margin: 14px 0 4px;
  font-weight: 500;
}

.pg-features-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #bfe0fb;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 0 0;
  cursor: pointer;
}
.pg-features-toggle .material-icons-outlined {
  font-size: 18px;
  transition: transform 0.25s var(--pn-ease);
}
.pg-features-toggle[aria-expanded="true"] .material-icons-outlined {
  transform: rotate(180deg);
}

@media (min-width: 1024px) {
  .pg-features-toggle {
    display: none;
  }
}

.pg-features {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--pn-ease);
}
.pg-features.is-open {
  max-height: 640px;
}
@media (min-width: 1024px) {
  .pg-features {
    max-height: none !important;
    margin-top: 18px;
  }
}

.pg-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  font-size: 14px;
  color: #d7e2f0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.pg-features li:last-child {
  border-bottom: none;
}
.pg-features li .material-icons-outlined,
.pg-features li .pg-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(var(--blue-accent-rgb), 0.22);
  color: #7cc4f7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  margin-top: 1px;
}

.pg-login-line {
  text-align: center;
  font-size: 13.5px;
  color: var(--pn-text-muted);
  margin-top: clamp(1.25rem, 4vw, 1rem);
}
.pg-login-line a {
  color: var(--blue-accent);
  font-weight: 700;
  text-decoration: none;
}
.pg-login-line a:hover {
  text-decoration: underline;
}

/* ============================================================
   CARD / FORM COLUMN
   ============================================================ */
.pg-card-wrap {
  min-width: 0;
}

@media (min-width: 1024px) {
  /* Stretched by the grid to match .pg-info's height; wiz-card grows
     to absorb the difference so the login line stays pinned under it. */
  .pg-card-wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
}

.wiz-card {
  position: relative;
  background: var(--pn-surface);
  border-radius: var(--pn-radius-lg);
  box-shadow: var(--pn-shadow-card);
  padding: clamp(1.25rem, 5vw, 2.5rem);
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-top: -1.25rem;
}

@media (min-width: 1024px) {
  .wiz-card {
    margin-top: 0;
    min-height: 560px;
    padding: 2.75rem 3rem 2rem;
    flex: 1;
  }
}

.wiz-card form {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   WATER-LEVEL PROGRESS GAUGE (signature element)
   ============================================================ */
.wiz-progress {
  margin-bottom: clamp(1.5rem, 5vw, 2.25rem);
}

.wiz-progress-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}
.wiz-progress-step-label {
  font-family: var(--pn-font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--pn-text-faint);
}
.wiz-progress-step-label strong {
  color: var(--navy-primary);
}
.wiz-progress-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--pn-text);
}

.wiz-gauge-wrap {
  position: relative;
  height: 20px;
}
.wiz-gauge-track {
  position: absolute;
  /* inset by half a grid column so the line runs from the center of the
     first dot to the center of the last dot, matching the grid below */
  left: calc(50% / var(--steps));
  right: calc(50% / var(--steps));
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: var(--pn-border-soft);
  overflow: hidden;
}
.wiz-gauge-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--navy-primary), var(--blue-accent));
  transition: width 0.55s var(--pn-ease);
  overflow: hidden;
}
.wiz-gauge-fill::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: -20px;
  width: 40px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  animation: wizRipple 2.4s linear infinite;
}
@keyframes wizRipple {
  0% {
    transform: translateX(-10px);
  }
  100% {
    transform: translateX(10px);
  }
}

/* Dots row and labels row share the SAME grid definition (--steps equal
   columns), so a label always lands directly under its dot no matter how
   long the label text is or how many steps there are. */
.wiz-gauge-dots,
.wiz-gauge-labels {
  display: grid;
  grid-template-columns: repeat(var(--steps), 1fr);
}
.wiz-gauge-dots {
  position: absolute;
  inset: 0;
  align-items: center;
}
.wiz-gauge-dot {
  justify-self: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--pn-surface);
  border: 2.5px solid var(--pn-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--pn-font-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--pn-text-faint);
  transition:
    border-color 0.35s var(--pn-ease),
    background 0.35s var(--pn-ease),
    color 0.35s var(--pn-ease),
    transform 0.35s var(--pn-ease);
  z-index: 1;
}
.wiz-gauge-dot.done {
  background: var(--navy-primary);
  border-color: var(--navy-primary);
  color: #fff;
}
.wiz-gauge-dot.active {
  background: var(--pn-surface);
  border-color: var(--blue-accent);
  color: var(--navy-primary);
  transform: scale(1.25);
  box-shadow: 0 0 0 4px rgba(var(--blue-accent-rgb), 0.2);
}
.wiz-gauge-dot .material-icons-outlined {
  font-size: 12px;
}

.wiz-gauge-labels {
  display: none;
  margin-top: 10px;
}
@media (min-width: 560px) {
  .wiz-gauge-labels {
    display: grid;
  }
  .wiz-progress-name {
    display: none;
  }
}
.wiz-gauge-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--pn-text-faint);
  text-align: center;
  padding: 0 2px;
}
.wiz-gauge-label.active {
  color: var(--navy-primary);
}
.wiz-gauge-label.done {
  color: var(--pn-text-muted);
}

/* ============================================================
   PAYMENT LOADER OVERLAY
   ============================================================ */
.payment_loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(5, 20, 54, 0.72);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
}
.payment_loader .pg-loader-box {
  background: var(--pn-surface);
  border-radius: var(--pn-radius-md);
  padding: 2rem 1.75rem;
  max-width: 320px;
  text-align: center;
  box-shadow: var(--pn-shadow-card);
}
.pg-spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 3px solid rgba(var(--blue-accent-rgb), 0.2);
  border-top-color: var(--navy-primary);
  animation: pgSpin 0.8s linear infinite;
}
@keyframes pgSpin {
  to {
    transform: rotate(360deg);
  }
}
.payment_loader p {
  margin: 0;
  font-size: 14px;
  color: var(--pn-text);
  font-weight: 600;
}
.payment_loader p span {
  display: block;
  font-size: 12.5px;
  color: var(--pn-text-muted);
  font-weight: 400;
  margin-top: 4px;
}

/* ============================================================
   STEP PANELS
   ============================================================ */
.wiz-panel {
  display: none;
}
.wiz-panel.active {
  display: flex;
  flex-direction: column;
  animation: wizFadeIn 0.4s var(--pn-ease);
  flex: 1;
}
@keyframes wizFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Steps with only a few fields (Email / OTP) get gently centered instead of
   leaving a slab of dead space above the nav buttons. */
.wiz-panel.wiz-panel-centered.active {
  justify-content: center;
  min-height: min(380px, 44vh);
}

.wiz-step-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--pn-radius-sm);
  background: rgba(var(--blue-accent-rgb), 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--navy-primary);
  font-size: 23px;
}

/* Larger circular "hero" medallion used on the Email + Verify step, since
   that step is centered and benefits from a stronger focal point. */
.wiz-hero-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(var(--blue-accent-rgb), 0.16),
    rgba(8, 30, 79, 0.08)
  );
  flex-shrink: 0;
}
.wiz-hero-icon::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px dashed rgba(var(--blue-accent-rgb), 0.35);
}
.wiz-hero-icon .material-icons-outlined {
  font-size: 28px;
  color: var(--navy-primary);
}
.wiz-hero-icon.is-success {
  background: linear-gradient(
    135deg,
    rgba(31, 157, 85, 0.18),
    rgba(31, 157, 85, 0.06)
  );
}
.wiz-hero-icon.is-success::before {
  border-color: rgba(31, 157, 85, 0.35);
}
.wiz-hero-icon.is-success .material-icons-outlined {
  color: var(--pn-success);
}

.wiz-panel h4 {
  font-family: var(--pn-font-display);
  color: var(--navy-primary);
  font-weight: 600;
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  margin: 0 0 4px;
  letter-spacing: -0.005em;
}
.wiz-panel .wiz-sub {
  font-size: 13.5px;
  color: var(--pn-text-muted);
  margin: 0 0 clamp(1.25rem, 4vw, 1.75rem);
  line-height: 1.5;
}
.wiz-panel .wiz-sub strong {
  color: var(--pn-text);
}

/* ============================================================
   FORM FIELDS
   ============================================================ */
.pg-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem 1rem;
}
@media (min-width: 560px) {
  .pg-row.pg-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.wiz-panel .form-label,
.pg-field > label {
  display: block;
  color: var(--pn-text);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.01em;
  margin-bottom: 7px;
}

.pg-input-group {
  position: relative;
  display: flex;
  align-items: stretch;
  height: 52px;
  border: 1.5px solid var(--pn-border);
  border-radius: var(--pn-radius-sm);
  background: var(--pn-surface);
  transition:
    border-color 0.16s var(--pn-ease),
    box-shadow 0.16s var(--pn-ease);
}
.pg-input-group:hover {
  border-color: #c7d0da;
}
.pg-input-group:focus-within {
  border-color: var(--blue-accent);
  box-shadow: var(--pn-shadow-input-focus);
}
.pg-input-group.has-error {
  border-color: var(--pn-danger);
}
.pg-input-group.has-error:focus-within {
  box-shadow: 0 0 0 4px rgba(214, 69, 69, 0.14);
}
.pg-input-group.is-sending {
  border-color: var(--blue-accent);
}
.pg-input-group.is-locked {
  background: var(--pn-success-bg);
  border-color: rgba(31, 157, 85, 0.35);
}
.pg-input-group.is-locked input {
  color: var(--pn-text-muted);
  cursor: default;
}
.pg-input-group.is-locked .pg-icon {
  color: var(--pn-success);
  border-color: rgba(31, 157, 85, 0.25);
}

.pg-input-suffix {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  flex-shrink: 0;
  color: var(--pn-text-faint);
}
.pg-mini-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--pn-border);
  border-top-color: var(--blue-accent);
  animation: pgSpin 0.7s linear infinite;
}
@keyframes pgSpin {
  to {
    transform: rotate(360deg);
  }
}

.wiz-inline-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-accent);
  min-height: 20px;
  margin-top: 8px;
}
.wiz-inline-status:empty {
  margin-top: 0;
  min-height: 0;
}
.wiz-inline-status .material-icons-outlined {
  font-size: 16px;
}
.wiz-inline-status.is-success {
  color: var(--pn-success);
}
.wiz-inline-status.is-error {
  color: var(--pn-danger);
}

/* ============================================================
   SECTION CARDS — clear separation between field groups merged
   into a single step (e.g. "Your details" vs "Address")
   ============================================================ */
.wiz-section-card {
  background: #fbfcfd;
  border: 1px solid var(--pn-border);
  border-radius: var(--pn-radius-md);
  padding: clamp(1.1rem, 4vw, 1.5rem);
  margin-bottom: 1.1rem;
}
.wiz-section-card:last-of-type {
  margin-bottom: 0;
}
.wiz-section-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.1rem;
}
.wiz-section-card-header .wiz-section-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(var(--blue-accent-rgb), 0.14);
  color: var(--navy-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.wiz-section-card-header h5 {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy-primary);
  line-height: 1;
}

/* Review link shown on the Payment step, since Review is now reachable via
   this link (and the Back button) rather than being a mandatory stop for
   paid plans. */
.wiz-review-linkrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border: 1px dashed var(--pn-border);
  border-radius: var(--pn-radius-sm);
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--pn-text-muted);
}
.wiz-review-linkrow .wiz-review-linkrow-text {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wiz-review-linkrow .wiz-review-linkrow-text .material-icons-outlined {
  font-size: 17px;
  color: var(--navy-primary);
}
.wiz-review-linkrow a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--blue-accent);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.wiz-review-linkrow a:hover {
  color: var(--navy-primary);
  text-decoration: underline;
}
.wiz-review-linkrow a .material-icons-outlined {
  font-size: 15px;
}

.pg-input-group .pg-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  flex-shrink: 0;
  color: var(--pn-text-faint);
  font-size: 19px;
  border-right: 1.5px solid var(--pn-border-soft);
  margin: 8px 0;
  transition:
    color 0.16s var(--pn-ease),
    border-color 0.16s var(--pn-ease);
}
.pg-input-group:focus-within .pg-icon {
  color: var(--navy-primary);
  border-color: var(--pn-border);
}

.wiz-panel .form-control,
.pg-input-group input,
.pg-input-group select {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  height: 100%;
  font-size: 15px;
  color: var(--pn-text);
  padding: 0 14px;
  font-family: var(--pn-font-body);
}
.pg-input-group input::placeholder {
  color: var(--pn-text-faint);
}

.pg-input-suffix-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pn-text-faint);
}
.pg-input-suffix-btn:hover {
  color: var(--navy-primary);
}

.pg-hint {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12px;
  color: var(--pn-text-faint);
  margin-top: 7px;
  line-height: 1.4;
}
.pg-hint .material-icons-outlined {
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}
.pg-hint-warn {
  color: var(--pn-warn);
  background: var(--pn-warn-bg);
  padding: 8px 10px;
  border-radius: 8px;
}
.pg-field-error {
  font-size: 12px;
  color: var(--pn-danger);
  margin-top: 6px;
  font-weight: 500;
}
.wiz-required-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--pn-text-faint);
  margin: -6px 0 18px;
}
.wiz-required-note .material-icons-outlined {
  font-size: 14px;
}

/* ============================================================
   MERGED EMAIL + VERIFY STEP
   ============================================================ */
.pg-field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}
.pg-field-label-row .form-label {
  margin-bottom: 0;
}
.pg-verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--pn-success);
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}
.pg-verified-tag .material-icons-outlined {
  font-size: 15px;
}
.pg-input-group.is-locked {
  background: var(--pn-border-soft);
  border-color: var(--pn-border);
}
.pg-input-group.is-locked input {
  color: var(--pn-text-muted);
  cursor: default;
}

.wiz-otp-section {
  display: none;
  margin-top: clamp(1.1rem, 4vw, 1.5rem);
  padding-top: clamp(1.1rem, 4vw, 1.5rem);
  border-top: 1px dashed var(--pn-border);
}
.wiz-otp-section.is-open {
  display: block;
  animation: wizFadeIn 0.35s var(--pn-ease);
}
.wiz-otp-section .wiz-sub {
  margin-bottom: 14px;
}
.wiz-change-email {
  color: var(--blue-accent);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.wiz-change-email:hover {
  color: var(--navy-primary);
  text-decoration: underline;
}

/* ============================================================
   SECTION DIVIDER — separates field groups merged into one step
   ============================================================ */
.wiz-section-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: clamp(1.5rem, 5vw, 2rem) 0 clamp(1rem, 3vw, 1.25rem);
}
.wiz-section-divider .wiz-section-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(var(--blue-accent-rgb), 0.12);
  color: var(--navy-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.wiz-section-divider .wiz-section-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pn-text-muted);
  white-space: nowrap;
}
.wiz-section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--pn-border-soft);
}

/* ============================================================
   OTP INPUT
   ============================================================ */
.otp-boxes {
  display: flex;
  gap: clamp(6px, 2vw, 10px);
  margin-bottom: 18px;
}
.otp-box {
  flex: 1;
  max-width: 52px;
  height: 56px;
  text-align: center;
  font-family: var(--pn-font-mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--navy-primary);
  border: 1.5px solid var(--pn-border);
  border-radius: var(--pn-radius-sm);
  background: #fbfcfd;
  transition:
    border-color 0.15s var(--pn-ease),
    box-shadow 0.15s var(--pn-ease),
    background 0.15s var(--pn-ease),
    transform 0.15s var(--pn-ease);
}
.otp-box:focus {
  outline: none;
  border-color: var(--blue-accent);
  background: #fff;
  box-shadow: var(--pn-shadow-input-focus);
  transform: translateY(-1px);
}
.otp-box.filled {
  border-color: var(--navy-primary);
  background: #fff;
}
.otp-box.is-verifying {
  border-color: var(--blue-accent);
  opacity: 0.6;
}
.otp-box.is-correct {
  border-color: var(--pn-success);
  background: var(--pn-success-bg);
}
.otp-box.is-wrong {
  border-color: var(--pn-danger);
  background: var(--pn-danger-bg);
}
@media (max-width: 380px) {
  .otp-box {
    max-width: 40px;
    height: 48px;
    font-size: 19px;
  }
}

.otp-timer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--pn-text-muted);
  margin-top: -2px;
  margin-bottom: 14px;
}
.otp-timer-row #otpTimerLabel {
  font-family: var(--pn-font-mono);
  font-weight: 600;
  color: var(--pn-text);
}
.otp-timer-row a {
  color: var(--blue-accent);
  font-weight: 700;
  text-decoration: none;
}
.otp-timer-row a:hover {
  text-decoration: underline;
}
.otp-timer-row a.disabled {
  color: var(--pn-text-faint);
  pointer-events: none;
  text-decoration: none;
}

#otpErrorMsg {
  color: var(--pn-danger);
  font-size: 13px;
  min-height: 18px;
  font-weight: 500;
}
#otpErrorMsg:not(:empty) {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--pn-danger-bg);
  padding: 10px 12px;
  border-radius: var(--pn-radius-sm);
}

/* ============================================================
   REVIEW STEP
   ============================================================ */
.wiz-review-card {
  background: #fbfcfd;
  border: 1px solid var(--pn-border);
  border-radius: var(--pn-radius-md);
  padding: 4px clamp(14px, 4vw, 20px);
  margin-bottom: 20px;
}
.wiz-review-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--pn-border-soft);
  font-size: 13.5px;
}
.wiz-review-row:last-child {
  border-bottom: none;
}
.wiz-review-row .rlabel {
  color: var(--pn-text-muted);
  font-weight: 500;
  flex-shrink: 0;
}
.wiz-review-row .rvalue {
  color: var(--navy-primary);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.pg-coupon-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  font-size: 13px;
}
.pg-coupon-status.is-success {
  color: var(--pn-success);
}
.pg-coupon-status.is-error {
  color: var(--pn-danger);
}
.pg-coupon-status a {
  color: var(--pn-danger);
  font-weight: 600;
  text-decoration: none;
}
.pg-coupon-status a:hover {
  text-decoration: underline;
}

.form-check.accept-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 6px;
}
.form-check.accept-check .form-check-input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--navy-primary);
}
.form-check.accept-check .form-check-label {
  font-size: 13px;
  color: var(--pn-text-muted);
  line-height: 1.5;
  font-weight: 400;
}
.wiz-panel a {
  color: var(--blue-accent);
  font-weight: 600;
}
.wiz-panel a:hover {
  color: var(--navy-primary);
  text-decoration: underline;
}

/* ============================================================
   PAYMENT STEP
   ============================================================ */
.payment-plan-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(var(--blue-accent-rgb), 0.08);
  border: 1px solid var(--pn-border);
  border-radius: var(--pn-radius-md);
  padding: 18px 20px;
  margin-bottom: 20px;
}
.payment-plan-row .plan-amt {
  font-family: var(--pn-font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--navy-primary);
}
.pg-secure-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--pn-text-muted);
  margin-top: 4px;
}
.pg-secure-note .material-icons-outlined {
  font-size: 16px;
  color: var(--navy-primary);
}

/* ============================================================
   NAV BUTTONS — sticky action bar on mobile
   ============================================================ */
.wiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: clamp(1.5rem, 5vw, 2rem);
  padding-top: clamp(1rem, 3vw, 1.5rem);
  border-top: 1px solid var(--pn-border-soft);
}
.wiz-nav.is-hidden {
  display: none;
}

@media (max-width: 639px) {
  .wiz-nav {
    position: sticky;
    bottom: 0;
    background: var(--pn-surface);
    margin: clamp(1.25rem, 5vw, 1.5rem) -1.25rem 0;
    padding: 12px 1.25rem calc(12px + var(--pn-safe-b));
    box-shadow: 0 -8px 20px -8px rgba(5, 20, 54, 0.12);
  }
}

.wiz-btn-back,
.wiz-btn-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--pn-radius-sm);
  font-weight: 600;
  font-size: 14.5px;
  padding: 13px 20px;
  min-height: 48px;
  cursor: pointer;
  transition:
    background 0.18s var(--pn-ease),
    color 0.18s var(--pn-ease),
    box-shadow 0.18s var(--pn-ease),
    transform 0.12s var(--pn-ease),
    border-color 0.18s var(--pn-ease);
  border: none;
  white-space: nowrap;
}
.wiz-btn-back {
  background: #fff;
  color: var(--pn-text-muted);
  border: 1.5px solid var(--pn-border);
  flex-shrink: 0;
}
.wiz-btn-back:hover {
  background: var(--pn-bg);
  color: var(--pn-text);
  border-color: var(--pn-text-faint);
}
.wiz-btn-back:active {
  transform: scale(0.98);
}
@media (max-width: 639px) {
  .wiz-btn-back {
    padding: 13px;
    width: 48px;
  }
  .wiz-btn-back .wiz-back-label {
    display: none;
  }
}

.wiz-btn-next {
  background: linear-gradient(135deg, var(--navy-primary), var(--navy-dark));
  color: #fff;
  box-shadow: var(--pn-shadow-btn);
  flex: 1;
}
@media (min-width: 640px) {
  .wiz-btn-next {
    flex: 0 0 auto;
    min-width: 220px;
  }
}
.wiz-btn-next:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}
.wiz-btn-next:active {
  transform: translateY(0) scale(0.99);
}
.wiz-btn-next:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}
.wiz-btn-next .arrow {
  transition: transform 0.15s var(--pn-ease);
}
.wiz-btn-next:hover .arrow {
  transform: translateX(3px);
}

.wiz-btn-next.is-loading .arrow,
.wiz-btn-next.is-loading .material-icons-outlined {
  display: none;
}
.wiz-btn-next .btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: pgSpin 0.7s linear infinite;
}
.wiz-btn-next.is-loading .btn-spinner {
  display: inline-block;
}

/* ============================================================
   ADDRESS AUTOCOMPLETE
   ============================================================ */
.pac-container {
  z-index: 2000 !important;
  border-radius: var(--pn-radius-sm);
  margin-top: 6px;
  box-shadow: var(--pn-shadow-card);
  border: 1px solid var(--pn-border);
  font-family: var(--pn-font-body);
}

@media (max-width: 380px) {
  .otp-box {
    max-width: 44px;
    height: 50px;
    font-size: 18px;
  }
}

@media (max-width: 639px) {
  .wiz-panel.wiz-panel-centered.active {
    min-height: 10px !important;
  }

  .pg-info-eyebrow {
    display: none;
  }

  .pg-card-wrap {
    margin-top: 4%;
  }

  .pg-info {
    border-radius: var(--pn-radius-lg) !important;
  }
}

/* ============================================================
   CHOOSE-PATH PAGE (choose-register.ejs)
   "Are you a company / individual?" — two selectable option cards.
   Reuses existing tokens/colors only; no new brand colors.
   ============================================================ */
.cr-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3rem) clamp(1rem, 4vw, 1rem)
    clamp(2.5rem, 6vw, 4rem);
}

.cr-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(2rem, 6vw, 2.75rem);
}

.cr-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-primary);
  background: rgba(var(--blue-accent-rgb), 0.1);
  border: 1px solid rgba(var(--blue-accent-rgb), 0.28);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.cr-header h1 {
  font-family: var(--pn-font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 4.6vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy-primary);
  margin: 0 0 0.6rem;
}

.cr-header p {
  font-size: 15px;
  color: var(--pn-text-muted);
  margin: 0;
}

.cr-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 880px;
  margin: 0 auto;
}

@media (min-width: 700px) {
  .cr-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.cr-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--pn-surface);
  border: 1.5px solid var(--pn-border);
  border-radius: var(--pn-radius-lg);
  box-shadow: var(--pn-shadow-card);
  padding: clamp(1.75rem, 5vw, 2.5rem) clamp(1.5rem, 4vw, 2rem);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.18s var(--pn-ease),
    border-color 0.18s var(--pn-ease),
    box-shadow 0.18s var(--pn-ease);
}

.cr-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--blue-accent-rgb), 0.55);
}

.cr-card:active {
  transform: translateY(-1px) scale(0.995);
}

.cr-card-icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(
    160deg,
    rgba(var(--blue-accent-rgb), 0.14),
    rgba(8, 30, 79, 0.06)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex: none;
}

.cr-card-icon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.cr-card .heading .title {
  font-family: var(--pn-font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--pn-text);
  margin: 0 0 0.6rem;
}

.cr-card .desc p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--pn-text-muted);
  margin: 0 0 1.5rem;
  min-height: 62px;
}

.cr-card .cr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  background: linear-gradient(135deg, var(--navy-primary), var(--navy-dark));
  color: #fff;
  font-weight: 600;
  font-size: 14.5px;
  border-radius: var(--pn-radius-sm);
  padding: 13px 20px;
  box-shadow: var(--pn-shadow-btn);
  transition:
    filter 0.18s var(--pn-ease),
    transform 0.12s var(--pn-ease);
}

.cr-card:hover .cr-btn {
  filter: brightness(1.15);
}

.cr-card .cr-btn .material-icons-outlined {
  font-size: 18px;
  transition: transform 0.15s var(--pn-ease);
}

.cr-card:hover .cr-btn .material-icons-outlined {
  transform: translateX(3px);
}

/* ============================================================
   PLAN GRID PAGE (choose-register-plan.ejs)
   Pricing cards for the selected role (company / individual).
   ============================================================ */
.rp-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3rem) clamp(1rem, 4vw, 1rem)
    clamp(2.5rem, 6vw, 4rem);
}

.rp-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pn-text-muted);
  text-decoration: none;
  margin-bottom: clamp(1.25rem, 4vw, 1.75rem);
  transition: color 0.15s var(--pn-ease);
}

.rp-back .material-icons-outlined {
  font-size: 18px;
}

.rp-back:hover {
  color: var(--navy-primary);
}

.rp-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto clamp(2rem, 6vw, 2.75rem);
}

.rp-header h1 {
  font-family: var(--pn-font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 4.6vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy-primary);
  margin: 0 0 0.6rem;
}

.rp-header p {
  font-size: 15px;
  color: var(--pn-text-muted);
  margin: 0;
}

.rp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 700px) {
  .rp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .rp-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.rp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--pn-surface);
  border: 1.5px solid var(--pn-border);
  border-radius: var(--pn-radius-lg);
  box-shadow: var(--pn-shadow-card);
  padding: clamp(1.5rem, 4vw, 2rem);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.18s var(--pn-ease),
    border-color 0.18s var(--pn-ease);
}

.rp-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--blue-accent-rgb), 0.55);
}

.rp-card.recommended {
  background: linear-gradient(
    160deg,
    var(--navy-primary) 0%,
    var(--navy-dark) 100%
  );
  border-color: transparent;
  color: #eef2fa;
}

@media (min-width: 700px) {
  .rp-card.recommended {
    transform: translateY(-10px);
  }
  .rp-card.recommended:hover {
    transform: translateY(-14px);
  }
}

.rp-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 14px -4px rgba(8, 30, 79, 0.45);
  white-space: nowrap;
}

.rp-card-header {
  text-align: center;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--pn-border-soft);
}

.rp-card.recommended .rp-card-header {
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.rp-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  font-family: var(--pn-font-display);
}

.rp-price .rp-currency {
  font-size: 16px;
  font-weight: 600;
  color: var(--pn-text-muted);
  align-self: flex-start;
  margin-top: 6px;
}

.rp-price .rp-amount {
  font-size: clamp(2rem, 4.5vw, 2.4rem);
  font-weight: 600;
  color: var(--pn-text);
}

.rp-price .rp-cadence {
  font-size: 13px;
  color: var(--pn-text-muted);
  font-weight: 500;
}

.rp-card.recommended .rp-price .rp-currency,
.rp-card.recommended .rp-price .rp-cadence {
  color: #a9bfd4;
}

.rp-card.recommended .rp-price .rp-amount {
  color: #fff;
}

.rp-price-free {
  font-family: var(--pn-font-display);
  font-size: clamp(1.7rem, 4vw, 2rem);
  font-weight: 600;
  color: var(--pn-text);
}

.rp-card.recommended .rp-price-free {
  color: #fff;
}

.rp-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.rp-title {
  font-family: var(--pn-font-display);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
  color: var(--pn-text);
  text-align: center;
}

.rp-card.recommended .rp-title {
  color: #fff;
}

.rp-sub {
  font-size: 13px;
  color: var(--pn-text-muted);
  text-align: center;
  margin: 0 0 1.25rem;
}

.rp-card.recommended .rp-sub {
  color: #a9bfd4;
}

.rp-check {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  flex: 1;
}

.rp-check li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--pn-text);
  padding: 7px 0;
}

.rp-card.recommended .rp-check li {
  color: #eef2fa;
}

.rp-check li .material-icons-outlined {
  font-size: 17px;
  color: var(--pn-success);
  flex: none;
  margin-top: 1px;
}

.rp-card.recommended .rp-check li .material-icons-outlined {
  color: #7fe0a8;
}

.rp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  background: linear-gradient(135deg, var(--navy-primary), var(--navy-dark));
  color: #fff;
  font-weight: 600;
  font-size: 14.5px;
  border-radius: var(--pn-radius-sm);
  padding: 13px 20px;
  box-shadow: var(--pn-shadow-btn);
  transition:
    filter 0.18s var(--pn-ease),
    transform 0.12s var(--pn-ease);
}

.rp-card.recommended .rp-cta {
  background: #fff;
  color: var(--navy-primary);
  box-shadow: 0 10px 22px -6px rgba(0, 0, 0, 0.35);
}

.rp-card:hover .rp-cta {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.rp-card.recommended:hover .rp-cta {
  filter: none;
  background: #f2f6fb;
}

@media (max-width: 639px) {
  .rp-card.recommended {
    transform: none;
  }
  .rp-card.recommended:hover {
    transform: translateY(-4px);
  }
}
