/* VoBlago — Registration Form Styles
   Palette and type follow voblago.com: white sheet, black type,
   HelveticaNeueCyr, coral only as a link/focus accent. */
@font-face {
  font-family: "HelveticaNeueCyr";
  src: url("https://static.tildacdn.com/tild3833-3832-4039-a161-643133646139/HelveticaNeueCyr-Rom.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "HelveticaNeueCyr";
  src: url("https://static.tildacdn.com/tild6266-3139-4830-a539-306466666337/HelveticaNeueCyr-Med.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "HelveticaNeueCyr";
  src: url("https://static.tildacdn.com/tild3534-3732-4063-b631-643063303831/HelveticaNeueCyr-Bol.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --vb-photo: url("https://static.tildacdn.com/tild3638-3565-4538-b436-646562363235/image_5.JPG");
  --vb-surface: #FFFFFF;
  --vb-accent: #FF8562;
  --vb-accent-hover: #ff6f45;
  --vb-text: #161616;
  --vb-text-dim: #666666;
  --vb-border: #E6E6E6;
  --vb-white: #FFFFFF;
  --vb-black: #161616;
  --vb-error: #C62828;
  --vb-success: #161616;

  --vb-font: "HelveticaNeueCyr", "Helvetica Neue", Arial, sans-serif;

  --vb-radius: 0px;
  --vb-sheet: 440px;
  --vb-space-block-padding: 36px;
}

html, body {
  min-height: 100%;
  font-family: var(--vb-font);
  color: var(--vb-text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 20px 72px;
  background: #111 var(--vb-photo) center center / cover no-repeat fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(22, 22, 22, 0.28);
  pointer-events: none;
  z-index: 0;
}

/* ── Logo ─────────────────────────────────────────────── */
.logo {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--vb-sheet);
  height: 96px;
  margin: 0 auto;
  background-color: var(--vb-surface);
  background-image: url("https://static.tildacdn.com/tild3832-6662-4861-b165-656638383632/logo.svg");
  background-size: 132px auto;
  background-repeat: no-repeat;
  background-position: center 34px;
}

/* ── Form wrapper ─────────────────────────────────────── */
#msform {
  width: 100%;
  max-width: var(--vb-sheet);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
}

@media (max-width: 600px)  { #msform { max-width: 100%; } }

/* ── Fieldsets (карточка формы) ───────────────────────── */
#msform fieldset {
  grid-area: 1 / 1;
  background: var(--vb-surface);
  border: none;
  border-radius: var(--vb-radius);
  padding: 8px 40px 40px;
  position: relative;
  width: 100%;
}

#msform fieldset:not(:first-of-type) { display: none; }

/* Заголовок шага */
.step-label {
  font-family: var(--vb-font);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--vb-text);
  margin-bottom: 20px;
  text-align: center;
  letter-spacing: -0.3px;
}

/* ── Inputs (underline) ───────────────────────────────── */
#msform input[type=text],
#msform input[type=number],
#msform input[type=tel],
#msform input[type=email],
#msform input[type=password] {
  width: 100%;
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid var(--vb-border);
  border-radius: 0;
  font-family: var(--vb-font);
  font-size: 16px;
  font-weight: 400;
  color: var(--vb-text);
  background: transparent;
  margin-bottom: 28px;
  outline: none;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
}

#msform input::placeholder {
  color: var(--vb-text-dim);
  opacity: 1;
}

#msform input[type=text]:focus,
#msform input[type=number]:focus,
#msform input[type=tel]:focus,
#msform input[type=email]:focus,
#msform input[type=password]:focus {
  border-bottom-color: var(--vb-accent);
}

#msform input[readonly] {
  color: var(--vb-text-dim);
  cursor: default;
  border-bottom-style: dashed;
}

#phone { letter-spacing: 0.02em; }

.input-error {
  border-bottom-color: var(--vb-error) !important;
  background: transparent !important;
}

/* ── Hint text ────────────────────────────────────────── */
.field-hint {
  font-family: var(--vb-font);
  font-size: 14px;
  line-height: 1.55;
  color: var(--vb-text-dim);
  margin-top: -12px;
  margin-bottom: 28px;
  display: block;
  text-align: center;
  max-width: 32em;
  margin-left: auto;
  margin-right: auto;
}

.call-gate-panel {
  margin-bottom: 20px;
  text-align: center;
}

.call-gate-mobile {
  display: inline-block;
  margin: 12px 0 16px;
  font-family: var(--vb-font);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--vb-text);
  text-decoration: none;
}

.call-gate-mobile:hover {
  color: var(--vb-accent);
}

.call-gate-status {
  font-size: 13px;
  color: var(--vb-text-dim);
  margin-bottom: 12px;
}

