.qwiz {
  --qwiz-border: #eef2f7;
}

.qwiz-hero {
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 182, 240, 0.16), transparent 32%),
    radial-gradient(circle at 82% 8%, rgba(0, 153, 204, 0.12), transparent 30%),
    repeating-linear-gradient(135deg, rgba(0, 182, 240, 0.04) 0, rgba(0, 182, 240, 0.04) 1px, transparent 1px, transparent 14px),
    linear-gradient(135deg, rgba(230, 247, 253, 0.95), rgba(255, 255, 255, 0.92)),
    #fff;
}

.qwiz-hero__main,
.qwiz-hero__visual {
  background: transparent;
}

.qwiz-metric {
  border: 1px solid rgba(0, 182, 240, 0.12);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.82);
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.qwiz-metric strong {
  display: block;
  color: var(--brand-color);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.qwiz-metric span {
  color: #4b5563;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.qwiz-flow-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  border: 1px solid #eef2f7;
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.92);
  padding: 1rem;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.qwiz-flow-card--accent {
  border-color: rgba(0, 182, 240, 0.22);
}

.qwiz-flow-card__icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.25rem;
  color: var(--brand-color);
  background: var(--brand-color-light);
}

.qwiz-flow-card__icon--buyer {
  color: #0ea5e9;
  background: #e0f2fe;
}

.qwiz-flow-card__icon--partner {
  color: var(--brand-color);
  background: var(--brand-color-light);
}

.qwiz-flow-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.qwiz-flow-row .qwiz-flow-card {
  padding: 0.85rem;
  gap: 0.75rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.qwiz-flow-row .qwiz-flow-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 1rem;
}

.qwiz-flow-row .qwiz-flow-card .font-extrabold {
  font-size: 0.92rem;
}

.qwiz-flow-row .qwiz-flow-card .text-sm {
  font-size: 0.78rem;
  line-height: 1.35;
}

.qwiz-benefits {
  margin-top: 0;
  border: 1px solid #eef2f7;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.88);
  padding: 1rem 1.1rem;
}

.qwiz-benefits__title {
  margin: 0 0 0.75rem;
  color: #374151;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.qwiz-benefits__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 1280px) {
  .qwiz-benefits__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
    row-gap: 0.55rem;
  }

  .qwiz-benefits__list li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

.qwiz-benefits__list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  color: #4b5563;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
}

.qwiz-benefits__mark {
  width: 18px;
  height: 18px;
  margin-top: 0.1rem;
  border-radius: 999px;
  background: var(--brand-color-light);
  position: relative;
  flex-shrink: 0;
}

.qwiz-benefits__mark::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 4px;
  width: 5px;
  height: 8px;
  border-right: 2px solid var(--brand-color);
  border-bottom: 2px solid var(--brand-color);
  transform: rotate(45deg);
}

.qwiz-progress__item {
  position: relative;
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: #e5e7eb;
}

.qwiz-progress__item span {
  position: absolute;
  top: -13px;
  left: 50%;
  width: 30px;
  height: 30px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 800;
}

.qwiz-progress__item.is-active,
.qwiz-progress__item.is-done {
  background: var(--brand-color);
}

.qwiz-progress__item.is-active span,
.qwiz-progress__item.is-done span {
  background: var(--brand-color);
  border-color: var(--brand-color);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 182, 240, 0.22);
}

.qwiz-card__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--qwiz-border);
}

.qwiz-card__row:last-child {
  border-bottom: 0;
}

.qwiz-card__row span {
  color: #9ca3af;
  font-weight: 700;
}

.qwiz-card__row strong {
  max-width: 58%;
  color: #1f2937;
  font-weight: 800;
  text-align: right;
  word-break: break-word;
}

.qwiz-step {
  display: none;
}

.qwiz-step.is-active {
  display: block;
  animation: qwizFadeIn 0.25s ease-out;
}

@keyframes qwizFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.qwiz-choice {
  cursor: pointer;
}

.qwiz-choice > span {
  display: block;
  height: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.15rem;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.qwiz-choice i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 0.85rem;
  margin-bottom: 0.8rem;
  background: #f3f4f6;
  color: #6b7280;
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 900;
}

.qwiz-choice strong {
  display: block;
  color: #1f2937;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.qwiz-choice small {
  display: block;
  color: #6b7280;
  line-height: 1.45;
}

.qwiz-choice input:checked + span {
  border-color: var(--brand-color);
  background: var(--brand-color-light);
  box-shadow: 0 8px 22px rgba(0, 182, 240, 0.12);
}

.qwiz-choice input:checked + span i {
  background: var(--brand-color);
  color: #fff;
}

.qwiz-field {
  display: block;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 800;
}

