:root {
  color-scheme: dark;
  --bg: #0a0c11;
  --panel: #12151c;
  --panel-2: #161a22;
  --panel-3: #1c212b;
  --line: rgba(255, 255, 255, .075);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #eef1f6;
  --soft: #b6bfcc;
  --muted: #8b93a3;
  --muted-2: #5a6472;
  --accent: #2f6bff;
  --accent-2: #7b3bff;
  --danger: #e05656;
  --warn: #e0a05a;
  --success: #17b877;
  --shadow: 0 30px 80px -40px rgba(0, 0, 0, .9);
  --font: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

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

body {
  overflow-x: hidden;
  background:
    radial-gradient(1100px 520px at 50% -8%, rgba(120, 140, 200, .12), transparent 64%),
    radial-gradient(720px 440px at 12% 30%, rgba(47, 107, 255, .08), transparent 58%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button,
label {
  -webkit-tap-highlight-color: transparent;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

::selection {
  background: rgba(47, 107, 255, .3);
}

.report-page {
  display: grid;
  min-height: 100vh;
  place-items: start center;
  padding: 44px 20px 72px;
}

.report-form {
  display: grid;
  width: min(680px, 100%);
  gap: 22px;
  animation: app-in .42s cubic-bezier(.22, 1, .36, 1);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.report-header {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.brand-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(140deg, #3b5bff, var(--accent-2));
  box-shadow: 0 12px 30px -10px rgba(80, 80, 255, .7);
}

.brand-icon svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.report-header h1,
.success-card h1 {
  margin: 0;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.12;
}

.report-header p:last-child {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.panel,
.success-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel) 96%, transparent);
  box-shadow: var(--shadow);
}

.panel {
  padding: 22px 24px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}

.label {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.section-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}

.required,
.field b {
  color: var(--danger);
  font-style: normal;
}

.choice-grid {
  display: grid;
  gap: 11px;
}

.product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-card {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 13px;
  min-height: 72px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel-2);
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.choice-card:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: var(--panel-3);
}

.choice-card input,
.tag-grid input {
  position: absolute;
  pointer-events: none;
  opacity: 0;
}

.choice-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: var(--panel-3);
  color: var(--muted);
  transition: all .16s ease;
}

.choice-card strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.choice-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.choice-card i {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.choice-card i::after {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  content: "";
}

.choice-card:has(input:checked) {
  border-color: var(--accent);
  background: rgba(47, 107, 255, .14);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, .18);
}

.choice-card:has(input:checked) .choice-icon,
.choice-card:has(input:checked) i {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.choice-card:has(input:checked) i::after {
  background: #fff;
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tag-grid label {
  position: relative;
  cursor: pointer;
}

.tag-grid span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--soft);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
  transition: all .16s ease;
}

.tag-grid span::before {
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--muted-2);
  content: "";
}

.tag-grid label:hover span {
  border-color: var(--line-strong);
  color: var(--text);
}

.tag-grid input:checked + span {
  border-color: rgba(47, 107, 255, .72);
  background: rgba(47, 107, 255, .14);
  color: #fff;
}

.tag-grid input:checked + span::before {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(47, 107, 255, .18);
}

.dropzone {
  display: grid;
  min-height: 142px;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: rgba(22, 26, 34, .8);
  color: var(--soft);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}

.dropzone.dragging,
.dropzone:hover {
  border-color: rgba(47, 107, 255, .75);
  background: rgba(47, 107, 255, .1);
}

.dropzone input {
  display: none;
}

.drop-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 8px;
  border-radius: 13px;
  background: var(--panel-3);
  color: var(--accent);
}

.dropzone strong {
  display: block;
  color: var(--text);
  font-weight: 800;
}

.dropzone small {
  color: var(--muted);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin-top: 14px;
}

.preview-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel-2);
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-item span {
  position: absolute;
  inset: auto 6px 6px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(10, 12, 17, .76);
  color: #fff;
  padding: 4px 7px;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fields-panel {
  display: grid;
  gap: 18px;
}

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

.field span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.field em {
  color: var(--muted-2);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.field small {
  color: var(--muted);
  font-size: 12.5px;
}

.field input,
.field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: var(--panel-2);
  color: var(--text);
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.field input {
  height: 46px;
  padding: 0 14px;
}

.field textarea {
  min-height: 112px;
  padding: 13px 15px;
  line-height: 1.5;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-2);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: #141924;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, .18);
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
}

.form-error {
  display: inline-flex;
  align-items: center;
  color: var(--warn);
  font-size: 13px;
  font-weight: 800;
}

.form-error[hidden] {
  display: none;
}

.submit-button,
.ghost-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 13px;
  cursor: pointer;
  font-weight: 800;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, opacity .16s ease;
}

.submit-button {
  margin-left: auto;
  border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  padding: 0 22px;
  box-shadow: 0 14px 34px -18px rgba(47, 107, 255, .9);
}

.submit-button svg {
  width: 18px;
  height: 18px;
}

.submit-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.submit-button:disabled {
  cursor: wait;
  opacity: .62;
  transform: none;
}

.success-card {
  width: min(520px, 100%);
  margin-top: 9vh;
  padding: 46px 36px;
  text-align: center;
  animation: app-in .42s cubic-bezier(.22, 1, .36, 1);
}

.success-card[hidden] {
  display: none;
}

.success-mark {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  margin: 0 auto 22px;
  border: 1px solid rgba(23, 184, 119, .4);
  border-radius: 50%;
  background: rgba(23, 184, 119, .12);
  animation: check-pop .5s cubic-bezier(.22, 1, .36, 1);
}

.success-mark svg {
  width: 36px;
  height: 36px;
  stroke: var(--success);
  stroke-width: 2.6;
}

.success-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}

.success-card strong {
  color: var(--text);
  font-family: var(--mono);
}

.ghost-button {
  margin-top: 26px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  padding: 0 20px;
}

.ghost-button:hover {
  border-color: rgba(255, 255, 255, .3);
}

@keyframes app-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes check-pop {
  0% {
    opacity: 0;
    transform: scale(.5);
  }

  60% {
    transform: scale(1.12);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 720px) {
  .report-page {
    padding: 26px 14px 42px;
  }

  .report-form {
    gap: 16px;
  }

  .report-header {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .report-header h1 {
    font-size: 23px;
  }

  .panel {
    padding: 18px 16px;
    border-radius: 16px;
  }

  .product-grid,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .choice-card {
    min-height: 68px;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .submit-button,
  .ghost-button {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 420px) {
  body {
    font-size: 14px;
  }

  .report-page {
    padding-right: 10px;
    padding-left: 10px;
  }

  .report-header p:last-child {
    font-size: 13px;
  }

  .choice-card {
    grid-template-columns: 36px minmax(0, 1fr) 18px;
    gap: 10px;
    padding: 12px;
  }

  .choice-icon {
    width: 36px;
    height: 36px;
  }

  .tag-grid span {
    min-height: 34px;
    padding: 0 12px;
  }

  .success-card {
    padding: 34px 22px;
  }
}
