.multi-step-form-cont {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-grow: 1;
  flex-wrap: wrap;
  align-content: center;
}

.multi-step-form-cont h3 {
  color: #13151b;
  margin-bottom: 60px;
  text-align: center;
  font-family: "Montserrat";
  font-style: normal;
  font-size: 24px;
  line-height: 35px;
  font-weight: 600;
}

.all-reg-form {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-content: space-around;
  z-index: 1;
  position: relative;

  font-family: "Hind Madurai";
  font-style: normal;
  font-size: 14px;
  line-height: 20px;
}
.all-reg-form a {
  font-family: "Hind Madurai";
  font-style: normal;
  font-size: 14px;
  line-height: 20px;
}

.form-spacer {
  flex-grow: 1;
}

#multi-step-form {
  /* max-width: 350px; */
  width: 100%;
  margin: auto;
  /* font-family: "Hind Madurai";
    font-style: normal;
    font-size: 14px;
    line-height: 20px; */
}

/* .step {
    display: none;
} */

.enquiry-option-label {
  display: inline-block;
  margin-bottom: 8px;
}

/* input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 8px;
    
    border: 1px solid #ccc;
    border-radius: 4px;
} */

/* Единый стиль для всех кнопок */
.continue-btn,
.submit-btn {
  width: 100%;
  background: linear-gradient(to right, #00cb9a, #1269d9);
  border: none;
  border-radius: 28px;
  color: #fff;
  padding: 12px;
  box-sizing: border-box;
  cursor: pointer;
  margin-top: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 44px; /* Фиксированная высота для предотвращения изменения размеров */
  text-align: center;
}

/* Текст кнопки */
.submit-btn .btn-text {
  transition: opacity 0.3s ease;
}

/* В состоянии загрузки */
.submit-btn.loading {
  height: 10px;
  background: none;
  border: 1px solid #d9d9d9;
  padding: 0;
}
.submit-btn.loading .btn-text {
  opacity: 0;
}

/* Прогресс-бар (через ::after) */
.submit-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--progress-width, 0%);
  background: linear-gradient(90deg, #00cb9a 0%, #1269d9 100%);
  transition: width 0.3s linear;
  z-index: 1;
  opacity: 1;
  pointer-events: none;
  border-radius: 28px;
}

/* Скрытие прогресс-бара */
.submit-btn.hide-progress::after,
.submit-btn.hide-progress::before {
  opacity: 0;
}
.submit-btn.show-stripes::before {
  opacity: 1;
}

.submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 300%; /* больше ширина — медленнее движение */
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.15) 0,
    rgba(255, 255, 255, 0.15) 20px,
    transparent 20px,
    transparent 40px
  );
  animation: stripe-move 6s linear infinite; /* длинная анимация */
  z-index: 2;
  pointer-events: none;
  border-radius: 28px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Анимация движения */
@keyframes stripe-move {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-66.6%);
  }
}

/* .hidden {
    display: none;
} */

/* .error-field {
    border: 1px solid #721c24 !important;
} */

#form-message {
  /* max-width: 400px; */
  width: 100%;
  /* margin: auto; */
  /* padding: 15px; */
  /* border-radius: 5px; */
  display: none;
  margin-top: 15px;
  transition: height 0.5s ease, opacity 0.5s ease;
  text-align: center;
  /* font-family: "Hind Madurai"; */
  /* font-style: normal;
    font-size: 14px;
    line-height: 20px; */
  font-weight: 400;
}

/* Серый цвет по умолчанию (во время загрузки) */
.status-bar {
  /* background: #f0f0f0; */
  /* border: 1px solid #ccc; */
  background: linear-gradient(to right, #00cb9a, #1269d9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#form-message.success {
  background: transparent;
  color: #252935;
  border: 1px solid #00cb9a;
  border-radius: 8px;
  padding: 10px 45px;
  display: block;
}

#form-message.error {
  color: #252935;
  background: rgba(226, 76, 76, 0.1);
  border: none;
  border-radius: 8px;
  padding: 10px 45px;
  display: block;
}

#form-message.error a {
  color: #252935;
  text-decoration: underline;
}

.step {
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition: height 0.5s ease, opacity 0.5s ease;
}

/* Активный шаг (тот, который показываем) */
.step.active {
  height: auto;
  opacity: 1;
  overflow: visible;
}

.back-link {
  display: inline-block;
  color: #aaa;
  text-decoration: none;
  margin-top: 16px;
}
.back-link:hover {
  color: #666;
}

.back-to-site {
  text-align: center;
  margin-top: 15px;
}

.back-link-with-countdown {
  display: inline-block;
  position: relative;
  /* font-family: "Hind Madurai";
    font-style: normal;
    font-size: 14px;
    line-height: 14px; */
  font-weight: 400;
  margin-top: 20px;
  background: linear-gradient(to right, #00cb9a, #1269d9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.back-link-with-countdown::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: linear-gradient(to right, #00cb9a, #1269d9);
}

.radio-group {
  display: flex;
  flex-direction: column;
}

.radio-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 16px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  color: #252935;
  margin-bottom: 8px;
}

/* Hover style (outline mimic) */
.radio-option:hover {
  border-color: #00cb9a;
}
.radio-option:has(input[type="radio"]:checked) {
  box-shadow: 0 0 0 3px #00cb9a4d;
}

/* Hide default radio */
.radio-option input[type="radio"] {
  display: none;
}

