:root {
  --bg: #f3efe6;
  --panel: #fffaf0;
  --panel-strong: #fff4dc;
  --text: #202018;
  --muted: #736b5c;
  --line: #dfd3bd;
  --brand: #1f6f5b;
  --brand-dark: #164b40;
  --accent: #d77738;
  --error: #b42318;
  --success: #227447;
  --shadow: 0 20px 60px rgba(73, 54, 28, 0.14);
  font-family:
    "Trebuchet MS",
    "Microsoft YaHei",
    "PingFang SC",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(215, 119, 56, 0.14), transparent 30rem),
    radial-gradient(circle at bottom right, rgba(31, 111, 91, 0.12), transparent 28rem),
    linear-gradient(135deg, #fbf4e6 0%, var(--bg) 50%, #e7efe7 100%);
}

button,
input,
textarea {
  font: inherit;
}

.feedback-page {
  width: min(680px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 40px 0;
}

.feedback-card {
  position: relative;
  border: 1px solid rgba(223, 211, 189, 0.9);
  border-radius: 28px;
  background: rgba(255, 250, 240, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.feedback-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.hero {
  padding: 32px 36px 20px;
}

.logo {
  width: fit-content;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fffaf0;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.08em;
  box-shadow: 0 14px 26px rgba(31, 111, 91, 0.26);
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.hero-copy {
  margin-top: 24px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.hero-copy p:last-child,
.form-note p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.feedback-form {
  padding: 0 36px 34px;
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 9px;
}

.field span {
  color: var(--brand-dark);
  font-size: 0.95rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  outline: none;
  background: rgba(255, 255, 255, 0.68);
  color: var(--text);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

input {
  height: 52px;
  padding: 0 18px;
}

textarea {
  min-height: 148px;
  padding: 16px 18px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(31, 111, 91, 0.12);
}

.captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 152px;
  gap: 14px;
  align-items: end;
}

.captcha-code {
  height: 52px;
  border: 0;
  background: none;
  /* border-radius: 18px; */
  /* color: var(--brand-dark); */
  /* background: */
    /* linear-gradient(135deg, rgba(31, 111, 91, 0.12), rgba(215, 119, 56, 0.16)), */
    /* var(--panel-strong); */
  /* cursor: pointer; */
  /* font-weight: 900; */
  /* letter-spacing: 0.22em; */
  /* box-shadow: inset 0 0 0 1px rgba(31, 111, 91, 0.16); */
  overflow: hidden;
}

.captcha-code:disabled,
.submit-button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.captcha-code img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.form-message {
  min-height: 22px;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-message.is-error {
  color: var(--error);
}

.form-message.is-success {
  color: var(--success);
}

.submit-button {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 20px;
  color: #fffaf0;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 16px 34px rgba(31, 111, 91, 0.26);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(31, 111, 91, 0.32);
}

.submit-button:disabled:hover {
  transform: none;
  box-shadow: 0 16px 34px rgba(31, 111, 91, 0.26);
}

.form-note {
  margin-top: 2px;
  padding: 18px;
  border: 1px solid rgba(223, 211, 189, 0.85);
  border-radius: 20px;
  background: rgba(255, 244, 220, 0.58);
}

.form-note h2 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

@media (max-width: 860px) {
  .feedback-page {
    padding: 28px 0;
  }
}

@media (max-width: 560px) {
  .feedback-page {
    width: min(100% - 20px, 1120px);
    padding: 10px 0;
  }

  .feedback-card {
    border-radius: 24px;
  }

  .hero,
  .feedback-form {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-copy {
    margin-top: 22px;
  }

  .captcha-row {
    grid-template-columns: 1fr;
  }

  .captcha-code {
    width: 100%;
  }
}
