.site {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.contact-form-section {
  flex: 1 1 auto;
  margin-bottom: 40px;
}

.contact-form-section .section-title {
  margin-top: 64px;
  margin-bottom: clamp(16px, 4.7347px + 2.449vw, 40px);
  font-family: Satoshi-Bold, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  font-feature-settings: 'liga' off;
  line-height: 1.5; /* 150% */
  color: var(--e-global-color-brand);
  text-transform: uppercase;
  letter-spacing: 0.64px;
}

.contact-form-section .form-content-wrapper:not(.wpcf7-not-valid-tip) {
  font-family: Satoshi-Regular, sans-serif;
  font-size: clamp(40px, 28.7347px + 2.449vw, 64px);
  font-style: normal;
  font-weight: 400;
  font-feature-settings: 'liga' off;
  line-height: 130%; /* 83.2px */
  color: var(--e-global-color-text);
}

.contact-form-section .form-content-wrapper label {
  font-family: Satoshi-Regular, sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.44; /* 144.444% */
  text-align: center;
}

.contact-form-section .wpcf7-form-control-wrap {
  position: relative;
  min-width: 320px;
  font-family: Satoshi-Medium, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  color: var(--e-global-color-text) !important;
  background-color: transparent;
  border-top: 1px solid transparent;
  border-right: 1px solid transparent;
  border-bottom: 1px solid #565659;
  border-left: 1px solid transparent;
  outline: none;
  transition: border-color 0.3s;
}

.contact-form-section .checkbox-wrap {
  position: relative;
}

.contact-form-section .checkbox-wrap .wpcf7-form-control-wrap {
  position: static !important;
  border-bottom: 1px solid transparent;
}

.contact-form-section .checkbox-wrap a {
  position: relative;
  color: var(--e-global-color-brand);
  text-decoration: none;
  transition-duration: 0.5s;
}

.contact-form-section .checkbox-wrap a::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  content: '';
  background-color: var(--e-global-color-brand);
  transition-duration: 0.5s;
}

.contact-form-section .checkbox-wrap a:hover::after {
  width: 100%;
}

.contact-form-section .wpcf7-form-control,
.contact-form-section .auto-width-input {
  position: relative;
  min-width: 302px;
  padding: 16px;
  font-family: Satoshi-Medium, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  color: var(--e-global-color-text) !important;
  text-align: center;
  background-color: transparent;
  border: none !important;
  outline: none !important;
}

.contact-form-section .date-field-container {
  position: relative;
  display: inline-block;
  min-width: 320px;
}

.contact-form-section .wpcf7-not-valid-tip {
  position: absolute;
  top: 105%;
  left: 50%;
  width: 100%;
  transform: translateX(-50%);
}

.single-career-form-section .wpcf7-form-control::placeholder {
  font-family: Satoshi-Medium, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  color: rgb(240 243 250 / 90%);
}

.single-career-form-section .wpcf7-form-control:focus {
  font-family: Satoshi-Medium, sans-serif;

  /* font-size: 16px; */
  font-size: clamp(40px, 28.7347px + 2.449vw, 64px);
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  color: var(--e-global-color-text);
  background-color: transparent;
  border-top: 1px solid transparent;
  border-right: 1px solid transparent;
  border-bottom: 1px solid #565659;
  border-left: 1px solid transparent;
}

/* Скрываем стандартное поле даты визуально, но оставляем доступным для скринридеров */
.date-field-container input[type='date'] {
  position: absolute;
  width: 1px;
  height: 1px;
  pointer-events: none; /* Отключаем события мыши для скрытого поля */
  opacity: 0;
}

/* Стили для текстовой метки "Date" */
.date-text-label {
  display: inline-block;
  width: 100%;
  min-width: 70px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: inherit;
  color: rgb(240 243 250 / 90%);
  cursor: pointer;
}

/* Стили для метки когда дата выбрана */
.date-text-label.has-value {
  color: rgb(240 243 250 / 90%);
}

/* Стили для даты в формате placeholder */
.date-placeholder {
  color: rgb(240 243 250 / 90%);
}

.contact-form-section .col-5 {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 40px;
}

.contact-form-section .col-5 .wpcf7-spinner {
  margin-left: auto;
}

.contact-form-section .wpcf7-submit {
  order: 2;
  padding: 26px 120px;
  font-family: Satoshi-Bold, sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.4; /* 140% */
  color: var(--e-global-color-text);
  cursor: pointer;
  background: linear-gradient(225deg, #43baf5 7.92%, #242fff 100%);
  background-blend-mode: overlay, normal;
  border: none;
  border-radius: 80px;
  outline: none;
  transition-duration: 0.5s;
}

.contact-form-section .wpcf7-response-output {
  font-family: Satoshi-Bold, sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.4; /* 140% */
}

input:not([type='submit'], [type='button'], :placeholder-shown),
textarea:not(:placeholder-shown),
select:not(:placeholder-shown) {
  border-bottom: 1px solid var(--e-global-color-text) !important;
}

/* Для Firefox */

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  border-color: transparent !important;
  outline: none !important;
  box-shadow: 0 0 0 1000px #0c0f1c inset !important;
  transition: background-color 5000s ease-in-out 0s;
  -webkit-text-fill-color: var(--e-global-color-text) !important;
}

/* Скрываем стандартный инпут */
.contact-form-section .hidden-file-input {
  display: none !important;
}

/* Стили для кастомного лейбла */
.contact-form-section .custom-file-upload {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  color: var(--e-global-color-brand);
  cursor: pointer;
  border: none !important;
  outline: none !important;
  transition: 0.5s;
}

.contact-form-section .custom-file-upload path {
  stroke: currentcolor;
}

.contact-form-section .custom-file-upload .wpcf7-form-control-wrap {
  width: fit-content;
  min-width: initial;
  border: none;
}

.contact-form-section .custom-file-upload:hover {
  color: var(--e-global-color-text);
}

@media screen and (max-width: 768px) {
  .contact-form-section .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
    margin-bottom: 16px;
  }

  .contact-form-section .wpcf7-form-control {
    width: 100%;
  }

  .contact-form-section .col-5 {
    flex-direction: column;
  }
}
