.signup-wizard {
  min-height: 100vh;
  background: #ebeef4;
  padding: 2rem 1rem 3rem;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .signup-wizard {
    padding: 3rem 1.5rem 4rem;
  }
}

.signup-wizard__container {
  max-width: 34rem;
  margin: 0 auto;
}

.signup-wizard__card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(33, 40, 55, 0.07);
  border: 1px solid #dae0ec;
  overflow: visible;
}

.signup-wizard__logo-wrap {
  padding: 28px 0 0;
  background: #ebeef4;
  box-shadow: 0 0 20px 20px #ebeef4;
  margin-bottom: 20px;
  text-align: center;
}

.signup-wizard__logo {
  display: inline-block;
  line-height: 1;
}

.signup-wizard__logo-img {
  height: 2.125rem;
  width: auto;
}

.signup-wizard__card-inner {
  padding: 28px 24px 32px;
}

@media (min-width: 768px) {
  .signup-wizard__card-inner {
    padding: 36px 40px 40px;
  }
}

.wizard-progress {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #ebeef4;
}

.wizard-progress-steps {
  display: flex;
  align-items: center;
  gap: 0;
}

.wizard-step {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 10px;
}

.wizard-step:last-child {
  flex: 0 0 auto;
}

.wizard-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  border: 2px solid #c9d2e3;
  color: #869ac0;
  background: #fff;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.wizard-step-dot.done {
  background: #6f42c1;
  border-color: #6f42c1;
  color: #fff;
  box-shadow: 0 2px 8px rgba(111, 66, 193, 0.3);
}

.wizard-step-dot.active {
  background: #fff;
  border-color: #6f42c1;
  color: #6f42c1;
  box-shadow: 0 0 0 4px rgba(111, 66, 193, 0.12);
}

.wizard-step-label {
  font-size: 12.5px;
  font-weight: 500;
  color: #869ac0;
  white-space: nowrap;
}

.wizard-step-label.active {
  color: #6f42c1;
  font-weight: 600;
}

.wizard-step-label.done {
  color: #657eae;
}

@media (max-width: 575.98px) {
  .wizard-step-label { display: none; }
}

.wizard-step-line {
  flex: 1;
  height: 2px;
  background: #c9d2e3;
  margin: 0 4px;
  border-radius: 2px;
  min-width: 16px;
  transition: background 0.3s ease;
}

.wizard-step-line.done {
  background: #6f42c1;
}

.wizard-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.wizard-progress-meta-count {
  font-size: 0.75rem;
  color: #869ac0;
  font-weight: 500;
}

.wizard-progress-meta-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: #6f42c1;
  letter-spacing: 0.03em;
}

.wizard-step-context {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #6f42c1;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wizard-step-context::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 2px;
  background: #6f42c1;
  border-radius: 2px;
  flex-shrink: 0;
}

.signup-wizard__title {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 6px;
  color: #212837;
}

.signup-wizard__lead {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #657eae;
  margin: 0 0 1.5rem;
}

.signup-form .form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #3c4e71;
  margin-bottom: 0.375rem;
}

.signup-form .form-control.signup-input,
.signup-input {
  min-height: 2.875rem;
  border-radius: 0.5rem;
  border: 1px solid #c9d2e3;
  font-size: 0.9375rem;
  color: #212837;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.signup-form .form-control.signup-input:focus,
.signup-input:focus {
  border-color: #6f42c1;
  box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.12);
  outline: 0;
}

.wizard-field-hint {
  font-size: 0.75rem;
  color: #a8b6d1;
  margin-top: 4px;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  line-height: 1.4;
}

.wizard-field-hint.is-success {
  color: #028824;
}

.wizard-field-hint.is-error {
  color: #e6180d;
}

.signup-hint {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.75rem 0.875rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #4d6593;
  background: #f0ebff;
  border-radius: 0.625rem;
  border: 1px solid rgba(111, 66, 193, 0.15);
}

.signup-hint i {
  margin-top: 0.125rem;
  color: #6f42c1;
  flex-shrink: 0;
}

.signup-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #ebeef4;
}

.signup-actions__back {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: #657eae;
  text-decoration: none;
  transition: color 0.15s ease;
}

.signup-actions__back:hover {
  color: #6f42c1;
}

.signup-actions__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.875rem;
  min-width: 10rem;
  padding: 0 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  background: #6f42c1;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(111, 66, 193, 0.25);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.signup-actions__btn:hover {
  background: #5c35a8;
  color: #fff;
}

