:root {
  --primary-color: #ec531c;
  --background-color: #f5f5f5;
  --input-bg-color: #3a1d209c;
  --input-border-color: #3a1d3361;
  --input-focus-bg-color: #3a1d20d4;
  --input-focus-border-color: #3a1d33a6;
  --text-color: #333;
  --text-color-light: #fff;
  --step-inactive-color: #ddd;
  --step-active-color: #023d89;

  /* Error colors */
  --error-color: #ff4444;
  --error-bg-color: #fff2f2;
  --error-bg-color-alpha: rgba(255, 68, 68, 0.1);
  --error-border-color: #ff4444;
}

.prw-wizard * ::placeholder {
  opacity: 0.6;
  color: var(--text-color-light);
}

.prw-wizard {
  margin: 0 auto;
  color: var(--text-color);
}

.prw-stepper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
  position: relative;
}

.prw-stepper::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 30px;
  right: 30px;
  height: 1px;
  background-color: var(--step-inactive-color);
  z-index: 1;
}

.prw-step-indicator {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--step-inactive-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--text-color);
  position: relative;
  z-index: 2;
  font-size: 12px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.prw-step-indicator.active {
  background-color: var(--step-active-color);
  color: var(--text-color-light);
  box-shadow: 0 0 0 7.5px rgb(2 61 137 / 10%);
  transform: scale(1.1);
}

.prw-step-indicator.completed {
  background-color: var(--step-active-color);
  color: var(--text-color-light);
}

.prw-step {
  display: none;

  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.prw-step.active {
  display: block;

  opacity: 1;
  transform: translateX(0);
}

.prw-step-content {
  margin-bottom: 50px;
  text-align: center;
}

.prw-step-content h3 {
  margin-bottom: 15px;
}

.prw-step-content p {
  margin-bottom: 0px;
  font-size: 18px;
}

.prw-step-content p.prw-lead-text {
  font-size: 16px;
}

/* Don't make the lead form centerize */
[data-step="1"] .prw-step-form {
  justify-content: flex-start;
}

.prw-step-form {
  display: flex;
  gap: 12px;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  min-height: 260px; /* prevent flickers when changes step */
  position: relative;
}

.prw-navigation {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.prw-btn {
  padding: 24px 30px 20px 30px;
  min-height: 40px;
  background-color: var(--primary-color);
  color: var(--text-color-light) !important;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.3s;
}

.prw-btn:hover {
  opacity: 0.9;
}

.prw-wizard label {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.prw-wizard input[type="text"],
.prw-wizard input[type="email"],
.prw-wizard input[type="tel"] {
  width: 100%;
  background-color: var(--input-bg-color);
  border: 1px solid var(--input-border-color);
  border-radius: 11px;
  color: var(--text-color-light);
  padding: 10px 20px;
  min-height: 60px;
  transition: all 0.3s;

  margin-bottom: 15px;
}

.prw-wizard input[type="text"]:focus,
.prw-wizard input[type="email"]:focus,
.prw-wizard input[type="tel"]:focus,
.prw-wizard input[type="text"]:hover,
.prw-wizard input[type="email"]:hover,
.prw-wizard input[type="tel"]:hover {
  background-color: var(--input-focus-bg-color);
  border-color: var(--input-focus-border-color);
}

.prw-wizard input[type="radio"] {
  display: none;
}

.prw-wizard input[type="radio"] + label {
  width: 100%;
  background-color: #f7fbff;
  border: 2px solid #a9bfdb;
  border-radius: 8px;
  padding: 11px 22px;
  min-height: 57px;
  transition: all 150ms ease-out;
  line-height: inherit;
  vertical-align: middle;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.prw-wizard input[type="radio"] + label::before {
  content: "";
  background: #9eb4cb;
  height: 12px;
  width: 12px;
  border-radius: 100px;
  margin-right: 16px;
  box-shadow: 0 0 0 4.5px rgb(0 111 255 / 11%);
}

.prw-wizard input[type="radio"] + label:hover::before,
.prw-wizard input[type="radio"] + label:focus::before,
.prw-wizard input[type="radio"]:checked + label::before {
  background: #478cd3;
  box-shadow: 0 0 0 4.5px rgb(21 86 166);
}

.prw-wizard input[type="radio"] + label:hover,
.prw-wizard input[type="radio"] + label:focus {
  background-color: var(--step-active-color);
  color: var(--text-color-light);
}

.prw-wizard input[type="radio"]:checked + label {
  background-color: var(--step-active-color);
  color: var(--text-color-light);
  box-shadow: 0 0 0 5.5px rgb(2 61 137 / 13%);
  border-color: transparent;
}

.prw-wizard .required-indicator {
  color: var(--error-color);
}

/* Thank you page */
.prw-thank-you {
  min-height: 450px;
  display: flex;
  gap: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Email notification styling */
.prw-email-notification {
  background-color: #fff8e6;
  border-left: 4px solid #ffb900;
  padding: 12px 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.prw-email-error {
  color: #6d6d6d;
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

.step-error-message {
  display: none;
  color: var(--error-color);
  font-size: 14px;
  text-align: center;
  margin-bottom: 15px;
  padding: 8px 21px;
  background-color: var(--error-bg-color);
  border-radius: 8px;
  min-width: 11%;
  animation: slideDown 0.3s ease-out;
  position: absolute;
  top: 0;
}

.error-message {
  display: none;
  color: var(--error-color);
  font-size: 14px;
  font-weight: normal;
  margin-left: auto;
  animation: slideDown 0.3s ease-out;
}

.form-error-message {
  display: none;
  background-color: var(--error-bg-color);
  border-left: 4px solid var(--error-border-color);
  color: var(--error-color);
  padding: 12px 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  font-size: 14px;
  animation: slideDown 0.3s ease-out;
}

.prw-wizard input[type="text"].error,
.prw-wizard input[type="email"].error,
.prw-wizard input[type="tel"].error {
  border-color: var(--error-border-color);
  background-color: var(--error-bg-color-alpha);
  color: var(--error-color);
}

.prw-wizard input.error::placeholder {
  color: var(--error-color);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Add focus styles for accessibility */
.prw-wizard input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(236, 83, 28, 0.2);
}

/* UTM parameter fields - hidden from view but accessible to tracking scripts */
.prw-utm-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  visibility: hidden !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: -1 !important;
}