.qwiz-field--compact {
  font-size: 0.8rem;
}

.qwiz-field input,
.qwiz-field select {
  width: 100%;
  min-height: 48px;
  margin-top: 0.45rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: #374151;
  font-size: 0.95rem;
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.qwiz-field input:focus,
.qwiz-field select:focus {
  border-color: var(--brand-color);
  box-shadow: 0 0 0 4px rgba(0, 182, 240, 0.12);
}

.qwiz-field select:disabled,
.qwiz-field input:disabled {
  background: #f9fafb;
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.7;
}

.qwiz-field-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
}

.qwiz-city-wrap {
  position: relative;
}

.qwiz-city-suggest {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  margin-top: 0.35rem;
  padding: 0.35rem;
  list-style: none;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  max-height: 220px;
  overflow-y: auto;
}

.qwiz-city-suggest.hidden {
  display: none;
}

.qwiz-city-suggest li {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  color: #374151;
  cursor: pointer;
}

.qwiz-city-suggest li:hover {
  background: var(--brand-color-light);
  color: var(--brand-color);
}

.qwiz-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.45;
  cursor: pointer;
}

.qwiz-checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 0.1rem;
  accent-color: var(--brand-color);
  flex: 0 0 auto;
}

.qwiz-checkbox a {
  color: var(--brand-color);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.qwiz-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--qwiz-border);
}

.qwiz .qwiz-btn,
.qwiz button.qwiz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 48px;
  min-width: 128px;
  border-radius: 0.9rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.qwiz-btn {
  min-height: 48px;
  border-radius: 0.9rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.qwiz-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.qwiz .qwiz-btn--primary,
.qwiz button.qwiz-btn--primary {
  border: none;
  background: var(--brand-color);
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 182, 240, 0.2);
}

.qwiz .qwiz-btn--primary:hover,
.qwiz button.qwiz-btn--primary:hover {
  background: var(--brand-color-dark);
  border-color: transparent;
  color: #fff;
}

.qwiz-btn--primary {
  background: var(--brand-color);
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 182, 240, 0.2);
}

.qwiz-btn--primary:hover {
  background: var(--brand-color-dark);
}

.qwiz .qwiz-btn--ghost,
.qwiz button.qwiz-btn--ghost {
  background: #fff;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.qwiz .qwiz-btn--ghost:hover,
.qwiz button.qwiz-btn--ghost:hover {
  border-color: var(--brand-color);
  color: var(--brand-color);
  background: #fff;
}

@property --qwiz-border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.qwiz-form-shell {
  position: relative;
  border-radius: 1.5rem;
  padding: 2px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 182, 240, 0.12);
  --qwiz-border-angle: 0deg;
  background: conic-gradient(
    from var(--qwiz-border-angle),
    rgba(0, 182, 240, 0.95) 0deg,
    rgba(0, 182, 240, 0.45) 55deg,
    rgba(0, 182, 240, 0.08) 120deg,
    rgba(125, 211, 252, 0.2) 180deg,
    rgba(0, 182, 240, 0.08) 240deg,
    rgba(0, 182, 240, 0.45) 300deg,
    rgba(0, 182, 240, 0.95) 360deg
  );
  animation: qwiz-form-border-angle 5s linear infinite;
}

@keyframes qwiz-form-border-angle {
  to {
    --qwiz-border-angle: 360deg;
  }
}

.qwiz-form-shell .qwiz-form {
  position: relative;
  z-index: 1;
  border: none;
  background: #fff;
  border-radius: calc(1.5rem - 2px);
}

.qwiz-callback {
  position: relative;
  width: 100%;
  margin-top: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(0, 182, 240, 0.12);
  border-radius: 1.5rem;
}

.qwiz-callback__backdrop {
  position: absolute;
  inset: 0;
  background-color: var(--brand-color-light);
  background-image: var(--qwiz-callback-bg);
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.qwiz-callback__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.86) 45%, rgba(255, 255, 255, 0.68) 100%);
}

.qwiz-callback__content {
  position: relative;
  z-index: 1;
  padding: 1.15rem 1.35rem;
}

.qwiz-callback__head {
  margin-bottom: 0.85rem;
}

.qwiz-callback__title {
  margin: 0 0 0.25rem;
  color: #1f2937;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}

.qwiz-callback__text {
  margin: 0;
  color: #6b7280;
  font-size: 0.88rem;
  line-height: 1.4;
}

.qwiz-callback__form {
  display: block;
}

.qwiz-callback__fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-items: end;
}

.qwiz-callback__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.qwiz-callback__control {
  display: block;
  min-width: 0;
}