.signup-actions__btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.35);
}

.signup-actions__btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  box-shadow: none;
}

.signup-wizard .country-flag-img {
  width: 20px;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.signup-country-picker {
  position: relative;
}

.signup-country-picker__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 2.875rem;
  padding: 0.5rem 0.75rem;
  text-align: left;
  background: #fff;
  border: 1px solid #c9d2e3;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.9375rem;
  color: #212837;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.signup-country-picker__toggle:hover {
  border-color: #869ac0;
}

.signup-country-picker__toggle:focus {
  outline: 0;
  border-color: #6f42c1;
  box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.12);
}

.signup-country-picker.is-open .signup-country-picker__toggle {
  border-color: #6f42c1;
  box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.12);
}

.signup-country-picker__selected {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
  flex: 1;
}

.signup-country-picker__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #212837;
  font-size: 0.9375rem;
}

.signup-country-picker__chevron {
  color: #869ac0;
  font-size: 0.75rem;
  margin-left: 0.5rem;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.signup-country-picker.is-open .signup-country-picker__chevron {
  transform: rotate(180deg);
}

.signup-country-picker__menu {
  position: absolute;
  z-index: 1050;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #c9d2e3;
  border-radius: 0.625rem;
  box-shadow: 0 0.5rem 1.25rem rgba(33, 40, 55, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.signup-country-picker__menu[hidden] {
  display: none !important;
}

.signup-country-picker__search {
  border: 0;
  border-bottom: 1px solid #ebeef4;
  border-radius: 0;
  min-height: 2.75rem;
  flex-shrink: 0;
  font-size: 0.9375rem;
}

.signup-country-picker__search:focus {
  box-shadow: none;
  border-color: #ebeef4;
}

.signup-country-picker__list {
  max-height: 16rem;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.25rem 0;
}

.signup-country-picker__option {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.signup-country-picker__option:hover,
.signup-country-picker__option:focus {
  background: #f3f0fc;
  outline: 0;
}

.signup-country-picker__option[aria-selected="true"] {
  background: #f0ebff;
}

.signup-country-picker__option-inner {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.signup-country-picker__option-name {
  font-size: 0.9375rem;
  color: #212837;
  line-height: 1.35;
}

.signup-country-picker__empty {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #657eae;
  text-align: center;
}

.wizard-review {
  margin-bottom: 1.25rem;
}

.wizard-review-card {
  background: #fff;
  border: 1px solid #dae0ec;
  border-radius: 12px;
  height: 100%;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.wizard-review-card:hover {
  box-shadow: 0 6px 20px rgba(33, 40, 55, 0.08);
  transform: translateY(-1px);
}

.wizard-review-card-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.125rem;
  background: #f7f8fb;
  border-bottom: 1px solid #ebeef4;
}

.wizard-review-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.8rem;
  color: #fff;
}

.wizard-review-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #212837;
  margin: 0;
  flex: 1;
  min-width: 0;
}

.wizard-review-card-edit {
  margin-left: auto;
  flex-shrink: 0;
  color: #a8b6d1;
  font-size: 0.8rem;
  text-decoration: none;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.wizard-review-card-edit:hover {
  background: #ebeef4;
  color: #6f42c1;
}

.wizard-review-card-body {
  padding: 1rem 1.125rem 1.125rem;
}

.wizard-review-field {
  margin-bottom: 0.75rem;
}

.wizard-review-field:last-child {
  margin-bottom: 0;
}

.wizard-review-field-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #869ac0;
  margin-bottom: 0.125rem;
}

.wizard-review-field-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: #212837;
  line-height: 1.45;
}

.wizard-review-field-value--multiline {
  white-space: pre-wrap;
  word-break: break-word;
}

.wizard-review-field-value--inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.wizard-review-field-value--inline .country-flag-img {
  flex-shrink: 0;
}

.wizard-review-field-value--email {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  min-width: 0;
}

.wizard-review-field-value--email .wizard-review-field-text {
  flex: 1;
  min-width: 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.wizard-review-field-icon {
  font-size: 0.8rem;
  color: #869ac0;
  flex-shrink: 0;
}

.wizard-review-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.wizard-review-logo {
  display: block;
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
  border-radius: 0.625rem;
  border: 1px solid #ebeef4;
  background: #fff;
  padding: 0.35rem;
  box-sizing: border-box;
}

.signup-review-note {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.875rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #657eae;
  background: #f7f8fb;
  border: 1px solid #ebeef4;
  border-radius: 0.625rem;
}

.signup-review-note i {
  margin-top: 0.125rem;
  color: #6f42c1;
  flex-shrink: 0;
}

.logo-upload__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.logo-upload {
  position: relative;
}

.logo-upload--square .logo-upload__frame {
  display: inline-flex;
  flex-direction: column;
  width: 10.5rem;
  max-width: 100%;
}

.logo-upload--square .logo-upload__zone {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
}

.logo-upload__zone {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1.5px dashed #c9d2e3;
  border-radius: 0.625rem;
  background: #f8f9fb;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.logo-upload__zone:hover {
  border-color: #869ac0;
  background: #f3f0fc;
}

.logo-upload__zone:focus-visible {
  outline: 0;
  border-color: #6f42c1;
  box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.15);
}

.logo-upload.is-dragover .logo-upload__zone {
  border-color: #6f42c1;
  border-style: solid;
  background: #f0ebff;
}

.logo-upload.has-image .logo-upload__zone {
  border-style: solid;
  border-color: rgba(111, 66, 193, 0.25);
  background: #fff;
}

.logo-upload__preview {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
  box-sizing: border-box;
}

.logo-upload__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  text-align: center;
  padding: 0.5rem;
  pointer-events: none;
  user-select: none;
}

.logo-upload--square .logo-upload__icon {
  font-size: 1.35rem;
}

.logo-upload__icon {
  color: #a8b6d1;
  margin-bottom: 0.125rem;
}

.logo-upload--square .logo-upload__placeholder-text {
  font-size: 0.75rem;
}

.logo-upload__placeholder-text {
  font-weight: 600;
  color: #4d6593;
}

.logo-upload--square .logo-upload__placeholder-hint {
  font-size: 0.65rem;
  line-height: 1.3;
  max-width: 8.5rem;
}

.logo-upload__placeholder-hint {
  color: #a8b6d1;
}

.logo-upload__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-top: 0.375rem;
  min-height: 1.25rem;
  width: 100%;
}

