.village-tour-form {
  position: relative;
  width: calc(100% - 40px);
  height: 386px;
  margin-inline: 20px;
  overflow: hidden;
  color: var(--color-light);
  background: #131715;
  border: 1px solid rgba(244, 246, 244, 0.1);
  border-radius: 18px;
}

.village-tour-form__background,
.village-tour-form__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.village-tour-form__background {
  max-width: none;
  object-fit: cover;
}

.village-tour-form__overlay {
  background: linear-gradient(122.3deg, rgba(8, 12, 11, 0.736) 6.17%, rgba(8, 12, 11, 0.496) 93.83%);
}

.village-tour-form__layout {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 52px 40px;
}

.village-tour-form__intro {
  width: 640px;
  max-width: 640px;
}

.village-tour-form__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(244, 246, 245, 0.62);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.16px;
  text-transform: uppercase;
}

.village-tour-form__eyebrow span {
  width: 30px;
  height: 1px;
  flex: 0 0 30px;
  background: var(--color-yellow);
}

.village-tour-form__intro h2 {
  display: flex;
  flex-direction: column;
  margin: 20px 0 0;
  font-size: 48px;
  font-weight: 600;
  line-height: 49.92px;
  letter-spacing: -0.72px;
  text-transform: uppercase;
}

.village-tour-form__intro h2 span:last-child {
  color: rgba(244, 246, 245, 0.64);
  font-weight: 400;
}

.village-tour-form__intro p {
  width: 460px;
  margin: 18px 0 0;
  color: rgba(244, 246, 245, 0.74);
  font-size: 16px;
  line-height: 26.4px;
}

.village-tour-form__card {
  position: relative;
  width: 400px;
  min-width: 280px;
  max-width: 400px;
  margin: 0;
  padding: 26px;
  color: var(--color-light);
  background: linear-gradient(160.67deg, rgba(255, 255, 255, 0.16) 7.74%, rgba(255, 255, 255, 0.05) 92.27%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  box-shadow: 0 26px 70px rgba(5, 10, 9, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(26px);
}

.village-tour-form__card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: normal;
}

.village-tour-form__field {
  position: relative;
  height: 64px;
  transition: height 220ms ease;
}

.village-tour-form__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.village-tour-form__field input {
  position: absolute;
  top: 14px;
  left: 0;
  width: 100%;
  height: 50px;
  padding: 15px 17px;
  overflow: hidden;
  color: var(--color-light);
  caret-color: var(--color-yellow);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 11px;
  outline: none;
  font-size: 15px;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.village-tour-form__field input::placeholder {
  color: #757575;
  opacity: 1;
}

.village-tour-form__field input:focus {
  border-color: rgba(255, 207, 0, 0.72);
  box-shadow: 0 0 0 3px rgba(255, 207, 0, 0.08);
}

.village-tour-form__field.is-invalid {
  height: 84px;
}

.village-tour-form__field.is-invalid input {
  border-color: #ff7a70;
}

.village-tour-form__field.is-valid input {
  border-color: rgba(255, 207, 0, 0.72);
}

.village-tour-form__error {
  position: absolute;
  top: 68px;
  left: 2px;
  margin: 0;
  color: #ff9a91;
  font-size: 11px;
  line-height: 14px;
}

.village-tour-form__submit {
  width: 100%;
  margin-top: 12px;
  padding: 16px 24px;
  color: #121614;
  background: var(--color-yellow);
  border: 0;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: opacity 220ms ease, transform 220ms ease;
}

.village-tour-form__submit:disabled {
  opacity: 0.4;
  cursor: default;
}

.village-tour-form__submit:not(:disabled):active {
  transform: translateY(1px);
}

.village-tour-form__submit.is-success {
  opacity: 1;
}

.village-tour-form__consent {
  width: 100%;
  margin: 12px 0 0;
  color: rgba(244, 246, 245, 0.5);
  font-size: 11px;
  line-height: 16.5px;
}

@media (max-width: 900px) {
  .village-tour-form {
    height: auto;
  }

  .village-tour-form__layout {
    align-items: stretch;
    flex-direction: column;
    gap: 36px;
  }

  .village-tour-form__card {
    width: 100%;
    max-width: 520px;
  }
}

@media (max-width: 600px) {
  .village-tour-form__layout {
    padding: 36px 20px;
  }

  .village-tour-form__intro,
  .village-tour-form__intro p {
    width: 100%;
  }

  .village-tour-form__intro h2 {
    font-size: 36px;
    line-height: 39px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .village-tour-form__field,
  .village-tour-form__field input,
  .village-tour-form__submit {
    transition-duration: 1ms;
  }
}