/* Custom radio marker */
.custom-radio-mark {
  width: 14px;
  height: 14px;
  border: 1px solid #d9d9d9;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

/* Checked state */
.radio-option input[type="radio"]:checked ~ .custom-radio-mark {
  border-color: #00cb9a;
  background-color: #00cb9a;
}

.radio-option input[type="radio"]:checked ~ .custom-radio-mark::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.radio-icon {
  width: 21px;
  height: 21px;
  object-fit: contain;
  flex-shrink: 0;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 10px;
}

.input-with-icon input {
  width: 100%;
  padding: 10px 12px 10px 40px; /* место под иконку слева */
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s ease;
}

.input-with-icon input:focus {
  border-color: #00cb9a;
  outline: none;
}

.input-icon {
  position: absolute;
  left: 10px;
  width: 21px;
  height: 21px;
  pointer-events: none;
}

/* .input-group {
    position: relative;
    margin-bottom: 20px;
  } */

.input-group.error input {
  border-color: #e24c4c;
  color: #e24c4c;
}

.input-group.error input::placeholder {
  color: #e24c4c;
  opacity: 1;
}

/* .input-group.error input {
    background-color: #FFF5F5;
  } */

.input-icon {
  color: #6c757d;
  transition: color 0.2s ease;
}

.input-group.error .input-icon {
  color: #e24c4c;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  margin-top: 16px;
}

.custom-checkbox,
.custom-checkbox a {
  color: #6c757d;
}
.custom-checkbox a {
  text-decoration: underline !important;
}
.custom-checkbox input[type="checkbox"] {
  display: none;
}

.checkbox-box {
  width: 18px;
  min-width: 18px;
  height: 18px;
  border: 1px solid #d9d9d9;
  border-radius: 5px;
  display: inline-block;
  position: relative;
  transition: all 0.2s ease;
  background-color: #fff;
}
.custom-checkbox:hover .checkbox-box {
  border: 1px solid #00cb9a;
}
.custom-checkbox input[type="checkbox"]:checked + .checkbox-box {
  background-color: #00cb9a;
  border-color: #00cb9a;
}

.custom-checkbox input[type="checkbox"]:checked + .checkbox-box::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-progress {
  display: flex;
  gap: 8px;
  margin-top: 40px;
  justify-content: space-between;
  /* max-width: 600px; */
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.progress-step {
  flex: 1 1 auto;
  height: 8px;
  border-radius: 10px;
  background-color: #e5e5e5;
  transition: background 0.5s ease, opacity 0.5s ease, transform 0.5s ease,
    flex-basis 0.5s ease;
  opacity: 1;
  transform: scaleX(1);
  transform-origin: left center;
  flex-basis: 100%;
}

.progress-step.inactive {
  opacity: 0;
  transform: scaleX(0);
  flex-basis: 0.0001px;
  pointer-events: none;
}

/* Активный шаг */
.progress-step.active {
  background: linear-gradient(90deg, #00cb9a 0%, #1269d9 100%);
}

.having-trouble {
  color: rgba(37, 41, 53, 0.4);
  margin-top: 50px;
}
.contactus-link {
  color: rgba(37, 41, 53, 0.4);
  text-decoration: underline !important;
}

.already-user-message-item {
  padding: 20px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  color: #252935;
}
.already-user-message-item a {
  color: #252935;
  text-decoration: underline !important;
}

.form-slide-visuals {
  position: relative;
  width: 50vw;
  padding-left: 100px;
}
.form-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease;
  text-align: left;
}

.form-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.form-slide h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 32px;
  margin-bottom: 24px;
  color: #fff;
  padding-right: 30px;
}

.slide-image:not(.highlights) {
  width: 100%;
  min-height: 80vh;
  display: block;
  background-size: cover;
  background-position: left top;
  background-repeat: no-repeat;
}
.slide-image.highlights {
  width: 100%;
  min-height: 80vh;
  display: block;
  background-size: calc(100% - 100px);
  background-repeat: no-repeat;
  background-position: left top;
}
.slide-image.shadow {
  box-shadow: 0 0 0 6px rgba(193, 202, 215, 0.4);
  border-radius: 10px 0 0 0;
}

.form-shortcode .elementor-widget-container {
  display: flex;
}

/* Общие элементы формы */
#multi-step-form input:disabled,
#multi-step-form select:disabled,
#multi-step-form textarea:disabled,
#multi-step-form button:disabled {
  opacity: 0.5;
  cursor: default;
}

/* Кастомные чекбоксы и радио — делаем метку "неактивной" */
#multi-step-form .custom-checkbox input:disabled + .checkbox-box,
#multi-step-form
  .custom-checkbox
  input:disabled
  + .checkbox-box
  + .checkbox-label-text {
  opacity: 0.5;
  cursor: default;
}

#multi-step-form .radio-option input:disabled + .radio-label,
#multi-step-form
  .radio-option
  input:disabled
  + .radio-label
  + .custom-radio-mark {
  opacity: 0.5;
  cursor: default;
}

.prs-entr {
  width: 100%;
  display: flex;
  gap: 5px;
  justify-content: center;
  padding: 5px;
}

.step-1 .prs-entr {
  opacity: 0;
  transition: opacity 1s ease;
}

.step-1:has(input[name="user_type"]:checked) .prs-entr {
  opacity: 1;
}
