.contact-form {
  --mio-otp-primary: #16215c;
  --mio-otp-primary-hover: #1f2f7a;
  --mio-otp-border: #d7dbe6;
  --mio-otp-muted: #7c8296;
  --mio-otp-bg-light: #eef1fb;
  --mio-otp-success: #22a55a;
  --mio-otp-success-bg: #dff6e8;
  margin: 0 auto;
  background: #fff;
}

.contact-form div[aria-label="Error message"] .error {
  padding: 10px 0 4px 0;
  margin-bottom: 12px;
}

.contact-form>h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--mio-otp-primary);
  margin: 0 0 24px;
}

.paragraph .contact-form ul li::before {
  content: none;
}

.contact-form .webform-progress-tracker {
  display: flex;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.contact-form .webform-progress-tracker .progress-step {
  flex: 1;
  position: relative;
  text-align: center;
}

.paragraph .contact-form ul.webform-progress-tracker li.progress-step {
  padding-left: 0;
}

.contact-form .webform-progress-tracker .progress-marker,
.contact-form .webform-progress-tracker .progress-marker::before,
.contact-form .webform-progress-tracker .progress-marker::after {
  all: unset;
  box-sizing: border-box;
}

.contact-form .webform-progress-tracker .progress-marker {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0 auto;
  border-radius: 50%;
  background: #fff !important;
  border: 2px solid var(--mio-otp-border);
  color: var(--mio-otp-muted);
  font-weight: 600;
  font-size: 0.85rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
}

.contact-form .webform-progress-tracker .progress-marker::before,
.contact-form .webform-progress-tracker .progress-marker::after {
  content: none !important;
}

.contact-form .webform-progress-tracker .progress-marker .mio-progress-number {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
}

.contact-form .webform-progress-tracker .progress-step.is-complete .progress-marker .mio-progress-number {
  display: none;
}

.contact-form .webform-progress-tracker .progress-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--mio-otp-border);
  z-index: 1;
}

.contact-form .webform-progress-tracker .progress-step.is-complete:not(:last-child)::after,
.contact-form .webform-progress-tracker .progress-step.is-active:not(:last-child)::after {
  background: var(--mio-otp-primary);
}

.contact-form .webform-progress-tracker .progress-step.is-active .progress-marker {
  background: var(--mio-otp-primary) !important;
  border-color: var(--mio-otp-primary);
  color: #fff;
}

.contact-form .webform-progress-tracker .progress-step.is-complete .progress-marker {
  background: var(--mio-otp-primary) !important;
  border-color: var(--mio-otp-primary);
  color: transparent;
}

.contact-form .webform-progress-tracker .progress-step.is-complete .progress-marker::before {
  content: '' !important;
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}

.contact-form .webform-progress-tracker .progress-text {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--mio-otp-muted);
}

.contact-form .webform-progress-tracker .progress-step.is-active .progress-text,
.contact-form .webform-progress-tracker .progress-step.is-complete .progress-text {
  color: #333;
}

.contact-form .webform-progress-tracker .progress-title {
  font-size: 1.3rem;
}

.contact-form .webform-progress-tracker .progress-step.is-active .progress-title {
  font-weight: 700;
  color: var(--mio-otp-primary);
}

/* .contact-form .form-item {
      margin: 0 50px 0px 50px;
} */
.contact-form .form-item>label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #222;
}

.contact-form input[type="email"],
.contact-form input[type="text"]:not(.mio-otp-box),
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  border: 1px solid var(--mio-otp-border);
  border-radius: 10px;
  font-size: 1.4rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.contact-form .js-form-item input:focus,
.contact-form .js-form-item textarea:focus {
  outline: none;
  border-color: var(--mio-otp-primary);
  box-shadow: 0 0 0 3px var(--mio-otp-bg-light);
}

.contact-form .form-item-your-message textarea {
  padding-top: 12px;
  box-sizing: border-box;
  padding: 12px 16px;
  border: 1px solid var(--mio-otp-border);
  border-radius: 10px;
  font-size: 1.5rem;
  transition: border-color .15s ease, box-shadow .15s ease;
  background: white;
}

.contact-form input:-webkit-autofill,
.contact-form input:-webkit-autofill:hover,
.contact-form input:-webkit-autofill:focus,
.contact-form input:autofill {
  -webkit-text-fill-color: #222;
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  box-shadow: 0 0 0 1000px #fff inset;
  transition: background-color 9999s ease-in-out 0s;
}

.contact-form .captcha {
  border: 0;
  border-radius: 0;
  padding-left: 0;
  margin-top: 10px;
}

.contact-form .webform-actions {
  display: flex;
  gap: 12px;
  /* margin-left: 52px; */
}

.contact-form .webform-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease;
  margin-top: 24px;
}

.contact-form .webform-button--next,
.contact-form .webform-button--submit {
  background: var(--mio-otp-primary);
  color: #fff;
}

.contact-form .webform-button--next:hover,
.contact-form .webform-button--submit:hover {
  background: var(--mio-otp-primary-hover);
}

.contact-form .webform-button--next::after {
  content: '\276F';
  font-size: .85em;
}

.contact-form .webform-button--submit::after {
  content: '\27A4';
  font-size: .85em;
}