.qwiz-callback__label {
  display: block;
  margin: 0;
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.qwiz .qwiz-callback__input,
.qwiz input.qwiz-callback__input {
  width: 100%;
  min-height: 48px;
  margin: 0;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: #374151;
  font-size: 0.95rem;
  background: #fff;
  outline: none;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.qwiz .qwiz-callback__input:focus,
.qwiz input.qwiz-callback__input:focus {
  border-color: var(--brand-color);
  box-shadow: 0 0 0 4px rgba(0, 182, 240, 0.12);
}

.qwiz .qwiz-btn--callback,
.qwiz button.qwiz-btn--callback {
  justify-self: stretch;
  width: 100%;
  min-width: 168px;
  border: 1px solid #dbeafe;
  background: #fff;
  color: var(--brand-color-dark);
  box-shadow: none;
}

.qwiz .qwiz-btn--callback:hover,
.qwiz button.qwiz-btn--callback:hover {
  border-color: var(--brand-color);
  background: var(--brand-color-light);
  color: var(--brand-color-dark);
}

.qwiz-callback__message {
  font-size: 0.88rem;
  line-height: 1.4;
}

.qwiz-callback__message.text-green-700 {
  color: #15803d;
}

.qwiz-callback__message.text-red-600 {
  color: #dc2626;
}

.qwiz-alert {
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.qwiz-alert--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.qwiz-field .iti {
  width: 100%;
  margin-top: 0.45rem;
}

.qwiz-field .iti input {
  margin-top: 0;
  width: 100%;
}

.qwiz-callback .qwiz-callback__control .iti {
  display: block;
  width: 100%;
}

.qwiz-callback .iti {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.qwiz-callback .iti:focus-within {
  border-color: var(--brand-color);
  box-shadow: 0 0 0 4px rgba(0, 182, 240, 0.12);
}

.qwiz-callback .iti .qwiz-callback__input {
  margin: 0;
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.qwiz-callback .iti .qwiz-callback__input:focus {
  border: none;
  box-shadow: none;
}

.qwiz-callback .iti__selected-country,
.qwiz-field .iti__selected-country {
  border-radius: 0.75rem 0 0 0.75rem;
}

@media (min-width: 1024px) {
  .qwiz-callback__content {
    display: flex;
    align-items: flex-end;
    gap: 1.25rem;
  }

  .qwiz-callback__head {
    flex: 0 0 300px;
    margin-bottom: 0;
    padding-bottom: 0.15rem;
  }

  .qwiz-callback__form {
    flex: 1;
    min-width: 0;
  }

  .qwiz-callback__fields {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 0.75rem;
  }

  .qwiz .qwiz-btn--callback,
  .qwiz button.qwiz-btn--callback {
    justify-self: auto;
    width: auto;
    align-self: end;
    flex-shrink: 0;
  }
}

@media (max-width: 1023px) {
  .qwiz-card {
    position: static;
  }

  .qwiz-flow-row {
    grid-template-columns: 1fr;
  }

  .qwiz-callback__fields {
    grid-template-columns: 1fr;
  }

  .qwiz-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .qwiz .qwiz-btn,
  .qwiz button.qwiz-btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .qwiz-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .qwiz .qwiz-btn,
  .qwiz button.qwiz-btn {
    width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qwiz-form-shell {
    animation: none;
    background: linear-gradient(135deg, rgba(0, 182, 240, 0.75), rgba(0, 182, 240, 0.15));
  }
}

@media (max-width: 767px) {
  .qwiz-flow-row {
    margin-bottom: 0;
  }

  .qwiz .qwiz-callback {
    position: relative;
  }

  .qwiz .qwiz-layout__form {
    order: 1;
  }

  .qwiz .qwiz-layout__card {
    order: 2;
    margin-top: 0.75rem;
  }

  .qwiz .qwiz-card {
    padding: 0.75rem;
  }

  .qwiz .qwiz-card__head {
    margin-bottom: 0.4rem;
  }

  .qwiz .qwiz-card__label {
    font-size: 0.65rem;
  }

  .qwiz .qwiz-card__avatar {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.65rem;
    font-size: 0.75rem;
  }

  .qwiz .qwiz-card__name {
    font-size: 0.9rem;
  }

  .qwiz .qwiz-card__row {
    display: flex;
    padding: 0.25rem 0;
    gap: 0.5rem;
  }

  .qwiz .qwiz-card__row span,
  .qwiz .qwiz-card__row strong {
    font-size: 0.75rem;
  }

  .qwiz .qwiz-card__body > * + * {
    margin-top: 0;
  }

  .qwiz .qwiz-card__body .qwiz-card__row + .qwiz-card__row {
    margin-top: 0;
  }
}