.logo-upload__filename {
  font-size: 0.75rem;
  color: #869ac0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.logo-upload.has-image .logo-upload__filename {
  color: #4d6593;
}

.logo-upload__remove {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.375rem;
  height: 1.375rem;
  padding: 0;
  font-size: 0.75rem;
  line-height: 1;
  color: #869ac0;
  background: #ebeef4;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.logo-upload__remove:hover {
  background: #fce8e8;
  color: #e6180d;
}

.signup-validation-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.775rem;
  font-weight: 500;
  color: #e6180d;
  background: rgba(230, 24, 13, 0.09);
  line-height: 1.4;
}

.signup-validation-pill i {
  font-size: 0.75rem;
  flex-shrink: 0;
}

.signup-form .form-control.is-invalid,
.signup-form .signup-input.is-invalid {
  border-color: #e6180d;
  box-shadow: none;
  background-image: none;
}

.signup-form .form-control.is-invalid:focus,
.signup-form .signup-input.is-invalid:focus {
  border-color: #e6180d;
  box-shadow: 0 0 0 3px rgba(230, 24, 13, 0.12);
}

.owner-phone-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.6rem;
  align-items: stretch;
}

@media (max-width: 420px) {
  .owner-phone-row {
    grid-template-columns: 6.75rem 1fr;
    gap: 0.45rem;
  }
}

.owner-phone-prefix-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  min-height: 2.875rem;
  padding: 0.375rem 0.625rem;
  background: #fff;
  border: 1px solid #c9d2e3;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #212837;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.owner-phone-prefix-btn:hover {
  border-color: #869ac0;
}

.owner-phone-prefix-btn:focus {
  outline: 0;
  border-color: #6f42c1;
  box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.12);
}

.owner-phone-prefix-btn.is-invalid-prefix {
  border-color: #e6180d;
}

.owner-phone-flag {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid #d1d5db;
  flex-shrink: 0;
}

.owner-phone-country-menu {
  min-width: 16rem;
  max-width: min(22rem, 92vw);
}

.owner-phone-country-list {
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
}

.owner-phone-country-list .owner-phone-flag {
  width: 22px;
  height: 14px;
}
