.content-feedback {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 36px var(--page-pad) 72px;
}

.feedback-header {
  max-width: 760px;
  margin-bottom: 28px;
}

.feedback-header h1 {
  margin: 0 0 12px;
  color: var(--text-strong);
  font-size: clamp(26px, 2vw + 20px, 42px);
  line-height: 1.12;
  letter-spacing: 0;
}

.feedback-header p {
  margin: 0;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.6;
}

.feedback-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 44px;
  align-items: start;
}

.feedback-form {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.feedback-fields-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feedback-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.feedback-field label {
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 600;
}

.feedback-optional {
  color: #6b7280;
  font-size: 12px;
  font-weight: 400;
}

.feedback-field input,
.feedback-field select,
.feedback-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: var(--text-main);
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
}

.feedback-field input,
.feedback-field select {
  min-height: 44px;
  padding: 9px 11px;
}

.feedback-select-wrap {
  position: relative;
}

.feedback-select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 46px;
  cursor: pointer;
}

.feedback-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #334155;
  border-bottom: 2px solid #334155;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.feedback-field textarea {
  min-height: 170px;
  padding: 11px;
  resize: vertical;
}

.feedback-field input:focus,
.feedback-field select:focus,
.feedback-field textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(37, 99, 235, 0.13);
}

.feedback-field [aria-invalid="true"] {
  border-color: #dc2626;
}

.feedback-field-error {
  display: block;
  color: #b91c1c;
  font-size: 12px;
  line-height: 1.4;
}

.feedback-consent label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.5;
}

.feedback-consent input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  flex: 0 0 auto;
}

.feedback-consent .feedback-field-error {
  margin-top: 6px;
}

.feedback-submit {
  justify-self: start;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.feedback-submit:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

.feedback-submit:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.24);
  outline-offset: 2px;
}

.feedback-contact {
  padding-top: 4px;
}

.feedback-contact h2 {
  margin: 0 0 9px;
  color: var(--text-strong);
  font-size: 19px;
  line-height: 1.3;
}

.feedback-contact p {
  margin: 0 0 12px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.6;
}

.feedback-contact .protected-email {
  display: block;
  margin-bottom: 24px;
}

.feedback-contact .protected-email-link {
  font-size: 15px;
  font-weight: 700;
}

.feedback-contact .feedback-contact-note {
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  color: #6b7280;
  font-size: 13px;
}

.feedback-notice {
  margin: 0 0 24px;
  padding: 13px 15px;
  border: 1px solid;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
}

.feedback-notice-success {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.feedback-notice-error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.feedback-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 760px) {
  .content-feedback {
    padding-top: 26px;
  }

  .feedback-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .feedback-fields-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .feedback-contact {
    padding-top: 0;
  }
}

@media (max-width: 480px) {
  .feedback-form {
    padding: 20px 16px;
  }

  .feedback-submit {
    width: 100%;
  }
}
