/* Katy Kiri — Registration Form Styles */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Roboto:wght@300;400;500&display=swap');

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

:root {
  --kk-bg-cream: #F0EFE2;
  --kk-accent-pink: #E19FB1;
  --kk-accent-pink-hover: #d488a0;
  --kk-accent-pink-light: #F5BAC1;
  --kk-accent-olive: #7C852D;
  --kk-text-dark: #141213;
  --kk-text-black: #000000;
  --kk-text-gray: #8B8A86;
  --kk-border-gray: #C8C8C8;
  --kk-white: #FFFFFF;
  --kk-error: #b54a4a;
  --kk-success: #7C852D;

  --kk-font-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --kk-font-sans: "Roboto", Arial, sans-serif;

  --kk-radius-pill: 30px;
  --kk-radius-soft: 4px;
  --kk-space-block-padding: 48px;
}

html, body {
  min-height: 100%;
  background: var(--kk-white);
  font-family: var(--kk-font-sans);
  color: var(--kk-text-black);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 20px 72px;
}

/* ── Logo ─────────────────────────────────────────────── */
.logo {
  width: 180px;
  height: 64px;
  margin: 0 auto 40px;
  background-image: url(../images/logo.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* ── Form wrapper ─────────────────────────────────────── */
#msform {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

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

/* ── Fieldsets (карточка формы) ───────────────────────── */
#msform fieldset {
  background: var(--kk-bg-cream);
  border: none;
  border-radius: var(--kk-radius-soft);
  padding: var(--kk-space-block-padding) 44px;
  position: absolute;
  width: 100%;
}

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

@media (max-width: 480px) {
  #msform fieldset { padding: 36px 24px; }
}

/* Заголовок шага */
.step-label {
  font-family: var(--kk-font-serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--kk-text-dark);
  margin-bottom: 12px;
  text-align: center;
  letter-spacing: 0.01em;
}

/* ── 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(--kk-border-gray);
  border-radius: 0;
  font-family: var(--kk-font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--kk-text-black);
  background: transparent;
  margin-bottom: 28px;
  outline: none;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
}

#msform input::placeholder {
  color: var(--kk-text-gray);
  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(--kk-accent-pink);
}

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

#phone { letter-spacing: 0.02em; }

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

/* ── Hint text ────────────────────────────────────────── */
.field-hint {
  font-family: var(--kk-font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--kk-text-gray);
  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(--kk-font-serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--kk-text-dark);
  text-decoration: none;
}

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

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

/* ── Buttons (pill) ───────────────────────────────────── */
.action-button {
  width: 100%;
  background: var(--kk-accent-pink);
  color: var(--kk-white);
  border: none;
  border-radius: var(--kk-radius-pill);
  padding: 16px 36px;
  font-family: var(--kk-font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 24px;
  transition: background 0.25s ease, opacity 0.2s ease;
  -webkit-appearance: none;
}

.action-button:hover { background: var(--kk-accent-pink-hover); }
.action-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: var(--kk-accent-pink);
}

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

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

/* ── Gender ───────────────────────────────────────────── */
.gender-label {
  font-family: var(--kk-font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--kk-text-gray);
  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(--kk-text-gray);
  cursor: pointer;
  font-weight: 400;
}

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

.genderOptions.input-error label { color: var(--kk-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(--kk-text-gray);
  cursor: pointer;
  text-align: left;
  line-height: 1.5;
}

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

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

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

.consent-title {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--kk-text-gray);
  margin-bottom: 2px;
}

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

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

.error-msg {
  color: var(--kk-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(--kk-border-gray);
  border-top-color: var(--kk-accent-pink);
  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(--kk-accent-pink);
  line-height: 1;
}

.success-title {
  font-family: var(--kk-font-serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--kk-text-dark);
  margin-bottom: 12px;
}

.success-text {
  font-size: 14px;
  color: var(--kk-text-gray);
  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(/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(--kk-border-gray);
  padding: 8px;
  background: var(--kk-white);
}

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

.info-title {
  font-family: var(--kk-font-serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--kk-text-dark);
  margin-bottom: 16px;
}

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

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

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

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

#msform fieldset .logo {
  margin-bottom: 28px;
}
