.wcf7-stepper {
  --westcl-step-main: #163d5c;
  --westcl-step-accent: #0b7fab;
  --westcl-step-bg: #f5f9fc;
  --westcl-step-border: #d8e5ec;
  --westcl-step-danger: #b3261e;
  --westcl-step-text: #1f2933;
  background: #fff;
  border: 1px solid var(--westcl-step-border);
  border-radius: 18px;
  padding: clamp(18px, 3vw, 32px);
  box-shadow: 0 12px 28px rgba(16, 48, 73, .08);
  color: var(--westcl-step-text);
  margin: 28px 0;
}

.wcf7-stepper * {
  box-sizing: border-box;
}

.westcl-step-progress {
  margin: 0 0 28px;
  position: relative;
}

.westcl-step-progress__bar {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 20px;
  height: 4px;
  background: #e4edf2;
  border-radius: 999px;
  overflow: hidden;
}

.westcl-step-progress__fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--westcl-step-main), var(--westcl-step-accent));
  transition: width .25s ease;
}

.westcl-step-progress__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1;
}

.westcl-step-progress__item {
  text-align: center;
  font-size: 13px;
  color: #6b7d89;
}

.westcl-step-progress__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #cddce5;
  font-weight: 700;
  margin-bottom: 7px;
  transition: all .2s ease;
}

.westcl-step-progress__label {
  display: block;
  line-height: 1.35;
}

.westcl-step-progress__item.is-current .westcl-step-progress__num,
.westcl-step-progress__item.is-complete .westcl-step-progress__num {
  color: #fff;
  border-color: var(--westcl-step-main);
  background: var(--westcl-step-main);
}

.westcl-step-progress__item.is-current .westcl-step-progress__label,
.westcl-step-progress__item.is-complete .westcl-step-progress__label {
  color: var(--westcl-step-main);
  font-weight: 700;
}

.wcf7-step {
  display: none;
  background: var(--westcl-step-bg);
  border: 1px solid var(--westcl-step-border);
  border-radius: 16px;
  padding: clamp(18px, 3vw, 30px);
  animation: westclStepFade .18s ease;
}

.wcf7-step.is-active {
  display: block;
}

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

.wcf7-step h3,
.wcf7-step h4 {
  color: var(--westcl-step-main);
  margin-top: 0;
}

.westcl-form-lead {
  margin: 0 0 18px;
  color: #49606e;
  line-height: 1.75;
}

.westcl-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}

.westcl-field-grid .westcl-field-wide {
  grid-column: 1 / -1;
}

.wcf7-stepper .westcl-field {
  display: block;
}

.wcf7-stepper .westcl-field-label,
.wcf7-stepper label {
  display: block;
  font-weight: 700;
  color: #1d3443;
}

.wcf7-stepper input[type="text"],
.wcf7-stepper input[type="email"],
.wcf7-stepper input[type="tel"],
.wcf7-stepper input[type="date"],
.wcf7-stepper input[type="number"],
.wcf7-stepper select,
.wcf7-stepper textarea {
  width: 100%;
  border: 1px solid #c8d8e1;
  border-radius: 10px;
  padding: 12px 13px;
  background: #fff;
  font-size: 16px;
  margin-top: 6px;
}

.wcf7-stepper textarea {
  min-height: 110px;
}

.wcf7-stepper .wpcf7-list-item {
  margin: 0 12px 8px 0;
}

.wcf7-stepper .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  background: #fff;
  border: 1px solid #d2e0e8;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

.wcf7-stepper .wpcf7-checkbox,
.wcf7-stepper .wpcf7-radio {
  display: block;
  margin-top: 8px;
}

.wcf7-if {
  display: none;
  border-left: 4px solid var(--westcl-step-accent);
  background: rgba(255,255,255,.65);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
}

.wcf7-if.is-visible {
  display: block;
}

.westcl-step-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid #d9e6ee;
}

.westcl-step-btn,
.wcf7-stepper .westcl-step-submit,
.wcf7-stepper input[type="submit"].westcl-step-submit {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 13px 24px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.westcl-step-btn:hover,
.wcf7-stepper .westcl-step-submit:hover {
  transform: translateY(-1px);
}

.westcl-step-btn--primary,
.wcf7-stepper .westcl-step-submit,
.wcf7-stepper input[type="submit"].westcl-step-submit {
  background: var(--westcl-step-main);
  color: #fff;
  box-shadow: 0 8px 18px rgba(22, 61, 92, .22);
}

.westcl-step-btn--secondary {
  background: #fff;
  color: var(--westcl-step-main);
  border: 1px solid #b9cfdb;
}

.westcl-step-error,
.wcf7-stepper .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  color: var(--westcl-step-danger);
  font-size: 13px;
  font-weight: 700;
}

.westcl-field-invalid {
  border-color: var(--westcl-step-danger) !important;
  box-shadow: 0 0 0 3px rgba(179, 38, 30, .1);
}

.westcl-alert-box {
  background: #fff;
  border: 1px solid #f0d6a1;
  border-left: 5px solid #d79200;
  border-radius: 12px;
  padding: 14px 16px;
  line-height: 1.75;
  margin: 18px 0;
}

.westcl-privacy-box {
  background: #fff;
  border: 1px solid #d6e4ec;
  border-radius: 12px;
  padding: 16px;
  line-height: 1.75;
}

@media (max-width: 720px) {
  .wcf7-stepper {
    border-radius: 14px;
    padding: 16px;
  }

  .westcl-step-progress__bar {
    display: none;
  }

  .westcl-step-progress__list {
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
  }

  .westcl-step-progress__num {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .westcl-step-progress__label {
    font-size: 11px;
  }

  .westcl-field-grid {
    grid-template-columns: 1fr;
  }

  .westcl-step-nav {
    flex-direction: column-reverse;
  }

  .westcl-step-btn,
  .wcf7-stepper .westcl-step-submit,
  .wcf7-stepper input[type="submit"].westcl-step-submit {
    width: 100%;
  }
}
