.home-feedback.page-section {
  gap: 3.2rem;
  padding-inline: var(--content-padding);
}

.home-feedback__hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70rem;
  margin-inline: calc(-1 * var(--content-padding));
  background-image:
    linear-gradient(180deg, rgba(60, 60, 60, 0) 16%, rgba(60, 60, 60, 0.6) 100%),
    url("../../assets/form-bg-desc-65f327.png");
  background-size: cover;
  background-position: center;
}

.home-feedback__panel {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  width: 47%;
  max-width: 100%;
  padding: 4rem;
  background-color: var(--color-gray);
  margin-bottom: 7rem;
  margin-top: 4rem;
}

.home-feedback__fields {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.home-feedback__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.home-feedback__field-wrap {
  position: relative;
  padding-bottom: 2.4rem;
}

.home-feedback__field-wrap--select {
  padding-bottom: 2.4rem;
}

.home-feedback__field-wrap--message {
  padding-bottom: 0;
}

.home-feedback__field {
  display: block;
  width: 100%;
  padding: 1.6rem 0.4rem;
  border: none;
  border-bottom: 1px solid var(--color-black);
  background: transparent;
  font-family: inherit;
  font-size: 1.8rem;
  line-height: 1.8rem;
  color: var(--color-black);
}

.home-feedback__field:not(.home-feedback__field--textarea) {
  height: 5.4rem;
}

.home-feedback__field::placeholder {
  color: var(--color-black);
  opacity: 0.6;
}

.home-feedback__field:focus {
  outline: none;
}

.home-feedback__field--error {
  border-bottom-color: var(--color-red);
}

.home-feedback__field--select {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-size: 1.8rem;
  padding-right: 2.4rem;
  cursor: pointer;
  color: var(--color-black);
}

.home-feedback__field--select.home-feedback__field--placeholder {
  color: color-mix(in srgb, var(--color-black) 60%, transparent);
}

.home-feedback__field--select option {
  color: var(--color-black);
}

.home-feedback__select-icon {
  position: absolute;
  top: calc(1.6rem + 0.9rem);
  right: 0.4rem;
  width: 1.6rem;
  height: 1rem;
  pointer-events: none;
  transform: translateY(-50%);
}

.home-feedback__field--textarea {
  height: 4rem;
  resize: vertical;
  line-height: 1.2;
}

.home-feedback__error {
  position: absolute;
  left: 0.4rem;
  bottom: 0;
  margin: 0;
  color: var(--color-red);
  font-size: 1rem;
  line-height: 1.2;
}

.home-feedback__error[hidden] {
  display: none;
}

.home-feedback__footer {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.home-feedback__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.home-feedback__checkbox-label {
  display: flex;
  flex-shrink: 0;
  cursor: pointer;
}

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

.home-feedback__checkbox-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  transition:
    background-color 0.2s,
    border-color 0.2s;
}

.home-feedback__checkbox-icon {
  width: 1.6rem;
  height: 1.6rem;
  color: var(--color-white);
  opacity: 0;
  transition: opacity 0.2s;
}

.home-feedback__checkbox:checked + .home-feedback__checkbox-box {
  background-color: var(--color-red);
  border-color: var(--color-red);
}

.home-feedback__checkbox:checked + .home-feedback__checkbox-box .home-feedback__checkbox-icon {
  opacity: 1;
}

.home-feedback__consent--error .home-feedback__checkbox-box {
  border-color: var(--color-red);
}

.home-feedback__consent-text {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.2;
}

.home-feedback__policy-link {
  color: var(--color-red);
  transition: opacity 0.2s;
}

.home-feedback__policy-link:hover {
  opacity: 0.8;
}

.home-feedback__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.6rem;
}

.home-feedback__consent-error {
  margin: 0;
  color: var(--color-red);
  font-size: 1.4rem;
  line-height: 1.2;
}

.home-feedback__consent-error[hidden] {
  display: none;
}

.home-feedback__success {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.2;
}

.home-feedback__success[hidden] {
  display: none;
}

.home-feedback__panel--success .home-feedback__fields,
.home-feedback__panel--success .home-feedback__consent,
.home-feedback__panel--success .home-feedback__actions {
  display: none;
}

.home-feedback__submit--loading,
.home-feedback__submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

@media (orientation: portrait) {
  .home-feedback.page-section {
    padding-inline: var(--page-padding-inline);
  }

  .home-feedback__hero {
    min-height: auto;
    margin-inline: calc(-1 * var(--page-padding-inline));
    padding: 2.4rem var(--page-padding-inline);
    background-image:
      linear-gradient(180deg, rgba(60, 60, 60, 0) 16%, rgba(60, 60, 60, 0.6) 100%),
      url("../../assets/form-bg.jpg");
  }

  .home-feedback__panel {
    padding: 2.4rem 1.6rem;
    gap: 3.2rem;
    width: 100%;
  }

  .home-feedback__row {
    grid-template-columns: 1fr;
  }

  .home-feedback__field {
    font-size: 1.6rem;
  }

  .home-feedback__consent-text {
    font-size: 1.4rem;
  }

  .home-feedback__submit {
    width: 100%;
  }
}
