/* ── CSS variables scoped to wrapper — never :root ─────────────────── */
.vv-um-wrap {
  --vv-blue:     #0033FC;
  --vv-yellow:   #DAF410;
  --vv-white:    #FFFFFF;
  --vv-gray-50:  #F9FAFB;
  --vv-gray-100: #F3F4F6;
  --vv-gray-200: #E5E7EB;
  --vv-gray-400: #9CA3AF;
  --vv-gray-500: #6B7280;
  --vv-gray-700: #374151;
  --vv-gray-900: #111827;
  --vv-red:      #EF4444;
  --vv-radius:   8px;

  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--vv-gray-900);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.vv-um-wrap * {
  box-sizing: border-box;
}

/* ── Layout ─────────────────────────────────────────────────────────── */

.vv-um-wrap .vv-um-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: start;
}

@media (max-width: 768px) {
  .vv-um-wrap .vv-um-layout {
    grid-template-columns: 1fr;
  }

  .vv-um-wrap .vv-um-trust-col {
    display: none;
  }
}

/* ── Login: centered card ───────────────────────────────────────────── */

.vv-um-wrap--login {
  max-width: 480px;
  margin: 0 auto;
}

/* ── UM container resets ────────────────────────────────────────────── */

.vv-um-wrap .um {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.vv-um-wrap .um-form {
  padding: 0 !important;
}

/* ── Field labels ───────────────────────────────────────────────────── */

.vv-um-wrap .um-field-label,
.vv-um-wrap .um-field-label label,
.vv-um-wrap .um-field-label span {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--vv-gray-700) !important;
  margin-bottom: 5px !important;
}

/* ── Inputs ─────────────────────────────────────────────────────────── */

.vv-um-wrap .um-field-area input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.vv-um-wrap .um-field-area select,
.vv-um-wrap .um-field-area textarea {
  padding: 11px 14px !important;
  border: 1.5px solid var(--vv-gray-200) !important;
  border-radius: var(--vv-radius) !important;
  font-size: 14px !important;
  color: var(--vv-gray-900) !important;
  background: var(--vv-white) !important;
  box-shadow: none !important;
  outline: none !important;
  width: 100% !important;
  font-family: inherit !important;
  transition: border-color 0.15s, box-shadow 0.15s !important;
  -webkit-appearance: none;
  appearance: none;
  height: auto !important;
  line-height: 1.5 !important;
}

.vv-um-wrap .um-field-area input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):focus,
.vv-um-wrap .um-field-area select:focus,
.vv-um-wrap .um-field-area textarea:focus {
  border-color: var(--vv-blue) !important;
  box-shadow: 0 0 0 3px rgba(0, 51, 252, 0.1) !important;
}

.vv-um-wrap .um-field-area textarea {
  resize: vertical !important;
  min-height: 88px !important;
}

/* ── Password field show/hide button ────────────────────────────────── */

.vv-um-wrap .um-field-type-password .um-field-area {
  position: relative;
}

.vv-um-wrap .um-field-type-password .um-field-area input {
  padding-right: 44px !important;
}

.vv-um-wrap span.um-field-type-password-hide,
.vv-um-wrap span.um-field-type-password-show {
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  cursor: pointer !important;
  color: var(--vv-gray-400) !important;
  z-index: 1 !important;
}

/* ── Submit button (UM) ─────────────────────────────────────────────── */

