:root {
  --ink: #1d1d1d;
  --paper: #fffdf5;
  --paper-strong: #fff7d6;
  --sand: #f5e3a8;
  --sky: #d7efff;
  --mint: #d2f3dc;
  --sun: #f6c74d;
  --sun-deep: #ec9d2e;
  --berry: #d96a56;
  --line: rgba(29, 29, 29, 0.14);
  --shadow: 0 18px 0 rgba(29, 29, 29, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Comic Sans MS", "Marker Felt", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.78), transparent 28%),
    radial-gradient(circle at 90% 18%, rgba(255, 232, 161, 0.7), transparent 20%),
    linear-gradient(180deg, #ffeab8 0%, #fef8ea 30%, #dff2ff 100%);
}

.support-page {
  position: relative;
  overflow-x: hidden;
}

.support-page::before,
.support-page::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 260px;
  height: 260px;
  border-radius: 42% 58% 53% 47%;
  background: rgba(255, 255, 255, 0.36);
  border: 3px solid rgba(29, 29, 29, 0.06);
  pointer-events: none;
  filter: blur(2px);
}

.support-page::before {
  top: -70px;
  right: -50px;
  transform: rotate(12deg);
}

.support-page::after {
  bottom: -80px;
  left: -30px;
  transform: rotate(-14deg);
}

.support-layout {
  min-height: 100vh;
  padding: 36px 20px 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.support-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 28px;
  width: min(1080px, 100%);
  padding: 28px;
  border: 3px solid var(--ink);
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(255, 253, 245, 0.94), rgba(255, 255, 255, 0.98)),
    var(--paper);
  box-shadow: var(--shadow);
}

.support-card::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 22px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 58%, rgba(255, 255, 255, 0.98) 0 15%, transparent 16%),
    radial-gradient(circle at 28% 38%, rgba(255, 255, 255, 0.98) 0 11%, transparent 12%),
    radial-gradient(circle at 71% 38%, rgba(255, 255, 255, 0.98) 0 11%, transparent 12%),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.98) 0 9%, transparent 10%),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.98) 0 9%, transparent 10%),
    linear-gradient(145deg, var(--sun) 0%, #ffd96e 100%);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 rgba(29, 29, 29, 0.08);
  transform: rotate(10deg);
}

.support-copy {
  position: relative;
  z-index: 1;
  padding: 10px 12px 10px 4px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 2px 2px 0 rgba(29, 29, 29, 0.14);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  transform: rotate(-2deg);
}

.support-kicker {
  margin: 24px 0 12px;
  color: var(--berry);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.support-title {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.4rem, 4vw, 4.3rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.support-lead {
  max-width: 56ch;
  margin: 20px 0 26px;
  font-size: 1.06rem;
  line-height: 1.65;
}

.tip-card {
  max-width: 36rem;
  padding: 18px 20px;
  border: 2px solid var(--ink);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(210, 243, 220, 0.94), rgba(255, 255, 255, 0.96));
  box-shadow: 0 8px 0 rgba(29, 29, 29, 0.06);
  transform: rotate(-1.2deg);
}

.tip-card__title {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.tip-card__list {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.7;
}

.support-fallback {
  margin: 24px 0 0;
  font-size: 0.98rem;
  line-height: 1.5;
}

.support-fallback a {
  color: var(--berry);
  font-weight: 800;
}

.form-shell {
  position: relative;
  z-index: 1;
  padding: 22px;
  border: 3px solid var(--ink);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 214, 0.86)),
    var(--paper-strong);
  box-shadow: 0 14px 0 rgba(29, 29, 29, 0.07);
}

.support-form {
  display: grid;
  gap: 16px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.label {
  font-size: 0.97rem;
  font-weight: 800;
}

.input {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 2px solid rgba(29, 29, 29, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font: inherit;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.input:focus {
  outline: none;
  border-color: var(--berry);
  box-shadow: 0 0 0 4px rgba(217, 106, 86, 0.16);
  transform: translateY(-1px);
}

.input--message {
  min-height: 170px;
  resize: vertical;
}

.submit-button {
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 1rem 1.2rem;
  background: linear-gradient(180deg, #f7cb55 0%, #f2b13e 100%);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 7px 0 rgba(29, 29, 29, 0.12);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease;
}

.submit-button:hover,
.submit-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 0 rgba(29, 29, 29, 0.12);
  filter: saturate(1.05);
}

.submit-button:focus-visible {
  outline: 3px solid rgba(29, 29, 29, 0.22);
  outline-offset: 2px;
}

.submit-button:disabled {
  cursor: wait;
  transform: none;
  filter: grayscale(0.05);
  opacity: 0.86;
}

.status-message {
  margin-top: 16px;
  padding: 14px 16px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  font-size: 0.97rem;
  line-height: 1.5;
}

.status-message--success {
  background: var(--mint);
}

.status-message--error {
  background: #ffe2d7;
}

@media (max-width: 900px) {
  .support-layout {
    padding: 18px 14px 32px;
  }

  .support-card {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 18px;
    border-radius: 28px;
  }

  .support-card::before {
    top: auto;
    bottom: 16px;
    right: 16px;
    width: 84px;
    height: 84px;
  }

  .support-copy {
    padding: 4px 2px 0;
  }

  .support-title {
    max-width: 14ch;
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .tip-card {
    transform: none;
  }

  .form-shell {
    padding: 18px;
  }
}
