.home-request {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: clamp(28px, 5vw, 90px);
  width: calc(100% - 40px);
  min-height: 680px;
  margin-inline: 20px;
  overflow: hidden;
  padding: clamp(42px, 6vw, 94px);
  color: #f4f6f5;
  background: #131715 url('../../../assets/images/village-tour-form/background.png') center / cover no-repeat;
  border-radius: 18px;
}

.home-request__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 12, 10, 0.92) 0%, rgba(8, 12, 10, 0.72) 53%, rgba(8, 12, 10, 0.55) 100%);
}

.home-request__copy,
.home-request__form {
  position: relative;
  z-index: 1;
}

.home-request__copy {
  align-self: center;
}

.home-request__copy > p:first-child {
  margin: 0 0 26px;
  color: #ffcf00;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.home-request h2 {
  margin: 0;
  font-size: clamp(48px, 5.5vw, 92px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.home-request h2 span {
  display: block;
}

.home-request h2 span:last-child {
  color: rgba(244, 246, 245, 0.6);
  font-weight: 400;
}

.home-request__description {
  max-width: 650px;
  margin: 30px 0 0;
  color: rgba(244, 246, 245, 0.72);
  font-size: 18px;
  line-height: 1.55;
}

.home-request__form {
  align-self: center;
  padding: clamp(28px, 3vw, 46px);
  background: rgba(244, 246, 245, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  backdrop-filter: blur(22px);
}

.home-request__form h3 {
  margin: 0 0 26px;
  font-size: 28px;
  font-weight: 500;
}

.home-request__form > label:not(.home-request__consent) {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 17px;
  color: rgba(244, 246, 245, 0.65);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-request input[type='text'],
.home-request input[type='tel'],
.home-request select,
.home-request textarea {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  color: #fff;
  background: rgba(15, 19, 17, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  outline: none;
}

.home-request textarea {
  min-height: 88px;
  padding-block: 15px;
  resize: vertical;
}

.home-request input:focus,
.home-request select:focus,
.home-request textarea:focus {
  border-color: #ffcf00;
}

.home-request input[aria-invalid='true'] {
  border-color: #ff6b6b;
}

.home-request__form small {
  min-height: 14px;
  color: #ff8a8a;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

.home-request__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 6px 0 4px;
  color: rgba(244, 246, 245, 0.66);
  font-size: 12px;
  line-height: 1.35;
}

.home-request__consent input {
  flex: 0 0 auto;
  appearance: none;
  position: relative;
  width: 20px;
  height: 20px;
  margin: 0;
  background: rgba(15, 19, 17, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.home-request__consent:hover input {
  border-color: rgba(255, 207, 0, 0.72);
}

.home-request__consent input:checked {
  background: #ffcf00;
  border-color: #ffcf00;
}

.home-request__consent input:checked::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 5px;
  height: 9px;
  border: solid #121614;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.home-request__consent input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 207, 0, 0.2);
}

.home-request__consent.is-invalid input {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.12);
}

.home-request__consent-error {
  display: block;
  min-height: 18px !important;
  margin-bottom: 14px;
}

.home-request__form button {
  width: 100%;
  height: 58px;
  color: #121614;
  background: #ffcf00;
  border: 0;
  border-radius: 11px;
  font-weight: 600;
  cursor: pointer;
}

.home-request__form button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.home-request__status {
  min-height: 20px;
  margin: 14px 0 0;
  color: #dce8a8;
  font-size: 13px;
}

@media (max-width: 900px) {
  .home-request {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .home-request {
    width: calc(100% - 20px);
    margin-inline: 10px;
    padding: 38px 18px;
  }
}