.vv-um-wrap .um-button,
.vv-um-wrap input[type="submit"].um-button,
.vv-um-wrap .um-button:hover,
.vv-um-wrap .um-button:focus,
.vv-um-wrap .um-button:active {
  background: var(--vv-yellow) !important;
  background-color: var(--vv-yellow) !important;
  color: #000 !important;
  border: none !important;
  border-color: var(--vv-yellow) !important;
  border-radius: var(--vv-radius) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 14px 28px !important;
  width: 100% !important;
  cursor: pointer !important;
  box-shadow: none !important;
  font-family: inherit !important;
  transition: opacity 0.15s !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.vv-um-wrap .um-button:hover {
  opacity: 0.92 !important;
}

.vv-um-wrap .um-col-id-submit {
  padding-top: 8px !important;
}

/* ── Field error states ─────────────────────────────────────────────── */

.vv-um-wrap .um-field-error input,
.vv-um-wrap .um-field-error select,
.vv-um-wrap .um-field-error textarea {
  border-color: var(--vv-red) !important;
}

.vv-um-wrap .um-field-error .um-field-label label {
  color: var(--vv-red) !important;
}

.vv-um-wrap .um-error,
.vv-um-wrap .um-field-errortext {
  font-size: 12px !important;
  color: var(--vv-red) !important;
  font-weight: 500 !important;
  margin-top: 4px !important;
  display: block !important;
}

/* Step validation errors (our custom) */
.vv-um-wrap .vv-um-step-error {
  display: block;
  font-size: 12px;
  color: var(--vv-red);
  font-weight: 500;
  margin-top: 4px;
}

/* ── UM notice/alert overrides ──────────────────────────────────────── */

.vv-um-wrap .um-notice {
  border-radius: var(--vv-radius) !important;
  border-left: 4px solid var(--vv-blue) !important;
}

/* ── Multi-step: hide/show fields via CSS classes ───────────────────── */

.vv-um-wrap .um-field.vv-um-field-wrap {
  display: none;
}

.vv-um-wrap .um-field.vv-um-field-wrap.vv-step-active {
  display: block;
}

/* ── Stepper ────────────────────────────────────────────────────────── */

.vv-um-wrap .vv-um-stepper-wrap {
  margin-bottom: 40px;
}

.vv-um-wrap .vv-um-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.vv-um-wrap .vv-um-stepper__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 80px;
  max-width: 100px;
}

.vv-um-wrap .vv-um-stepper__dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  border: 2px solid var(--vv-gray-200);
  background: var(--vv-white);
  color: var(--vv-gray-400);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}

.vv-um-wrap .vv-um-stepper__dot--active {
  border-color: var(--vv-blue);
  background: var(--vv-blue);
  color: var(--vv-white);
}

.vv-um-wrap .vv-um-stepper__dot--done {
  border-color: var(--vv-blue);
  background: var(--vv-blue);
  color: var(--vv-white);
}

.vv-um-wrap .vv-um-stepper__label {
  font-size: 11px;
  font-weight: 500;
  color: var(--vv-gray-400);
  text-align: center;
  line-height: 1.3;
}

.vv-um-wrap .vv-um-stepper__label--active {
  color: var(--vv-blue);
  font-weight: 700;
}

.vv-um-wrap .vv-um-stepper__label--done {
  color: var(--vv-blue);
}

.vv-um-wrap .vv-um-stepper__connector {
  flex: 1;
  height: 2px;
  background: var(--vv-gray-200);
  margin-top: 16px;
  min-width: 20px;
  transition: background 0.2s;
}

.vv-um-wrap .vv-um-stepper__connector--done {
  background: var(--vv-blue);
}

/* ── Nav buttons (Next / Back) ──────────────────────────────────────── */

.vv-um-wrap .vv-um-nav {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 4px;
}

.vv-um-wrap .vv-um-btn-next,
.vv-um-wrap .vv-um-btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: none;
  border-radius: var(--vv-radius);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s, transform 0.1s;
}

.vv-um-wrap .vv-um-btn-next {
  background: var(--vv-yellow);
  color: #000;
  flex: 1;
}

.vv-um-wrap .vv-um-btn-back {
  background: var(--vv-gray-100);
  color: var(--vv-gray-700);
  border: 1.5px solid var(--vv-gray-200);
  padding: 14px 20px;
}

.vv-um-wrap .vv-um-btn-next:hover,
.vv-um-wrap .vv-um-btn-back:hover {
  opacity: 0.9;
}

.vv-um-wrap .vv-um-btn-next:active,
.vv-um-wrap .vv-um-btn-back:active {
  transform: scale(0.98);
}

/* ── Trust panel ────────────────────────────────────────────────────── */

.vv-um-wrap .vv-um-trust {
  background: var(--vv-gray-50);
  border: 1px solid var(--vv-gray-200);
  border-radius: 16px;
  padding: 32px 28px;
  position: sticky;
  top: 32px;
}