/* ── Buttons ───────────────────────────────────────────── */
.action-button {
  width: 100%;
  background: var(--vb-black);
  color: var(--vb-white);
  border: none;
  border-radius: var(--vb-radius);
  padding: 16px 36px;
  font-family: var(--vb-font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 24px;
  transition: background 0.2s ease, opacity 0.2s ease;
  -webkit-appearance: none;
}

.action-button:hover { background: #2a2a2a; }
.action-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: var(--vb-black);
  color: var(--vb-white);
}

.action-button.previous {
  background: transparent;
  color: var(--vb-text);
  border: 1px solid var(--vb-border);
  letter-spacing: 0.6px;
  margin-top: 12px;
}

.action-button.previous:hover {
  border-color: var(--vb-text-dim);
  background: transparent;
}

/* ── Gender ───────────────────────────────────────────── */
.gender-label {
  font-family: var(--vb-font);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--vb-text-dim);
  margin: 8px 0 16px;
  display: block;
  text-align: center;
}

.genderOptions {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-bottom: 24px;
}

.genderOptions label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--vb-text-dim);
  cursor: pointer;
  font-weight: 400;
}

input[type='radio'] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--vb-black);
}

.genderOptions.input-error label { color: var(--vb-error); }

/* ── Checkboxes ───────────────────────────────────────── */
.consent-block {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chkLabel {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 400;
  color: var(--vb-text-dim);
  cursor: pointer;
  text-align: left;
  line-height: 1.5;
}

.chkLabel a {
  color: var(--vb-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.chkLabel a:hover { color: var(--vb-text); }

.chkBox {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  border-radius: 3px;
  accent-color: var(--vb-black);
  cursor: pointer;
}

.consent-title {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--vb-text);
  margin-bottom: 2px;
}

/* ── Divider ──────────────────────────────────────────── */
.form-divider {
  border: none;
  border-top: 1px solid var(--vb-border);
  margin: 24px 0;
}

/* ── Warning / status ─────────────────────────────────── */
.warning {
  font-size: 12px;
  color: var(--vb-error);
  min-height: 18px;
  margin-top: 12px;
  text-align: center;
  display: block;
}

.error-msg {
  color: var(--vb-error);
  font-size: 12px;
  margin-top: 12px;
  text-align: center;
}

/* ── Spinner ──────────────────────────────────────────── */
.spinner {
  width: 22px;
  height: 22px;
  margin: 12px auto 0;
  display: none;
  border: 2px solid var(--vb-border);
  border-top-color: var(--vb-accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Success page ─────────────────────────────────────── */
.success-wrap {
  text-align: center;
  padding: 8px 0;
}

.success-icon {
  font-size: 40px;
  margin-bottom: 20px;
  display: block;
  color: var(--vb-text);
  line-height: 1;
}

.success-title {
  font-family: var(--vb-font);
  font-size: 24px;
  font-weight: 600;
  color: var(--vb-text);
  margin-bottom: 12px;
}

.success-text {
  font-size: 14px;
  color: var(--vb-text-dim);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 28em;
  margin-left: auto;
  margin-right: auto;
}

.wallet-btn {
  display: inline-block;
  margin: 0 auto 20px;
}

.wallet-btn input {
  display: block;
  background-image: url(/a/assets/img/COMBO_RU.svg);
  background-repeat: no-repeat;
  background-size: contain;
  background-color: transparent;
  border: none;
  width: 158px;
  height: 45px;
  cursor: pointer;
  margin: 0 auto;
}

.qr-wrap { margin-top: 16px; }
.qr-wrap img {
  border: 1px solid var(--vb-border);
  padding: 8px;
  background: var(--vb-white);
}

/* ── Error / info pages ───────────────────────────────── */
.info-wrap {
  text-align: center;
  padding: 8px 0;
}

.info-title {
  font-family: var(--vb-font);
  font-size: 22px;
  font-weight: 600;
  color: var(--vb-text);
  margin-bottom: 16px;
}

.info-text {
  font-size: 14px;
  color: var(--vb-text-dim);
  line-height: 1.7;
  max-width: 28em;
  margin-left: auto;
  margin-right: auto;
}

/* Legacy templates (AlreadyRegistered, NoCard, …) */
.fs-subtitle {
  font-family: var(--vb-font);
  font-size: 22px;
  font-weight: 600;
  color: var(--vb-error);
  text-align: center;
  margin-bottom: 16px;
}

.text-info,
.text-info.oferta {
  font-size: 14px;
  color: var(--vb-text-dim);
  line-height: 1.7;
  text-align: center;
  margin-bottom: 24px;
}

.text-info p + p { margin-top: 8px; }

#msform fieldset .logo {
  width: 100%;
  max-width: none;
  height: 64px;
  margin: 0 auto 20px;
  background-color: transparent;
  background-position: center center;
}

@media (max-width: 700px) {
  body {
    padding: 20px 12px 48px;
    background-attachment: scroll;
  }
  #msform fieldset { padding: 4px 22px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; }
}
