﻿/* ==========================================================================
   NextPUB â€” shared foundation
   Tokens, typography, buttons, form controls, brand marks, header & footer.
   ========================================================================== */

:root {
  color-scheme: light;

  /* Brand */
  --navy-900: #0d2a51;
  --navy-800: #123663;
  --navy-700: #1a4680;
  --brand-700: #0b56c4;
  --brand-600: #1668e3;
  --brand-500: #3585f2;
  --brand-100: #d8e8fd;
  --brand-50:  #eff6ff;

  /* Neutrals â€” very slightly blue-biased so they sit with the brand */
  --page:    #f5f9fe;
  --panel:   #eef5fd;
  --surface: #ffffff;
  --line:    #e1e9f3;
  --line-strong: #cfdcec;
  --ink:     #14233d;
  --ink-2:   #3b4a66;
  --muted:   #6d7d99;
  --muted-2: #8b99b2;

  /* Semantic */
  --green:   #17a34a;
  --green-bg:#e7f6ed;
  --amber:   #c98705;
  --amber-bg:#fdf3dd;
  --red:     #d93b3b;
  --violet:  #6f52d9;
  --violet-bg:#eee9fc;
  --orange:  #e8710a;

  /* Shape */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(19, 42, 74, .06);
  --shadow-md: 0 6px 18px rgba(19, 42, 74, .08);
  --shadow-lg: 0 18px 44px rgba(13, 42, 81, .12);

  /* Type */
  --display: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --script: "Caveat", "Segoe Script", cursive;
}

*, *::before, *::after { box-sizing: border-box; }

/* Keep site theme body (dark bg from theme.css); light styles are scoped to the form card */

h1, h2, h3, h4, h5 {
  font-family: var(--display);
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
  text-wrap: balance;
}

p { margin: 0; }
img, svg { max-width: 100%; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* --------------------------------------------------------------- brand --- */

.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--navy-900);
}
.brand__tag {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: .01em;
  margin-top: 3px;
}
.brand--light .brand__name { color: #fff; }
.brand--light .brand__tag { color: #b8cde9; }
.brand--lg .brand__mark { width: 42px; height: 42px; }
.brand--lg .brand__name { font-size: 30px; }
.brand--lg .brand__tag { font-size: 12px; }

/* -------------------------------------------------------------- header --- */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 28px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-inline: auto;
  font-size: 14.5px;
  font-weight: 500;
}
.site-nav a { color: var(--ink-2); }
.site-nav a:hover { color: var(--brand-600); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--brand-600); font-weight: 600; }

.header__aside { display: flex; align-items: center; gap: 16px; }
.header__help {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--ink-2); font-size: 14.5px; font-weight: 500;
}
.header__note { color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------------- buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease, border-color .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--brand-600); color: #fff; box-shadow: 0 2px 8px rgba(22,104,227,.28); }
.btn--primary:hover { background: var(--brand-700); }
.btn--ghost { background: var(--surface); color: var(--ink-2); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--brand-500); color: var(--brand-700); }
.btn--outline { background: transparent; color: var(--brand-600); border-color: var(--brand-500); }
.btn--outline:hover { background: var(--brand-50); }
.btn--navy { background: var(--navy-800); color: #fff; }
.btn--navy:hover { background: var(--navy-900); }
.btn--block { width: 100%; }
.btn--lg { padding: 13px 26px; font-size: 16px; }
.btn--sm { padding: 7px 16px; font-size: 13.5px; border-radius: var(--r-sm); }

/* --------------------------------------------------------------- forms --- */

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field__label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.req { color: var(--red); }
.field__hint { font-size: 12px; color: var(--muted); }
.field__error { font-size: 12.5px; color: var(--red); display: none; }
.field.is-invalid .field__error { display: block; }
.field.is-invalid .input,
.field.is-invalid .select,
.field.is-invalid .input-wrap { border-color: var(--red); }

.input, .select, textarea.input {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 11px 13px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder, textarea.input::placeholder { color: var(--muted-2); }
.input:focus, .select:focus, textarea.input:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(53,133,242,.16);
}
textarea.input { resize: vertical; min-height: 82px; }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236d7d99' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 38px;
  cursor: pointer;
}

