:root {
  color-scheme: light;
  --ink: #141414;
  --quiet: #535353;
  --paper: #ddd;
  --page-inset: max(1.35rem, 4.35vw);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button, input, textarea {
  font: inherit;
}

a {
  color: inherit;
  text-underline-offset: .25em;
}

:focus-visible {
  outline: 2px solid #1458b8;
  outline-offset: .22rem;
}

.repair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 6.4vw, 6rem);
  padding: clamp(2.7rem, 5vw, 4.2rem) var(--page-inset) clamp(2.5rem, 4.5vw, 4.3rem);
}

.repair-intro h1 {
  margin: 0 0 .9rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
}

.repair-intro p {
  max-width: 26ch;
  margin: 0;
  font-size: clamp(1.38rem, 2vw, 1.7rem);
  line-height: 1.35;
}

form {
  display: grid;
  align-content: start;
  gap: 1.1rem;
  padding-top: 2.15rem;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: .3rem;
  padding: 0;
}

.name-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}

.field {
  display: grid;
  gap: .28rem;
  min-width: 0;
}

.field > label span,
#attachment-label span {
  color: var(--quiet);
}

input:not([type="hidden"], [type="file"]),
textarea {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--ink);
  border-radius: 1.4rem;
  padding: .54rem .9rem;
  color: inherit;
  background: transparent;
}

textarea {
  min-height: 3.15rem;
  resize: vertical;
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.file-target {
  display: grid;
  min-height: 7rem;
  place-content: center;
  justify-items: center;
  gap: .15rem;
  padding: .75rem 1rem;
  border: 1px dashed #535353;
  border-radius: 1.15rem;
  text-align: center;
  cursor: pointer;
}

.file-target:hover {
  background: #e9e9e9;
}

.file-input:focus-visible + .file-target {
  outline: 2px solid #1458b8;
  outline-offset: .22rem;
}

.file-target .file-plus {
  display: grid;
  width: 2.05rem;
  height: 2.05rem;
  place-items: center;
  margin-bottom: .15rem;
  border-radius: 50%;
  color: var(--ink);
  background: #eee;
  font-size: 1.35rem;
  line-height: 1;
}

#file-name {
  color: var(--ink);
  overflow-wrap: anywhere;
}

#file-description {
  font-size: .875rem;
}

.file-status {
  margin: 0;
  color: #8e1818;
}

.file-status:empty {
  display: none;
}

.send {
  justify-self: start;
  min-height: 3.45rem;
  padding: .8rem 2.05rem;
  border: 1px solid #000;
  border-radius: 3rem;
  background: #000;
  color: #fff;
  text-transform: uppercase;
  cursor: pointer;
}

.send:hover {
  background: #303030;
}

.send:disabled {
  opacity: .65;
  cursor: default;
}

.hero {
  position: relative;
  display: grid;
  min-height: clamp(25rem, 46vw, 37rem);
  place-items: center;
  isolation: isolate;
  padding: 3.25rem var(--page-inset);
  overflow: hidden;
  text-align: center;
  color: #fff;
  background: #1d201e;
}

.hero img,
.hero::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero img {
  z-index: -2;
  object-fit: cover;
  object-position: 50% 47%;
}

.hero::before {
  z-index: -1;
  background: rgba(0, 0, 0, .54);
  content: "";
}

.hero h2,
.footer p {
  margin: 0;
  font-family: Impact, "Arial Narrow", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
}

.hero h2 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
}

.hero p {
  margin: .7rem auto 0;
  font-size: clamp(1rem, 1.4vw, 1.22rem);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .85rem 1.5rem;
  padding: 2.4rem var(--page-inset);
  color: #fff;
  background: #121212;
}

.footer p {
  font-size: clamp(1.6rem, 3.4vw, 2.45rem);
}

.footer a {
  overflow-wrap: anywhere;
}

.confirmation {
  max-width: 46rem;
  margin: 0 auto;
  padding: 5rem var(--page-inset);
}

.confirmation h1 {
  margin: 0 0 .8rem;
  line-height: 1.12;
}

@media (max-width: 700px) {
  .repair {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.65rem;
  }

  form {
    padding-top: 0;
  }
}

@media (max-width: 355px) {
  .name-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}
