:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --accent: #d8ee28;
  --muted: #6b6b6b;
  --border: #cfcfcf;
  --error: #b42318;
  --success: #176b38;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--white);
  color: var(--black);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 18px;
}

.review-card {
  width: min(760px, 100%);
  border: 3px solid var(--black);
  border-top: 12px solid var(--accent);
  background: var(--white);
  box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 48px);
}

.logo {
  display: block;
  width: min(460px, 100%);
  height: auto;
  margin: 0 auto 34px;
}

.heading {
  margin-bottom: 28px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 10px;
  background: var(--accent);
  color: var(--black);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.heading > p:last-child {
  max-width: 600px;
  margin: 18px auto 0;
  color: #3f3f3f;
  line-height: 1.6;
}

.review-form {
  display: grid;
  gap: 22px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

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

label {
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  border: 2px solid var(--black);
  border-radius: 0;
  background: var(--white);
  color: var(--black);
  padding: 14px 15px;
  outline: none;
  transition: box-shadow 150ms ease, border-color 150ms ease;
}

textarea {
  resize: vertical;
  min-height: 170px;
  line-height: 1.5;
}

input:focus,
textarea:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 4px rgba(216, 238, 40, 0.65);
}

input:user-invalid,
textarea:user-invalid {
  border-color: var(--error);
}

.field-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.78rem;
}

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

button {
  min-height: 56px;
  border: 3px solid var(--black);
  border-radius: 0;
  background: var(--black);
  color: var(--white);
  padding: 14px 22px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

button:hover:not(:disabled),
button:focus-visible:not(:disabled) {
  background: var(--accent);
  color: var(--black);
}

button:active:not(:disabled) {
  transform: translateY(1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.75;
}

.button-loader {
  display: none;
  width: 18px;
  height: 18px;
  margin-left: 10px;
  border: 3px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: middle;
  animation: spin 700ms linear infinite;
}

button.is-loading .button-loader {
  display: inline-block;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  text-align: center;
  font-weight: 700;
  line-height: 1.4;
}

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

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

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 620px) {
  .page-shell {
    padding: 20px 12px;
  }

  .review-card {
    padding: 24px 18px 28px;
    border-width: 2px;
    border-top-width: 9px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .logo {
    margin-bottom: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