.contact-form .webform-button--previous {
  color: var(--mio-otp-primary);
  border-color: var(--mio-otp-primary);
}

.contact-form .webform-button--previous:hover {
  background: var(--mio-otp-primary-hover);
}

.contact-form .webform-button--previous::before {
  content: '\2039';
  margin-right: 4px;
  font-size: 1.1em;
}

.contact-form .mio-otp-group {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
  justify-content: space-between;
}

.contact-form .mio-otp-box {
  width: 100%;
  min-width: 0;
  max-width: 56px;
  height: 56px;
  text-align: center;
  font-size: 1.5rem;
  border: 1px solid var(--mio-otp-border);
  border-radius: 10px;
  box-sizing: border-box;
  color: #000000 !important;
}

.contact-form .mio-otp-box:focus {
  outline: none;
  border-color: var(--mio-otp-primary);
  box-shadow: 0 0 0 3px var(--mio-otp-bg-light);
}

.contact-form .form-item-verification-code .description {
  color: var(--mio-otp-muted);
  font-size: .875rem;
  margin-top: 4px;
}

.contact-form .mio-otp-timer {
  margin-top: 8px;
  font-weight: 600;
  color: var(--mio-otp-primary);
  font-size: 1.3rem;
}

.contact-form .mio-otp-timer.is-expired {
  color: #d64545;
}

.contact-form .mio-resend-code {
  display: none;
  background: none;
  border: none;
  padding: 0;
  color: var(--mio-otp-primary);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: underline;
  cursor: pointer;
}

.contact-form .mio-resend-code.is-visible {
  display: inline-block;
  color: #d64545 !important;
  font-size: 1.3rem;
  margin-top: 0;
}

.contact-form .mio-resend-code:hover {
  color: var(--mio-otp-primary-hover);
}

.contact-form .mio-otp-hidden-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-form .webform-confirmation__message {
  text-align: center;
  padding-top: 24px;
}

.contact-form .mio-confirmation__badge {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 34px;
  border-radius: 50%;
  background: var(--mio-otp-success-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes mio-sparkle-twinkle {

  0%,
  100% {
    opacity: .45;
    transform: translate(-50%, -50%) scale(.92);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

.contact-form .mio-confirmation__badge::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 170px;
  height: 170px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
  animation: mio-sparkle-twinkle 1.8s ease-in-out infinite;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'%3E%3Cpath fill='%2322a55a' d='M30 37 L33 42 L38 45 L33 48 L30 53 L27 48 L22 45 L27 42 Z'/%3E%3Cpath fill='%233b82f6' d='M58 10 L62 16 L68 20 L62 24 L58 30 L54 24 L48 20 L54 16 Z'/%3E%3Cpath fill='%2360a5fa' d='M120 20 L123 25 L128 28 L123 31 L120 36 L117 31 L112 28 L117 25 Z'/%3E%3Cpath fill='%2322a55a' d='M144 65 L146 68 L149 70 L146 72 L144 75 L142 72 L139 70 L142 68 Z'/%3E%3Cpath fill='%233b82f6' d='M22 94 L25 99 L30 102 L25 105 L22 110 L19 105 L14 102 L19 99 Z'/%3E%3Cpath fill='%2322a55a' d='M64 131 L67 135 L71 138 L67 141 L64 145 L61 141 L57 138 L61 135 Z'/%3E%3C/svg%3E");
}

.contact-form .mio-confirmation__badge::after {
  content: '';
  z-index: 1;
  width: 26px;
  height: 14px;
  border-left: 4px solid var(--mio-otp-success);
  border-bottom: 4px solid var(--mio-otp-success);
  transform: rotate(-45deg) translate(2px, -4px);
}

.contact-form .mio-confirmation__title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--mio-otp-primary);
  margin: 0 0 6px;
}

.contact-form .mio-confirmation__subtitle {
  color: var(--mio-otp-muted);
  margin: 0;
}

.contact-form .webform-confirmation__back {
  text-align: center;
  margin-top: 20px;
}

.contact-form .webform-confirmation__back a {
  color: var(--mio-otp-primary);
  text-decoration: none;
  font-weight: 600;
}

.contact-form .webform-confirmation__back a::before {
  content: '\2039';
  margin-right: 4px;
}

.contact-form .webform-confirmation__back a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .contact-form .webform-progress-tracker .progress-text {
    font-size: .7rem;
  }

  .contact-form .mio-otp-box {
    height: 48px;
    font-size: 1.2rem;
    padding: 0 !important; 
  }
}

@media (max-width: 390px) {
  .contact-form .mio-otp-group {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .contact-form .mio-otp-box {
    max-width: 40px;
    height: 44px;
    font-size: 1.1rem;
    
  }
}

@media (min-width: 1200px) {
  .contact-form .webform-actions {
    margin-left: 52px;
  }
.contact-form div[role="contentinfo"] {
    margin: 0 38px;
}
  .contact-form .form-item {
    margin: 0 50px 0px 50px;
  }

  .contact-form .captcha {
    margin: 10px 50px 0px 50px;
  }
  .contact-form {
    max-width: 640px;
  }

.contact-form .mio-resend-code {
  margin: 10px 50px 0;
}
.contact-form .mio-resend-code.is-visible {
  margin: 0px 50px;

}
}
