.pbc-equiz {
  --_navy: var(--color-primary, #002554);
  --_navy-hover: var(--color-primary-hover, #00377d);
  --_text: var(--color-text, #222);
  --_muted: var(--color-text-muted, #666);
  --_border: var(--color-gray-border, #d9d9d9);
  --_bg: var(--color-gray-light, #eef2f6);
  max-width: 860px;
  margin: 0 auto;
  padding: 32px;
  font-family: var(--font-primary, "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif);
  color: var(--_text);
  background: #fff;
  border: 1px solid var(--_border);
  border-radius: var(--radius-lg, 12px);
}

.pbc-equiz,
.pbc-equiz *,
.pbc-equiz *::before,
.pbc-equiz *::after {
  box-sizing: border-box;
}

.pbc-equiz :where(h3, p, label) {
  margin: 0;
}

.pbc-equiz__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.pbc-equiz__progress {
  margin-bottom: 32px;
}

.pbc-equiz__steps {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.pbc-equiz__step {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.pbc-equiz__step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 16px;
  left: calc(50% + 22px);
  right: calc(-50% + 22px);
  height: 1px;
  background: var(--_border);
  transition: background-color 0.3s ease;
}

.pbc-equiz__step.done::before {
  background: var(--_navy);
}

.pbc-equiz__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--_muted);
  background: var(--_bg);
  border: 1px solid var(--_border);
  border-radius: 50%;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pbc-equiz__step-title {
  font-size: 13px;
  line-height: 1.3;
  color: var(--_muted);
  transition: color 0.2s ease;
}

.pbc-equiz__step.active .pbc-equiz__step-num,
.pbc-equiz__step.done .pbc-equiz__step-num {
  color: #fff;
  background: var(--_navy);
  border-color: var(--_navy);
}

.pbc-equiz__step.active .pbc-equiz__step-num {
  box-shadow: 0 0 0 4px rgba(0, 37, 84, 0.12);
}

.pbc-equiz__step.done .pbc-equiz__step-num {
  font-size: 0;
}

.pbc-equiz__step.done .pbc-equiz__step-num::after {
  content: "";
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg);
}

.pbc-equiz__step.active .pbc-equiz__step-title {
  color: var(--_text);
  font-weight: 500;
}

.pbc-equiz__progress-bar {
  height: 4px;
  background: var(--_bg);
  border-radius: 2px;
  overflow: hidden;
}

.pbc-equiz__progress-fill {
  height: 100%;
  background: var(--_navy);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.pbc-equiz__form {
  position: relative;
  overflow: hidden;
  transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.pbc-equiz__panel {
  display: none;
}

.pbc-equiz__panel.active {
  display: block;
  animation: pbc-equiz-in 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.pbc-equiz__form.is-animating .pbc-equiz__panel.active {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

@keyframes pbc-equiz-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pbc-equiz__form {
    transition: none;
  }

  .pbc-equiz__panel.active {
    animation: none;
  }
}

.pbc-equiz .pbc-equiz__title {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--_text);
  margin-bottom: 8px;
}

.pbc-equiz .pbc-equiz__subtitle {
  font-size: 15px;
  line-height: 1.45;
  color: var(--_muted);
  margin-bottom: 20px;
}

.pbc-equiz__options {
  display: grid;
  gap: 12px;
  margin: 20px 0 28px;
}

.pbc-equiz__options--radio {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.pbc-equiz__options--checkbox {
  grid-template-columns: minmax(0, 1fr);
}

.pbc-equiz__option {
  cursor: pointer;
}

.pbc-equiz__option input {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.pbc-equiz__option-box {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.4;
  background: #fff;
  border: 1px solid var(--_border);
  border-radius: var(--radius-md, 8px);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.pbc-equiz__option:hover .pbc-equiz__option-box {
  border-color: var(--_navy);
}

.pbc-equiz__option input:checked + .pbc-equiz__option-box {
  background: var(--_bg);
  border-color: var(--_navy);
}

.pbc-equiz__option input:focus-visible + .pbc-equiz__option-box {
  outline: 2px solid var(--_navy);
  outline-offset: 2px;
}

.pbc-equiz__option-icon {
  flex: 0 0 auto;
  color: var(--_navy);
}

.pbc-equiz__option-text {
  min-width: 0;
}

.pbc-equiz__option-check {
  flex: 0 0 auto;
  position: relative;
  width: 20px;
  height: 20px;
  background: #fff;
  border: 1px solid var(--_border);
  border-radius: 4px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.pbc-equiz__option input:checked + .pbc-equiz__option-box .pbc-equiz__option-check {
  background: var(--_navy);
  border-color: var(--_navy);
}

.pbc-equiz__option input:checked + .pbc-equiz__option-box .pbc-equiz__option-check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.pbc-equiz__date-fields,
.pbc-equiz__contact-fields {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.pbc-equiz__date-fields {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pbc-equiz__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.pbc-equiz .pbc-equiz__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--_text);
}

.pbc-equiz__required {
  color: #c0392b;
}

.pbc-equiz .pbc-equiz__input {
  width: 100%;
  height: 48px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--_text);
  background: #fff;
  border: 1px solid var(--_border);
  border-radius: var(--radius-md, 8px);
  transition: border-color 0.2s ease;
}

.pbc-equiz .pbc-equiz__input:focus {
  border-color: var(--_navy);
  outline: none;
}

.pbc-equiz .pbc-equiz__input::placeholder {
  color: #999;
}

.pbc-equiz__privacy {
  margin-bottom: 20px;
}

.pbc-equiz__privacy-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.pbc-equiz__privacy-label input {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.pbc-equiz__privacy-check {
  flex: 0 0 auto;
  position: relative;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  background: #fff;
  border: 1px solid var(--_border);
  border-radius: 4px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.pbc-equiz__privacy-label input:checked + .pbc-equiz__privacy-check {
  background: var(--_navy);
  border-color: var(--_navy);
}

.pbc-equiz__privacy-label input:checked + .pbc-equiz__privacy-check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.pbc-equiz__privacy-label input:focus-visible + .pbc-equiz__privacy-check {
  outline: 2px solid var(--_navy);
  outline-offset: 2px;
}

.pbc-equiz .pbc-equiz__privacy-text {
  font-size: 14px;
  line-height: 1.45;
  color: var(--_muted);
}

.pbc-equiz .pbc-equiz__privacy-text a {
  color: var(--_navy);
  text-decoration: underline;
}

.pbc-equiz .pbc-equiz__error {
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.45;
  color: #c0392b;
  display: none;
}

.pbc-equiz .pbc-equiz__error.is-visible {
  display: block;
}

.pbc-equiz__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.pbc-equiz .pbc-equiz__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 28px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid var(--_navy);
  border-radius: var(--radius-md, 8px);
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.pbc-equiz .pbc-equiz__btn--next,
.pbc-equiz .pbc-equiz__btn--submit {
  color: #fff;
  background: var(--_navy);
  margin-left: auto;
}

.pbc-equiz .pbc-equiz__btn--next:hover:not(:disabled),
.pbc-equiz .pbc-equiz__btn--submit:hover:not(:disabled) {
  background: var(--_navy-hover);
  border-color: var(--_navy-hover);
}

.pbc-equiz .pbc-equiz__btn--prev {
  color: var(--_navy);
  background: transparent;
}

.pbc-equiz .pbc-equiz__btn--prev:hover {
  background: var(--_bg);
}

.pbc-equiz .pbc-equiz__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pbc-equiz__btn-text,
.pbc-equiz__btn-loader svg {
  display: block;
}

.pbc-equiz__success {
  text-align: center;
  padding: 24px 0;
}

.pbc-equiz__success-icon {
  color: var(--_navy);
  margin-bottom: 16px;
}

.pbc-equiz__success-icon svg {
  display: inline-block;
}

.pbc-equiz .pbc-equiz__success-title {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 12px;
}

.pbc-equiz .pbc-equiz__success-text {
  font-size: 16px;
  line-height: 1.5;
  color: var(--_muted);
  max-width: 460px;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .pbc-equiz {
    padding: 20px 16px;
  }

  .pbc-equiz__steps {
    gap: 4px;
  }

  .pbc-equiz__step-title {
    display: none;
  }

  .pbc-equiz__step-num {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .pbc-equiz__progress {
    margin-bottom: 24px;
  }

  .pbc-equiz .pbc-equiz__title {
    font-size: 19px;
  }

  .pbc-equiz__options--radio {
    grid-template-columns: minmax(0, 1fr);
  }

  .pbc-equiz__actions {
    flex-direction: column-reverse;
  }

  .pbc-equiz .pbc-equiz__btn {
    width: 100%;
    margin-left: 0;
  }
}
