/* Keep the paper shadows above the page background and behind the form. */
.wrapper:has(> .notes > .feedback) { isolation: isolate; }
.feedback {
  position: relative;
  min-height: 400px;
  overflow: hidden;
}
.feedback .front,
.feedback .back {
  position: absolute;
  width: 100%;
  min-height: 400px;
  padding: 30px;
  transition: transform 0.4s ease-in-out, visibility 0.4s;
}
.feedback .front {
  transform: translateX(0);
  z-index: 900;
}
.feedback .back {
  padding-top: 130px;
  transform: translateX(1000px);
  visibility: hidden;
  text-align: center;
  z-index: 800;
}
.feedback .back h2 { font-size: 2em; margin: 0 0 .67em; }
.feedback.success .front {
  transform: translateX(-1000px);
  visibility: hidden;
}
.feedback.success .back {
  transform: translateX(0);
  visibility: visible;
  z-index: 1000;
}
.feedback label {
  clear: left;
  display: block;
  float: left;
  width: 100px;
  margin-bottom: 20px;
  padding-top: 5px;
}
.feedback label[for=message] {
  margin-bottom: 5px;
  padding-top: 0;
}
.feedback .description {
  margin-top: 0;
  color: #ececec;
  font-size: 0.85em;
}
.feedback input[name=name] + .description {
  padding-top: 5px;
}
.feedback input[name=email] + .description {
  padding-top: 8px;
}
.feedback textarea + .description {
  padding: 25px 0 0 485px;
}
.feedback input[type=text] {
  display: block;
  float: left;
  width: 350px;
  margin: 0 35px 20px 0;
  padding: 4px 6px;
  color: #333333;
}
.feedback textarea {
  clear: left;
  display: block;
  float: left;
  width: 450px;
  padding: 4px 6px;
  color: #333333;
}
.feedback input:required,
.feedback textarea:required {
  box-shadow: none;
}
.feedback p.actions {
  clear: left;
  margin: 0;
  padding-top: 20px;
}
.feedback p.actions em {
  padding-left: 20px;
  color: #808080;
  font-size: 0.85em;
}
.feedback input:focus,
.feedback textarea:focus {
  background-color: #ffffeb;
}
.feedback :is(input[type=text], textarea):focus-visible {
  outline: revert;
  outline-offset: revert;
}
.feedback input:focus + .description,
.feedback textarea:focus + .description {
  color: #333333;
}
@media (max-width: 950px) {
  .feedback .description span { display: none; }
  .feedback input[name=email] + .description { padding-top: 18px; }
  .feedback textarea + .description { padding-top: 39px; }
}
@media (max-width: 905px) {
  .feedback textarea + .description { padding-top: 25px; }
}
@media (max-width: 790px) {
  .feedback .description { display: none; }
  .feedback label,
  .feedback input[type=text],
  .feedback textarea { display: inline-block; }
}
@media (max-width: 650px) {
  .feedback input[type=text] { width: 320px; }
  .feedback textarea { width: 420px; }
}
@media (max-width: 600px) {
  .feedback { min-height: 0; }
  .feedback .front {
    position: relative;
    min-height: 0;
    padding: 20px;
  }
  .feedback .back {
    inset: 0;
    display: grid;
    align-content: center;
    min-height: 100%;
    padding: 20px;
  }
  .feedback label,
  .feedback input[type=text],
  .feedback textarea {
    display: block;
    float: none;
    width: 100%;
  }
  .feedback label { margin-bottom: 5px; padding-top: 0; }
  .feedback input[type=text] { margin: 0 0 20px; }
  .feedback textarea { resize: vertical; }
  .feedback p.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
  .feedback p.actions em { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .feedback .front,
  .feedback .back { transition: none; }
}
