.feedback-main {
  min-height: calc(100vh - 104px);
  padding: clamp(68px, 8vw, 104px) 0 104px;
}

.feedback-content {
  display: grid;
  width: min(100%, 1120px);
  margin: 0 auto;
  grid-template-columns: minmax(260px, 340px) minmax(0, 680px);
  gap: clamp(56px, 7vw, 100px);
  align-items: start;
}

.feedback-head {
  position: sticky;
  top: 138px;
}

.feedback-head h1 {
  margin: 0;
  font-size: clamp(3.2rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: .98;
}

.feedback-head p {
  max-width: 54ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.feedback-form {
  display: grid;
  gap: 14px;
}

.feedback-form > label,
.feedback-types legend {
  margin-top: 8px;
  color: #222;
  font-size: .88rem;
  font-weight: 650;
}

.feedback-form input[type="text"],
.feedback-form input[type="search"],
.feedback-form textarea {
  width: 100%;
  border: 1px solid #bbb8b3;
  border-radius: 6px;
  outline: none;
  color: #111;
  background: #fff;
  font: inherit;
  font-size: .94rem;
}

.feedback-form input[type="text"],
.feedback-form input[type="search"] {
  min-height: 50px;
  padding: 11px 13px;
}

.feedback-company-field {
  display: grid;
  gap: 12px;
}

.feedback-company-field[hidden] {
  display: none;
}

.feedback-company-field > label {
  color: #222;
  font-size: .88rem;
  font-weight: 650;
}

.feedback-company-search {
  position: relative;
}

.feedback-company-search > input[type="search"] {
  padding-right: 38px;
}

.feedback-company-search > input[type="search"]::-webkit-search-cancel-button {
  display: none;
}

.feedback-company-search__chevron {
  position: absolute;
  z-index: 2;
  top: 19px;
  right: 17px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #555;
  border-bottom: 1.5px solid #555;
  pointer-events: none;
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.feedback-company-search > input[aria-expanded="true"] + .feedback-company-search__chevron {
  transform: translateY(3px) rotate(225deg);
}

.feedback-company-search > input[hidden] + .feedback-company-search__chevron {
  display: none;
}

.feedback-company-results {
  position: absolute;
  z-index: 20;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid #bbb8b3;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(30, 26, 22, .14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(.992);
  transform-origin: top center;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms;
}

.feedback-company-results[data-open] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.feedback-company-results[hidden] {
  display: none;
}

.feedback-company-result {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 0;
  border-bottom: 1px solid #e7e5e1;
  color: #222;
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 110ms ease, padding-left 110ms ease;
}

.feedback-company-result:last-child {
  border-bottom: 0;
}

.feedback-company-result:hover,
.feedback-company-result:focus-visible {
  outline: 0;
  background: #f1f0ed;
  padding-left: 16px;
}

.feedback-company-result__mark,
.feedback-company-selected__mark {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #ddd9d3;
  border-radius: 7px;
  color: #555;
  background: #f4f3f0;
  font-size: .72rem;
  font-weight: 750;
}

.feedback-company-result__mark img,
.feedback-company-selected__mark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 5px;
  object-fit: contain;
  background: #fff;
}

.feedback-company-result__copy,
.feedback-company-selected__copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.feedback-company-result__copy strong,
.feedback-company-selected__copy strong {
  min-width: 0;
  overflow: hidden;
  font-size: .88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feedback-company-result__copy > span,
.feedback-company-selected__copy > span {
  overflow: hidden;
  color: var(--muted);
  font-size: .78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feedback-company-state {
  margin: 0;
  padding: 12px 13px;
  color: var(--muted);
  font-size: .82rem;
}

.feedback-company-selected {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border: 1px solid #bbb8b3;
  border-radius: 6px;
  background: #fff;
}

.feedback-company-selected[hidden] {
  display: none;
}

.feedback-company-selected__copy {
  flex: 1 1 auto;
}

.feedback-form .feedback-company-selected > button {
  min-height: auto;
  flex: 0 0 auto;
  margin: 0;
  padding: 4px;
  border: 0;
  color: #555;
  background: transparent;
  font: inherit;
  font-size: .78rem;
  font-weight: 650;
  cursor: pointer;
}

.feedback-form .feedback-company-selected > button:hover {
  color: #111;
}

.feedback-correction-picker {
  min-width: 0;
  margin-top: 8px;
}

.feedback-correction-picker[hidden],
.feedback-correction-area[hidden],
.feedback-target-field[hidden],
.feedback-reason-field[hidden],
.feedback-correction-summary[hidden] {
  display: none;
}

.feedback-correction-area,
.feedback-target-field,
.feedback-reason-field {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.feedback-correction-area h2,
.feedback-picker-heading h2 {
  margin: 0;
  color: #222;
  font-size: .9rem;
  font-weight: 700;
}

.feedback-picker-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feedback-record-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.feedback-record-filters[hidden],
.feedback-record-search[hidden],
.feedback-record-empty[hidden] {
  display: none;
}

.feedback-record-filters > button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid #d1cec9;
  border-radius: 7px;
  color: #333;
  background: #efeeeb;
  font: inherit;
  font-size: .78rem;
  font-weight: 650;
  cursor: pointer;
  transition: border-color 130ms ease, background 130ms ease, box-shadow 130ms ease;
}

.feedback-record-filters > button:hover {
  border-color: #aaa7a2;
  background: #e8e7e3;
}

.feedback-record-filters > button[aria-pressed="true"] {
  border-color: var(--orange);
  color: #111;
  background: #fff;
  box-shadow: 0 0 0 1px var(--orange);
}

.feedback-record-filter__icon {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  color: #555;
}

.feedback-record-filters > button[aria-pressed="true"] .feedback-record-filter__icon {
  color: var(--orange);
}

.feedback-record-filter__icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feedback-record-filters small {
  min-width: 19px;
  padding: 2px 5px;
  border-radius: 999px;
  color: #555;
  background: #deddd9;
  font-size: .65rem;
  line-height: 1.2;
  text-align: center;
}

.feedback-record-filters > button[aria-pressed="true"] small {
  color: #222;
  background: #ecebe8;
}

.feedback-record-search {
  position: relative;
  display: block;
}

.feedback-record-search > svg {
  position: absolute;
  z-index: 1;
  top: 13px;
  left: 13px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #666;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.feedback-form .feedback-record-search > input[type="search"] {
  min-height: 44px;
  padding: 9px 13px 9px 40px;
  font-size: .86rem;
}

.feedback-record-count {
  margin: -3px 0 0;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
}

.feedback-record-empty {
  margin: 4px 0 0;
  padding: 18px 12px;
  color: var(--muted);
  background: #efeeeb;
  border-radius: 7px;
  font-size: .82rem;
  text-align: center;
}

.feedback-picker-back {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0 6px 0 0;
  border: 0;
  color: #666;
  background: transparent;
  font: inherit;
  font-size: .76rem;
  font-weight: 650;
  cursor: pointer;
}

.feedback-picker-back:hover {
  color: #111;
}

.feedback-picker-back svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feedback-correction-area.is-entering,
.feedback-target-field.is-entering,
.feedback-reason-field.is-entering,
.feedback-correction-summary.is-entering {
  animation: feedback-step-in 180ms ease both;
}

@keyframes feedback-step-in {
  from {
    opacity: 0;
    transform: translateX(7px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.feedback-types {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.feedback-types legend {
  margin-bottom: 12px;
}

.feedback-types__list,
.feedback-area-options,
.feedback-reason-options {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feedback-types label,
.feedback-area-options label,
.feedback-reason-options label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.feedback-types input,
.feedback-area-options input,
.feedback-reason-options input {
  appearance: none;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin: 0;
  border: 1px solid #8c8c88;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.feedback-types label > span,
.feedback-area-options .feedback-option-label,
.feedback-reason-options .feedback-option-label {
  color: #3f3f3f;
  font-size: .9rem;
  font-weight: 550;
  line-height: 1.3;
  transition: color 140ms ease;
}

.feedback-types label:hover > span,
.feedback-area-options label:hover .feedback-option-label,
.feedback-reason-options label:hover .feedback-option-label {
  color: #111;
}

.feedback-types input:checked + span,
.feedback-area-options input:checked ~ .feedback-option-label,
.feedback-reason-options input:checked ~ .feedback-option-label {
  color: #111;
  font-weight: 700;
}

.feedback-types input:checked,
.feedback-area-options input:checked,
.feedback-reason-options input:checked {
  border: 3px solid #fff;
  background: var(--orange);
  box-shadow: 0 0 0 1px var(--orange);
}

.feedback-types input:focus-visible,
.feedback-area-options input:focus-visible,
.feedback-reason-options input:focus-visible {
  outline: 3px solid rgba(0, 0, 0, .16);
  outline-offset: 2px;
}

.feedback-option-icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 7px;
  color: #555;
  background: #ecebe8;
  transition: color 130ms ease, background 130ms ease;
}

.feedback-option-icon svg,
.feedback-record-icon svg,
.feedback-summary-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feedback-area-options input:checked ~ .feedback-option-icon {
  color: var(--orange);
  background: #fff1e7;
}

.feedback-options-state {
  color: var(--muted);
  font-size: .84rem;
}

.feedback-record-items {
  display: grid;
  max-height: 440px;
  gap: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1px 5px 1px 1px;
  scrollbar-gutter: stable;
}

.feedback-record-item {
  position: relative;
  display: block;
  cursor: pointer;
  animation: feedback-record-in 180ms ease both;
  animation-delay: calc(var(--record-index) * 22ms);
}

@keyframes feedback-record-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feedback-record-item > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.feedback-record-item__content {
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid #d1cec9;
  border-radius: 8px;
  background: #fff;
  transition: border-color 130ms ease, background 130ms ease, box-shadow 130ms ease,
    transform 130ms ease;
}

.feedback-record-item__content::after {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-top: 1.5px solid #8a8883;
  border-right: 1.5px solid #8a8883;
  content: "";
  transform: rotate(45deg);
}

.feedback-record-item:hover .feedback-record-item__content {
  border-color: #aaa7a2;
  background: #faf9f7;
  transform: translateX(2px);
}

.feedback-record-item > input:checked + .feedback-record-item__content {
  border-color: var(--orange);
  background: #fffaf6;
  box-shadow: 0 0 0 1px var(--orange);
}

.feedback-record-item > input:focus-visible + .feedback-record-item__content {
  outline: 3px solid rgba(0, 0, 0, .16);
  outline-offset: 2px;
}

.feedback-record-item__mark {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dedbd6;
  border-radius: 8px;
  color: #555;
  background: #f1f0ed;
  font-size: .75rem;
  font-weight: 750;
}

.feedback-record-item__mark img,
.feedback-correction-summary__icon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 6px;
  object-fit: contain;
  background: #fff;
}

.feedback-record-item__mark[data-media="photo"] img,
.feedback-correction-summary__icon[data-media="photo"] img {
  padding: 0;
  object-fit: cover;
}

.feedback-record-icon,
.feedback-summary-icon {
  display: grid;
  place-items: center;
}

.feedback-record-item > input:checked + .feedback-record-item__content .feedback-record-item__mark {
  border-color: #ffc59b;
  color: var(--orange);
  background: #fff1e7;
}

.feedback-record-item__copy {
  display: grid;
  min-width: 0;
  flex: 1 1 auto;
  gap: 3px;
}

.feedback-record-item__copy small {
  width: fit-content;
  padding: 2px 6px;
  border-radius: 999px;
  color: #222;
  background: #ecebe8;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.25;
}

.feedback-record-item__copy strong {
  color: #171717;
  font-size: .9rem;
  line-height: 1.25;
}

.feedback-record-item__copy > span {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
}

.feedback-correction-summary {
  display: flex;
  min-height: 74px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #d1cec9;
  border-radius: 8px;
  background: #fff;
}

.feedback-correction-summary__icon {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  color: var(--orange);
  background: #fff1e7;
}

.feedback-correction-summary__copy {
  display: grid;
  min-width: 0;
  flex: 1 1 auto;
  gap: 2px;
}

.feedback-correction-summary__copy small {
  color: var(--muted);
  font-size: .69rem;
  font-weight: 650;
}

.feedback-correction-summary__copy strong {
  overflow: hidden;
  color: #171717;
  font-size: .88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feedback-correction-summary__copy > span {
  color: #555;
  font-size: .77rem;
}

.feedback-form .feedback-correction-summary > button {
  min-height: auto;
  flex: 0 0 auto;
  margin: 0;
  padding: 4px;
  border: 0;
  color: #555;
  background: transparent;
  font: inherit;
  font-size: .78rem;
  font-weight: 650;
  cursor: pointer;
}

.feedback-form .feedback-correction-summary > button:hover {
  color: #111;
}

.feedback-form textarea {
  min-height: 190px;
  padding: 13px;
  line-height: 1.55;
  resize: vertical;
}

.feedback-form input[type="text"]:focus,
.feedback-form input[type="search"]:focus,
.feedback-form textarea:focus {
  border-color: #222;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .08);
}

.feedback-form > button[type="submit"] {
  min-height: 50px;
  margin-top: 8px;
  border: 1px solid #202020;
  border-radius: 6px;
  color: #fff;
  background: #202020;
  font: inherit;
  font-size: .9rem;
  font-weight: 650;
  cursor: pointer;
}

.feedback-form > button[type="submit"]:disabled {
  cursor: wait;
  opacity: .58;
}

.feedback-form__status {
  margin: 0;
  font-size: .84rem;
  font-weight: 600;
}

.feedback-form__status:empty,
.feedback-form[hidden],
.feedback-success[hidden] {
  display: none;
}

.feedback-form__status[data-state="error"] {
  color: #a22b20;
}

.feedback-success h2 {
  margin: 0 0 8px;
  font-size: 1.7rem;
  letter-spacing: -.03em;
}

.feedback-success {
  grid-column: 2;
}

.feedback-success p {
  margin: 0;
  color: var(--muted);
}

.feedback-success button {
  margin-top: 22px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: #222;
  background: transparent;
  font: inherit;
  font-size: .88rem;
  font-weight: 650;
  cursor: pointer;
}

@media (max-width: 820px) {
  .feedback-content {
    display: block;
    width: min(100%, 680px);
  }

  .feedback-head {
    position: static;
    margin-bottom: 38px;
  }

  .feedback-success {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .feedback-main {
    padding-top: 48px;
  }

  .feedback-record-items {
    max-height: 360px;
  }

  .feedback-correction-summary {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feedback-company-search__chevron,
  .feedback-company-results,
  .feedback-company-result,
  .feedback-record-item {
    transition: none;
    animation: none;
  }

  .feedback-correction-area.is-entering,
  .feedback-target-field.is-entering,
  .feedback-reason-field.is-entering,
  .feedback-correction-summary.is-entering {
    animation: none;
  }
}