.vv-um-wrap .vv-um-trust__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--vv-blue);
  background: rgba(0, 51, 252, 0.08);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.vv-um-wrap .vv-um-trust__title {
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 20px;
  line-height: 1.3;
  color: var(--vv-gray-900);
}

.vv-um-wrap .vv-um-trust__list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vv-um-wrap .vv-um-trust__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.vv-um-wrap .vv-um-trust__check {
  width: 22px;
  height: 22px;
  min-width: 22px;
  background: var(--vv-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.vv-um-wrap .vv-um-trust__check svg {
  display: block;
}

.vv-um-wrap .vv-um-trust__text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--vv-gray-700);
}

.vv-um-wrap .vv-um-trust__rating {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--vv-gray-200);
}

.vv-um-wrap .vv-um-trust__stars {
  color: #F59E0B;
  font-size: 16px;
  letter-spacing: 1px;
}

.vv-um-wrap .vv-um-trust__rating-text {
  font-size: 13px;
  color: var(--vv-gray-500);
}

.vv-um-wrap .vv-um-trust__rating-text strong {
  color: var(--vv-gray-900);
}

/* ── UM misc overrides ──────────────────────────────────────────────── */

/* Remove UM's default heading inside form */
.vv-um-wrap .um-header {
  display: none !important;
}

/* Remove odd UM spacing */
.vv-um-wrap .um-col-id-submit {
  margin-top: 8px !important;
}

/* UM sometimes adds icon inside input — keep accessible */
.vv-um-wrap .um-field-icon {
  color: var(--vv-gray-400) !important;
}

/* ── Mobile Responsive ──────────────────────────────────────────────── */

@media (max-width: 768px) {

  /* Layout: stack columns vertically */
  .vv-um-wrap .vv-um-layout {
    display: block !important;
    padding: 16px;
  }

  .vv-um-wrap .vv-um-form-col {
    width: 100% !important;
    padding: 0 !important;
  }

  .vv-um-wrap .vv-um-trust-col {
    display: none !important;
  }

  /* Stepper: compress on small screens */
  .vv-um-wrap .vv-um-stepper {
    gap: 4px;
    padding: 12px 8px;
    overflow-x: auto;
  }

  .vv-um-wrap .vv-um-stepper__item {
    min-width: 48px;
  }

  .vv-um-wrap .vv-um-stepper__label {
    font-size: 10px;
    text-align: center;
  }

  .vv-um-wrap .vv-um-stepper__dot {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .vv-um-wrap .vv-um-stepper__connector {
    flex: 1;
    min-width: 16px;
  }

  /* Form card */
  .vv-um-wrap .um {
    padding: 16px !important;
    border-radius: 12px !important;
  }

  /* Inputs full width */
  .vv-um-wrap .um-field-area input,
  .vv-um-wrap .um-field-area select,
  .vv-um-wrap .um-field-area textarea {
    font-size: 16px !important; /* prevents iOS zoom */
    padding: 12px !important;
  }

  /* Nav buttons stack vertically */
  .vv-um-wrap .vv-um-nav {
    flex-direction: column-reverse;
    gap: 10px;
    padding: 0 0 12px 0;
  }

  .vv-um-wrap .vv-um-btn-next,
  .vv-um-wrap .vv-um-btn-back {
    width: 100% !important;
    padding: 14px !important;
    font-size: 15px !important;
  }

  /* Submit button full width */
  .vv-um-wrap .um-col-alt input[type="submit"],
  .vv-um-wrap .um-col-alt button[type="submit"] {
    width: 100% !important;
    padding: 14px !important;
    font-size: 15px !important;
  }

  /* Field labels */
  .vv-um-wrap .um-field-label label {
    font-size: 13px !important;
  }

  /* Error messages */
  .vv-um-wrap .vv-um-step-error {
    font-size: 12px;
  }
}

@media (max-width: 480px) {

  .vv-um-wrap .vv-um-stepper__label {
    display: none; /* hide labels on very small screens, show dots only */
  }

  .vv-um-wrap .vv-um-stepper__dot {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .vv-um-wrap .um {
    padding: 12px !important;
  }
}