/* input with a leading icon or trailing action */
.input-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 0 12px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input-wrap:focus-within {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(53,133,242,.16);
}
.input-wrap .input {
  border: 0;
  padding: 11px 0;
  background: transparent;
  box-shadow: none;
}
.input-wrap .input:focus { box-shadow: none; }
.input-wrap__icon { color: var(--muted); display: inline-flex; flex: none; }
.input-wrap__badge {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 10px; font-weight: 800; color: #fff;
}
.badge-orcid { background: #a6ce39; }
.badge-scopus { background: #e8710a; }
.badge-wos { background: #7a54c8; }
.eye {
  border: 0; background: none; padding: 4px; cursor: pointer;
  color: var(--muted); display: inline-flex; flex: none;
}
.eye:hover { color: var(--brand-600); }

.phone-code {
  display: flex; align-items: center; gap: 6px;
  flex: none; padding-right: 10px; margin-right: 2px;
  border-right: 1px solid var(--line);
  font-size: 14.5px; color: var(--ink-2); font-weight: 500;
}

/* checkbox & radio */
.check, .radio {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
  line-height: 1.45;
}
.check input, .radio input {
  appearance: none;
  width: 17px; height: 17px;
  flex: none;
  margin: 2px 0 0;
  border: 1.6px solid var(--line-strong);
  background: var(--surface);
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease;
}
.check input { border-radius: 4px; }
.radio input { border-radius: 50%; }
.check input:checked, .radio input:checked { background: var(--brand-600); border-color: var(--brand-600); }
.check input:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.radio input:checked { box-shadow: inset 0 0 0 3px var(--surface); }

/* ---------------------------------------------------------------- card --- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 24px;
}
.card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.card__title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.card__icon {
  width: 26px; height: 26px; flex: none;
  color: var(--brand-600);
  display: inline-flex; align-items: center; justify-content: center;
}
.card__sub { font-size: 13px; color: var(--muted); margin-top: -2px; }
.card__action {
  margin-left: auto;
  font-family: var(--body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-600);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.card__action:hover { color: var(--brand-700); text-decoration: underline; }

ol.stepper, ol.track, .plain-list { list-style: none; margin: 0; padding: 0; }

/* -------------------------------------------------------- index badges --- */

.indexers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.indexer {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.indexer--scopus { color: #e8710a; }
.indexer--pubmed { color: #205493; }
.indexer--wos { color: #2b2b2b; }
.indexer--embase { color: #d9532c; }
.indexer--doaj { color: #c0392b; }
.indexer--ebsco { color: #14264a; }
.indexer--ugc { color: #7a1f2b; }

/* --------------------------------------------------------------- misc  --- */

.script-note {
  font-family: var(--script);
  font-size: 27px;
  line-height: 1.15;
  color: var(--navy-800);
}
.quote-line {
  font-style: italic;
  color: var(--navy-800);
  font-weight: 600;
}

.feature-list { display: grid; gap: 17px; }
.feature {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 13px;
  align-items: start;
}
.feature__icon {
  width: 42px; height: 42px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--brand-50);
  color: var(--brand-600);
}
.feature__title { display: block; font-family: var(--display); font-weight: 700; font-size: 15.5px; color: var(--navy-900); }
.feature__text { display: block; font-size: 13.5px; color: var(--muted); }

.icon-tint-1 { background: #e6f0fe; color: #1668e3; }
.icon-tint-2 { background: #e6f7ef; color: #17a34a; }
.icon-tint-3 { background: #fdeaf1; color: #d6407f; }
.icon-tint-4 { background: #fdf0e3; color: #e8710a; }
.icon-tint-5 { background: #ece9fc; color: #6f52d9; }

/* -------------------------------------------------------------- footer --- */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 16px 28px;
}
.site-footer__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-inline: auto;
  font-size: 13.5px;
  color: var(--muted);
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--brand-600); }
.footer-links .sep { color: var(--line-strong); }
.copyright { font-size: 13px; color: var(--muted); }
.social { display: flex; gap: 12px; color: var(--brand-600); }

@media (max-width: 900px) {
  .site-nav { display: none; }
  .site-footer__inner { justify-content: center; text-align: center; }
  .footer-links { margin-inline: 0; justify-content: center; }
}

/* ==========================================================================
   NextPUB — login, registration wizard and confirmation screens
   ========================================================================== */

/* ================================================================ login === */

.split {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  min-height: 100vh;
}

.promo {
  background:
    radial-gradient(120% 90% at 12% 0%, #1c4880 0%, rgba(28,72,128,0) 60%),
    linear-gradient(160deg, #0d2a51 0%, #10315e 55%, #0b2246 100%);
  color: #eaf2fc;
  padding: 30px 44px 34px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.promo__top { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.promo__nav {
  display: flex; gap: 20px; margin-left: auto;
  font-size: 14px; font-weight: 500;
}
.promo__nav a { color: #c6dcf7; }
.promo__nav a:hover { color: #fff; text-decoration: none; }

.promo__title {
  font-size: clamp(30px, 3.1vw, 46px);
  font-weight: 800;
  letter-spacing: -.025em;
  color: #fff;
  line-height: 1.08;
}
.promo__title em { font-style: normal; color: #6fb2ff; }
.promo__lead { font-size: 16px; color: #bed5f1; max-width: 52ch; }

.pillars {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  text-align: center;
}
.pillar { display: grid; justify-items: center; gap: 8px; }
.pillar svg { color: #9cc8ff; }
.pillar span {
  font-size: 12.5px;
  line-height: 1.3;
  color: #d6e7fb;
  font-weight: 500;
}

.promo__art { margin: 2px 0; }

.promo .indexers { gap: 8px; }
.promo .indexer { box-shadow: none; border-color: rgba(255,255,255,.18); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 4px;
}
.stat { display: flex; align-items: center; gap: 11px; }
.stat svg { color: #6fb2ff; flex: none; }
.stat__num {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.stat__label { font-size: 12.5px; color: #b6cfee; }

.promo__quote {
  font-style: italic;
  color: #cfe2f8;
  font-size: 15px;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 16px;
  margin-top: auto;
}

/* right-hand auth panel */
.auth {
  background: var(--surface);
  padding: 26px 52px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.auth__top { display: flex; justify-content: flex-end; }
.auth__back { font-size: 14.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.auth__body { max-width: 560px; width: 100%; margin: auto; display: flex; flex-direction: column; gap: 8px; }
.auth__title { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.auth__title span { color: var(--brand-600); }
.auth__lead { color: var(--muted); font-size: 15px; max-width: 48ch; }

.auth-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  margin-top: 18px;
  overflow: hidden;
}
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}
.tab {
  border: 0; background: none; cursor: pointer;
  font: 600 15.5px/1 var(--body);
  color: var(--muted);
  padding: 18px 10px 15px;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.tab[aria-selected="true"] { color: var(--brand-600); border-bottom-color: var(--brand-600); }

.auth-form { padding: 22px 26px 26px; display: grid; gap: 15px; }
.auth-form__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  margin: 2px 0;
}
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); }

.oauth { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.oauth__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 11px 8px;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  cursor: pointer;
}
.oauth__btn:hover { border-color: var(--brand-500); text-decoration: none; }

.newhere {
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: var(--r-md);
  padding: 14px 16px;
  text-align: center;
  font-size: 14.5px;
  color: var(--ink-2);
}
.newhere a { font-weight: 700; }

.trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  text-align: center;
  padding-top: 4px;
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}
.trust__item { display: grid; justify-items: center; gap: 7px; }
.trust__item svg { color: var(--brand-600); }
.trust__item span { font-size: 12.5px; color: var(--ink-2); font-weight: 600; line-height: 1.3; }

.auth__foot {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  font-size: 12.5px; color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.auth__foot a { color: var(--muted); }

@media (max-width: 1020px) {
  .split { grid-template-columns: 1fr; }
  .promo { order: 2; }
  .auth { padding: 22px 22px 26px; }
  .pillars { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .promo { padding: 22px 18px 26px; }
  .pillars, .stats, .oauth, .trust { grid-template-columns: 1fr 1fr; }
  .auth-form { padding: 18px 16px 20px; }
}

/* ====================================================== registration ====== */

.reg {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  align-items: stretch;
  min-height: calc(100vh - 118px);
}

.reg__aside {
  background: linear-gradient(175deg, #e9f2fd 0%, #f4f9ff 45%, #eaf3fd 100%);
  border-right: 1px solid var(--line);
  padding: 34px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.aside-panel { display: none; flex-direction: column; gap: 22px; height: 100%; }
.aside-panel.is-active { display: flex; }
.aside__title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.12;
  color: var(--navy-900);
}
.aside__title span { color: var(--brand-600); }
.aside__lead { color: var(--ink-2); font-size: 14.5px; }
.aside__art { margin-top: auto; }
.aside__foot { font-size: 12.5px; color: var(--muted); text-align: center; }

.reg__main { padding: 30px 38px 40px; min-width: 0; }
.reg__head { margin-bottom: 26px; display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; }
.reg__headings { min-width: 260px; }
.reg__title { font-size: 30px; font-weight: 800; letter-spacing: -.025em; }
.reg__step { color: var(--brand-600); font-weight: 700; font-size: 17px; margin-top: 4px; }
.reg__sub { color: var(--muted); font-size: 14px; margin-top: 2px; }

/* stepper */
.stepper {
  display: flex;
  align-items: flex-start;
  margin-left: auto;
  padding-top: 4px;
  list-style: none;
}
.stepper__item { display: grid; justify-items: center; gap: 8px; width: 140px; text-align: center; }
.stepper__dot {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: #e6ecf5; color: var(--muted);
  font-weight: 700; font-size: 14px;
  border: 2px solid #e6ecf5;
  position: relative;
  z-index: 1;
}
.stepper__label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.stepper__line { height: 2px; background: #dde5ef; flex: 1; margin-top: 15px; min-width: 40px; }
.stepper__item.is-current .stepper__dot { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.stepper__item.is-current .stepper__label { color: var(--brand-600); }
.stepper__item.is-done .stepper__dot { background: var(--green); border-color: var(--green); color: #fff; font-size: 0; }
.stepper__item.is-done .stepper__dot::after {
  content: ""; width: 14px; height: 14px; display: block;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}
.stepper__item.is-done .stepper__label { color: var(--green); }
.stepper__line.is-done { background: var(--green); }

.step-panel { display: none; flex-direction: column; gap: 20px; }
.step-panel.is-active { display: flex; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-2-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }

/* account type tiles */
.acct-types { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.acct {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 15px 10px 13px;
  text-align: center;
  cursor: pointer;
  display: grid;
  justify-items: center;
  gap: 6px;
  transition: border-color .15s ease, background .15s ease;
}
.acct input { position: absolute; opacity: 0; pointer-events: none; }
.acct svg { color: var(--ink-2); }
.acct__name { font-size: 14px; font-weight: 700; color: var(--ink); }
.acct__note { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.acct:hover { border-color: var(--brand-500); }
.acct:has(input:checked) {
  border-color: var(--brand-600);
  background: var(--brand-50);
  box-shadow: 0 0 0 1px var(--brand-600) inset;
}
.acct:has(input:checked) svg { color: var(--brand-600); }
.acct__tick {
  position: absolute; top: -8px; right: -8px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-600); color: #fff;
  display: none; place-items: center;
}
.acct:has(input:checked) .acct__tick { display: grid; }

/* upload */
.upload {
  display: flex; align-items: center; gap: 10px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  padding: 10px 13px;
  background: var(--brand-50);
  cursor: pointer;
  color: var(--ink-2);
}
.upload:hover { border-color: var(--brand-500); }
.upload strong { font-size: 13.5px; display: block; font-weight: 600; }
.upload small { font-size: 11.5px; color: var(--muted); }
.upload input { display: none; }

/* chips multiselect */
.chips-box {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-700);
  border-radius: var(--r-sm);
  padding: 5px 9px;
  font-size: 13px;
  font-weight: 600;
}
.chip button { border: 0; background: none; cursor: pointer; color: inherit; padding: 0; display: inline-flex; }
.chips-input { display: flex; align-items: center; gap: 8px; }
.chips-input .input { border: 0; padding: 4px 0; box-shadow: none; }
.chips-input .input:focus { box-shadow: none; }

.opt-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 16px; }
.opt-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px 16px; }
.opt-row { display: flex; flex-wrap: wrap; gap: 12px 22px; }

.counter { font-size: 11.5px; color: var(--muted); text-align: right; }

/* review */
.review-list { display: grid; gap: 11px; }
.review-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 14px;
  font-size: 13.8px;
  align-items: start;
}
.review-row dt { color: var(--muted); }
.review-row dd { margin: 0; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.review-row dd.with-badge { display: flex; align-items: center; gap: 8px; }

.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 2px;
}

@media (max-width: 1180px) {
  .stepper__item { width: 108px; }
  .acct-types { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .reg { grid-template-columns: 1fr; }
  .reg__aside { border-right: 0; border-bottom: 1px solid var(--line); }
  .reg__main { padding: 24px 18px 34px; }
  .grid-3, .opt-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .grid-2, .grid-2-col, .grid-3, .opt-grid-2, .opt-grid-3 { grid-template-columns: 1fr; }
  .acct-types { grid-template-columns: 1fr 1fr; }
  .review-row { grid-template-columns: 1fr; gap: 2px; }
  .stepper { width: 100%; overflow-x: auto; }
  .reg__title { font-size: 24px; }
}

/* ======================================================== confirmation === */

.done {
  min-height: 100vh;
  background: linear-gradient(180deg, #eef5fd 0%, #f7fbff 60%);
  display: flex;
  flex-direction: column;
}
.done__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr) 400px;
  gap: 20px;
  padding: 26px 26px 20px;
  align-items: start;
  flex: 1;
}

.done-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 30px 28px 24px;
  text-align: center;
  display: grid;
  gap: 16px;
  justify-items: center;
}
.tick-burst { position: relative; width: 92px; height: 92px; }
.tick-burst__circle {
  position: absolute; inset: 10px;
  border-radius: 50%;
  background: var(--green);
  display: grid; place-items: center;
  color: #fff;
}
.done-card__title { font-size: 27px; font-weight: 800; color: var(--navy-900); letter-spacing: -.025em; }
.done-card__sub { font-size: 16px; font-weight: 700; color: var(--brand-600); }
.done-card__text { color: var(--muted); font-size: 14.5px; max-width: 40ch; }

.notice {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  width: 100%;
  text-align: left;
  border-radius: var(--r-md);
  padding: 14px 16px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
}
.notice--wa { background: #e9f8ee; border-color: #c7ecd3; }
.notice__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--brand-600); }
.notice--wa .notice__icon { color: #25a34a; }
.notice__title { display: block; font-family: var(--display); font-weight: 700; font-size: 15.5px; color: var(--navy-900); }
.notice__text { display: block; font-size: 13.5px; color: var(--muted); }
.notice__text strong { color: var(--ink); font-weight: 700; }

.resend { font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }

.done-card__pillars {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  width: 100%; border-top: 1px solid var(--line); padding-top: 16px;
}

/* email mock */
.mail {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.mail__bar {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.mail__app { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--ink); font-size: 15px; }
.mail__tools { margin-left: auto; display: flex; gap: 14px; }
.mail__body { padding: 18px 20px 22px; display: grid; gap: 14px; }
.mail__subject { font-size: 20px; font-weight: 700; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tag-inbox { font-size: 11.5px; background: #eef1f5; color: var(--ink-2); border-radius: var(--r-sm); padding: 3px 8px; font-weight: 600; }
.mail__from { display: flex; align-items: center; gap: 11px; }
.avatar-circle {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--brand-600); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-family: var(--display);
  flex: none;
}
.mail__sender { font-weight: 700; font-size: 14.5px; }
.mail__email { font-size: 13px; color: var(--muted); }
.mail__meta { margin-left: auto; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.mail__text { font-size: 14px; color: var(--ink-2); display: grid; gap: 10px; }

.creds {
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: var(--r-md);
  padding: 15px 17px;
  display: grid;
  gap: 11px;
}
.creds__title { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy-900); font-family: var(--display); }
.creds__row { display: grid; grid-template-columns: 88px 10px minmax(0, 1fr); gap: 8px; font-size: 13.8px; }
.creds__row dt { color: var(--muted); }
.creds__row dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.creds__note { font-size: 11.5px; color: var(--muted); font-weight: 400; }

.checklist { display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.checklist li { display: flex; align-items: center; gap: 9px; }
.checklist svg { color: var(--green); flex: none; }
.plain-list { list-style: none; margin: 0; padding: 0; }

.mail__sign { font-size: 14px; }
.mail__sign strong { color: var(--navy-900); }
.mail__sign em { color: var(--brand-600); font-style: normal; }
.mail__foot {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  display: flex; flex-wrap: wrap; gap: 16px;
  font-size: 12.5px; color: var(--muted);
}
.mail__foot span { display: inline-flex; align-items: center; gap: 6px; }

/* phone / whatsapp mock */
.phone {
  background: #11202b;
  border-radius: 34px;
  padding: 11px;
  box-shadow: var(--shadow-lg);
  max-width: 400px;
  margin-inline: auto;
}
.phone__screen { background: #ece5dd; border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; min-height: 640px; }
.phone__status {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 18px 5px; font-size: 12.5px; font-weight: 600; color: #22333f;
}
.phone__status-right { display: flex; align-items: center; gap: 5px; }
.wa__head {
  background: #075e54; color: #fff;
  display: flex; align-items: center; gap: 11px;
  padding: 10px 14px;
}
.wa__avatar { width: 36px; height: 36px; border-radius: 50%; background: #0b7a6c; display: grid; place-items: center; flex: none; }
.wa__name { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 6px; }
.wa__sub { font-size: 11.5px; color: #b7d8d3; }
.wa__actions { margin-left: auto; display: flex; gap: 14px; color: #d7ece8; }
.wa__thread {
  flex: 1;
  padding: 14px 12px 16px;
  display: flex; flex-direction: column; gap: 10px;
  background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px);
  background-size: 16px 16px;
}
.wa__bubble {
  background: #fff;
  border-radius: 10px 10px 10px 2px;
  padding: 13px 14px 8px;
  font-size: 13.6px;
  color: #1d2b36;
  box-shadow: 0 1px 1px rgba(0,0,0,.08);
  display: grid; gap: 9px;
  line-height: 1.5;
}
.wa__bubble strong { color: #0b2b45; }
.wa__creds { display: grid; gap: 3px; }
.wa__creds span { display: block; }
.wa__time { font-size: 11px; color: #7c8b96; text-align: right; }
.wa__quick { display: flex; flex-wrap: wrap; gap: 8px; }
.wa__chip {
  background: #fff; border: 1px solid #cfe0da; color: #0a6b5f;
  border-radius: var(--r-pill); padding: 8px 13px;
  font-size: 12.5px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 7px;
}
.wa__composer {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px 12px;
  background: transparent;
}
.wa__input {
  flex: 1; background: #fff; border-radius: var(--r-pill);
  padding: 10px 14px; color: #8b99a2; font-size: 13.5px;
  display: flex; align-items: center; gap: 9px;
}
.wa__mic { width: 42px; height: 42px; border-radius: 50%; background: #25a34a; color: #fff; display: grid; place-items: center; flex: none; }

.done__strip {
  background: var(--navy-900);
  color: #d9e7fa;
  padding: 14px 26px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  font-size: 14px;
}
.done__strip .sep { color: #3a5b87; }
.done__strip .brand { margin-left: auto; }

@media (max-width: 1240px) {
  .done__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .done__grid > .phone-wrap { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .done__grid { grid-template-columns: 1fr; padding: 18px 16px; }
  .done__strip { justify-content: center; }
  .done__strip .brand { margin-left: 0; }
}

.reg-alert{margin:0 0 16px;padding:12px 14px;border-radius:10px;font-size:14px;font-weight:600}
.reg-alert--error{background:#fdecec;border:1px solid #f5c2c2;color:#9b1c1c}
.reg-alert--ok{background:#e7f6ed;border:1px solid #b7e4c7;color:#166534}

/* ================================================================== site integration
   Register pages use the global fixed #nav from theme.css. These rules clear the nav,
   keep a light form surface, and stop homepage .card:hover styles from darkening fields.
   ================================================================== */

.register-page-wrap {
  padding: 96px 24px 48px;
  background: transparent;
  color: inherit;
}

.register-success-wrap {
  padding: 84px 20px 36px;
  background: transparent;
  color: inherit;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.register-page-wrap .reg {
  max-width: 1320px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e1e9f3;
  border-radius: var(--r-lg);
  box-shadow: 0 18px 44px rgba(13, 42, 81, .18);
  min-height: auto;
  overflow: hidden;
  color: var(--ink);
}

.register-page-wrap .reg__main {
  background: #fff;
  color: var(--ink);
}

.register-page-wrap .reg__title,
.register-page-wrap .reg__step,
.register-page-wrap .reg__sub,
.register-page-wrap .card__title,
.register-page-wrap .card__sub,
.register-page-wrap .field__label {
  color: inherit;
}

.register-page-wrap .reg__title { color: var(--navy-900); }
.register-page-wrap .reg__step { color: var(--brand-600); }
.register-page-wrap .reg__sub { color: var(--muted); }
.register-page-wrap .card__title { color: var(--navy-900); }
.register-page-wrap .card__sub { color: var(--muted); }
.register-page-wrap .field__label { color: var(--ink-2); }

/* Beat theme.css `.field input` (light text on transparent bg) inside the white form */
.register-page-wrap .field .input,
.register-page-wrap .field .select,
.register-page-wrap .field textarea.input {
  background-color: #fff;
  color: #14233d;
  border: 1px solid #cfdcec;
  font-size: 14px;
  padding: 9px 12px;
}

.register-page-wrap .field .input:focus,
.register-page-wrap .field .select:focus,
.register-page-wrap .field textarea.input:focus {
  background-color: #fff;
  color: #14233d;
  border-color: #3585f2;
  box-shadow: 0 0 0 3px rgba(53, 133, 242, .14);
}

.register-page-wrap .field .input::placeholder,
.register-page-wrap .field textarea.input::placeholder {
  color: #8b99b2;
}

.register-page-wrap .field .select {
  background-color: #fff;
  color: #14233d;
}

.register-page-wrap .field .select option {
  color: #14233d;
  background: #fff;
}

.register-page-wrap .field .input-wrap {
  background: #fff;
  border: 1px solid #cfdcec;
  padding: 0 10px;
}

.register-page-wrap .field .input-wrap .input {
  background: transparent;
  color: #14233d;
  padding: 9px 0;
  border: 0;
  box-shadow: none;
}

.register-page-wrap .field .input-wrap .input:focus {
  background: transparent;
  color: #14233d;
  box-shadow: none;
}

.register-page-wrap .field input:-webkit-autofill,
.register-page-wrap .field input:-webkit-autofill:hover,
.register-page-wrap .field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #14233d !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
}

/* Compact registration layout */
.register-page-wrap .reg {
  grid-template-columns: 300px minmax(0, 1fr);
  max-width: 1160px;
}

.register-page-wrap .reg__aside {
  padding: 20px 20px 16px;
  gap: 12px;
}

.register-page-wrap .aside__title {
  font-size: 22px;
  line-height: 1.15;
}

.register-page-wrap .aside__lead {
  font-size: 13px;
}

.register-page-wrap .feature-list {
  gap: 10px;
}

.register-page-wrap .feature__title {
  font-size: 14px;
}

.register-page-wrap .feature__text {
  font-size: 12.5px;
}

.register-page-wrap .script-note {
  font-size: 15px;
  margin-top: 4px;
}

.register-page-wrap .aside__art svg {
  max-height: 120px;
}

.register-page-wrap .indexers {
  gap: 6px;
}

.register-page-wrap .reg__main {
  padding: 18px 24px 24px;
}

.register-page-wrap .reg__head {
  margin-bottom: 14px;
  gap: 12px;
}

.register-page-wrap .reg__title {
  font-size: 24px;
}

.register-page-wrap .reg__step {
  font-size: 15px;
  margin-top: 2px;
}

.register-page-wrap .reg__sub {
  font-size: 13px;
}

.register-page-wrap .stepper__item {
  width: 104px;
}

.register-page-wrap .stepper__dot {
  width: 26px;
  height: 26px;
  font-size: 12px;
}

.register-page-wrap .stepper__label {
  font-size: 11px;
  line-height: 1.25;
}

.register-page-wrap .stepper__line {
  margin-top: 13px;
  min-width: 28px;
}

.register-page-wrap .step-panel {
  gap: 12px;
}

.register-page-wrap .grid-2,
.register-page-wrap .grid-2-col,
.register-page-wrap .grid-3,
.register-page-wrap .opt-grid-2,
.register-page-wrap .opt-grid-3 {
  gap: 12px;
}

.register-page-wrap .field {
  gap: 5px;
}

.register-page-wrap .field__label {
  font-size: 12.5px;
}

.register-page-wrap .acct-types {
  gap: 8px;
}

.register-page-wrap .acct {
  padding: 10px 6px 8px;
  gap: 4px;
}

.register-page-wrap .acct svg {
  width: 20px;
  height: 20px;
}

.register-page-wrap .acct__name {
  font-size: 12.5px;
}

.register-page-wrap .acct__note {
  font-size: 10px;
  line-height: 1.2;
}

.register-page-wrap .check,
.register-page-wrap .radio {
  font-size: 13px;
  gap: 7px;
}

.register-page-wrap .form-actions {
  margin-top: 4px;
  padding-top: 12px;
}

/* Override theme.css .card hover (dark --surface2 background) on the wizard */
.register-page-wrap .card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  overflow: visible;
  transform: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.register-page-wrap .card::before {
  display: none;
}

.register-page-wrap .card:hover,
.register-page-wrap .card:focus-within {
  transform: none;
  background: #fff;
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.register-page-wrap .card__head {
  margin-bottom: 12px;
  gap: 8px;
}

.register-page-wrap .card__title {
  font-size: 15px;
}

.register-page-wrap .card__sub {
  font-size: 12px;
}

.register-page-wrap .card__icon svg {
  width: 20px;
  height: 20px;
}

.register-page-wrap .card h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: var(--navy-900);
}

.register-success-wrap .done {
  min-height: auto;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.register-success-wrap .done__grid {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  grid-template-columns: none;
}

.register-success-wrap .done-card {
  width: min(100%, 560px);
  min-width: 0;
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e1e9f3;
  border-radius: var(--r-lg);
  box-shadow: 0 14px 36px rgba(13, 42, 81, .2);
  color: var(--ink);
  padding: 22px 28px 20px;
  gap: 12px;
}

.register-success-wrap .brand--lg {
  gap: 8px;
}

.register-success-wrap .brand--lg .brand__mark {
  width: 34px;
  height: 34px;
}

.register-success-wrap .brand--lg .brand__name {
  font-size: 22px;
}

.register-success-wrap .brand--lg .brand__tag {
  font-size: 10px;
  margin-top: 1px;
}

.register-success-wrap .done-card__title {
  font-size: 24px;
  line-height: 1.2;
}

.register-success-wrap .done-card__sub {
  font-size: 15px;
  margin-top: 2px !important;
}

.register-success-wrap .done-card__text {
  font-size: 13.5px;
  line-height: 1.45;
  max-width: 42ch;
}

.register-success-wrap .tick-burst {
  width: 72px;
  height: 72px;
  margin: 2px 0;
}

.register-success-wrap .tick-burst__circle {
  inset: 8px;
}

.register-success-wrap .tick-burst__circle svg {
  width: 30px;
  height: 30px;
}

.register-success-wrap .notice {
  padding: 11px 13px;
  gap: 10px;
  grid-template-columns: 36px minmax(0, 1fr);
}

.register-success-wrap .notice__icon {
  width: 36px;
  height: 36px;
}

.register-success-wrap .notice__icon svg {
  width: 18px;
  height: 18px;
}

.register-success-wrap .notice__title {
  font-size: 14px;
}

.register-success-wrap .notice__text {
  font-size: 12.5px;
  line-height: 1.4;
}

.register-success-wrap .resend {
  font-size: 12.5px;
  gap: 6px;
}

.register-success-wrap .btn--lg {
  padding: 11px 20px;
  font-size: 15px;
}

.register-success-wrap .done-card__pillars {
  gap: 8px;
  padding-top: 12px;
}

.register-success-wrap .done-card__pillars svg {
  width: 18px;
  height: 18px;
}

.register-success-wrap .trust__item {
  font-size: 11px;
  gap: 4px;
}

.register-success-wrap .quote-line {
  font-size: 13px;
  margin-top: 0 !important;
}

.register-success-wrap .reg-alert--ok {
  padding: 8px 10px;
  font-size: 13px;
  margin-bottom: 0;
}

@media (max-width: 820px) {
  .register-page-wrap {
    padding: 88px 16px 32px;
  }

  .register-success-wrap {
    padding: 76px 12px 28px;
  }

  .register-success-wrap .done-card {
    width: 100%;
    max-width: 100%;
    padding: 18px 16px 16px;
    gap: 10px;
  }

  .register-success-wrap .done-card__title {
    font-size: 21px;
  }

  .register-success-wrap .done-card__sub {
    font-size: 14px;
  }

  .register-success-wrap .tick-burst {
    width: 64px;
    height: 64px;
  }

  .register-success-wrap .done-card__pillars {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding-top: 10px;
  }

  .register-success-wrap .trust__item span {
    font-size: 10.5px;
  }

  .register-page-wrap .reg {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .register-page-wrap .reg__main {
    padding: 16px 14px 20px;
  }

  .register-page-wrap .stepper__item {
    width: 84px;
  }
}

@media (max-width: 480px) {
  .register-success-wrap {
    padding: 72px 10px 20px;
  }

  .register-success-wrap .done-card {
    padding: 16px 14px 14px;
    border-radius: 12px;
  }

  .register-success-wrap .brand--lg .brand__name {
    font-size: 20px;
  }

  .register-success-wrap .done-card__title {
    font-size: 19px;
  }

  .register-success-wrap .notice {
    padding: 10px 11px;
  }

  .register-success-wrap .btn--lg {
    width: 100%;
  }
}

