/* Dense Patrimesse — стили hero-формы (из core/form.php) */

.hero__form form.lead-form {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  color: #000000;
  font-family: inherit;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero__form form.lead-form *,
.hero__form form.lead-form *::before,
.hero__form form.lead-form *::after {
  box-sizing: border-box;
}

.hero__form form.lead-form .form--title {
  font-size: 0;
  line-height: 0;
  margin: 0 0 8px;
  text-align: center;
}

.hero__form form.lead-form .form--title::before {
  content: "INSCRIVEZ-VOUS MAINTENANT !";
  display: block;
  font-size: 26px;
  font-weight: bold;
  color: #000000;
  line-height: 1;
  text-align: center;
}

.hero__form form.lead-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  width: 100%;
}

.hero__form form.lead-form input[type="text"],
.hero__form form.lead-form input[type="email"],
.hero__form form.lead-form input[type="tel"],
.hero__form form.lead-form input[type="password"],
.hero__form form.lead-form .form-control,
.hero__form form.lead-form .rf-form-input,
.hero__form form.lead-form .form-input,
.hero__form form.lead-form .input {
  width: 100%;
  min-height: auto;
  margin: 0;
  padding: 14px;
  border: 1px solid #C2C2C2;
  background: #C2C2C2;
  border-radius: 8px;
  color: #333333;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.hero__form form.lead-form input::placeholder {
  color: #9C9C9C;
  opacity: 1;
}

.hero__form form.lead-form input[type="tel"]::placeholder {
  color: rgb(89, 82, 82) !important;
}

.hero__form form.lead-form input:focus,
.hero__form form.lead-form .form-control:focus {
  border-color: #FF7B00;
  box-shadow: none;
}

.hero__form form.lead-form input.error,
.hero__form form.lead-form input.error-input,
.hero__form form.lead-form .form-control.error {
  border: 2px solid red !important;
}

.hero__form form.lead-form .iti {
  display: block;
  width: 100%;
  position: relative;
}

.hero__form form.lead-form .iti__tel-input,
.hero__form form.lead-form .iti input[type="tel"],
.hero__form form.lead-form .iti input.form-control {
  width: 100%;
  padding-left: 90px !important;
}

.hero__form form.lead-form .iti__country-name {
  color: #000000 !important;
}

.hero__form form.lead-form .iti__selected-dial-code {
  color: #000000;
  font-size: 14px;
}

.hero__form form.lead-form .iti__country-list {
  background: #ffffff;
  border: 1px solid #C2C2C2;
  border-radius: 8px;
  color: #000000;
}

.hero__form form.lead-form .iti__country.iti__highlight {
  background: #f5f5f5;
}

.iti--container.apx-iti-dropdown .iti__dropdown-content {
  background: #ffffff !important;
  border: 1px solid #C2C2C2 !important;
  color: #000000 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.hero__form form.lead-form button[type="submit"],
.hero__form form.lead-form .submit,
.hero__form form.lead-form .rf-form-button,
.hero__form form.lead-form .form-submit,
.hero__form form.lead-form .regFormButton,
.hero__form form.lead-form .button,
.hero__form form.lead-form .lead-form__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: auto;
  margin: 0;
  padding: 14px;
  border: none;
  border-radius: 89px;
  background: #FF7B00;
  color: #ffffff !important;
  font-family: inherit;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
  transition: background 0.3s ease;
}

.hero__form form.lead-form button[type="submit"]:hover,
.hero__form form.lead-form .lead-form__button:hover {
  background: #e66a00;
  transform: none;
}

.hero__form form.lead-form button[type="submit"]:disabled,
.hero__form form.lead-form .lead-form__button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.hero__form form.lead-form .form-group:has(button[type="submit"])::after {
  content: "";
  display: block;
  width: 100%;
  height: 40px;
  margin-top: 16px;
  background: url(./payment.svg) center / contain no-repeat;
}

.hero__form form.lead-form .error-msg,
.hero__form form.lead-form .form-error {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: red;
  line-height: 1.4;
}

.hero__form form.lead-form .error-msg.hide,
.hero__form form.lead-form .form-error:empty {
  display: none;
}

.hero__form form.lead-form .data_safe {
  display: none !important;
}

.hero__form form.lead-form .form-preloader {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(2px);
}

.hero__form form.lead-form .form-preloader.hidden {
  display: none !important;
}

.hero__form form.lead-form .form-preloader .spinner {
  animation: apx-form-rotate 1.4s linear infinite;
}

.hero__form form.lead-form .form-preloader .path {
  stroke: #FF7B00;
  stroke-linecap: round;
  animation: apx-form-dash 1.4s ease-in-out infinite;
}

.hero__form form.lead-form .hide {
  display: none !important;
}

form.lead-form .iti,
.apx-lead .iti {
  position: relative;
  display: block;
  width: 100%;
}

form.lead-form .iti .iti__country-container,
.apx-lead .iti .iti__country-container {
  pointer-events: auto;
}

form.lead-form .iti .iti__dropdown-content,
.apx-lead .iti .iti__dropdown-content {
  box-sizing: border-box;
}

.iti--container.apx-iti-dropdown {
  position: fixed !important;
  z-index: 2147483000 !important;
  margin: 0 !important;
  box-sizing: border-box;
}

.iti--container.apx-iti-dropdown .iti__dropdown-content {
  position: relative !important;
  margin: 0 !important;
  max-height: inherit;
}

form.lead-form .form-preloader.hidden {
  display: none !important;
}

form.lead-form .form-preloader:not(.hidden) {
  display: flex;
}

form.lead-form .iti {
  width: 100%;
}

form.lead-form .iti input.form-control {
  width: 100%;
}

@keyframes apx-form-rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes apx-form-dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__form form.lead-form .form-preloader .spinner,
  .hero__form form.lead-form .form-preloader .path {
    animation: none;
  }
}
