:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: transparent;
  color: #10231c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: transparent;
}

.llh-intake[data-source="mesa"] {
  --llh-accent: #e6a91d;
  --llh-ink: #0b3832;
}

.llh-intake[data-source="gilbert"] {
  --llh-accent: #c85b39;
  --llh-ink: #123923;
}

.llh-intake[data-source="chandler-tempe"] {
  --llh-accent: #d929c7;
  --llh-ink: #082f21;
}

.llh-intake[data-source="queen-creek"] {
  --llh-accent: #c65b32;
  --llh-ink: #17381f;
}

button,
input,
select,
textarea {
  font: inherit;
}

.llh-shell {
  width: min(100%, 72rem);
  margin-inline: auto;
  padding: clamp(0.75rem, 2vw, 1.5rem);
}

.llh-card {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--llh-ink) 22%, white);
  border-radius: 1rem;
  background: #fffdf8;
  box-shadow: 0 1rem 3rem rgb(16 35 28 / 9%);
}

.llh-heading {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border-left: 0.4rem solid var(--llh-accent);
  background: color-mix(in srgb, var(--llh-ink) 96%, black);
  color: #fff;
}

.llh-brand {
  margin: 0 0 0.5rem;
  color: color-mix(in srgb, var(--llh-accent) 80%, white);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  max-width: 22ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 1.05;
}

.llh-heading > p:last-child {
  max-width: 60ch;
  margin: 0.8rem 0 0;
  color: #e8f0eb;
  line-height: 1.55;
}

.llh-form {
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.llh-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.25rem;
}

.llh-grid-wide,
.llh-photos {
  grid-column: 1 / -1;
}

.llh-field {
  min-width: 0;
}

.llh-field label,
.llh-photos legend {
  display: block;
  margin-bottom: 0.42rem;
  color: #10231c;
  font-weight: 750;
}

.llh-field label span {
  color: #4b5f57;
  font-size: 0.76rem;
  font-weight: 650;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.72rem 0.8rem;
  border: 1px solid #9eaaa4;
  border-radius: 0.45rem;
  background: #fff;
  color: #10231c;
}

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

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 0.2rem solid var(--llh-accent);
  outline-offset: 0.15rem;
}

[aria-invalid="true"] {
  border-color: #a32222;
  box-shadow: 0 0 0 1px #a32222;
}

.llh-help,
.llh-photos p,
.llh-fallback,
.llh-legal {
  margin: 0.4rem 0 0;
  color: #40554c;
  font-size: 0.9rem;
  line-height: 1.5;
}

.llh-grid > .llh-help {
  margin-top: -0.8rem;
}

.llh-photos {
  min-width: 0;
  margin: 0;
  padding: 1rem;
  border: 1px solid #c7cec9;
  border-radius: 0.65rem;
  background: #f6f6ef;
}

.llh-photos input[type="file"] {
  margin-top: 0.8rem;
  padding: 0.6rem;
  background: #fff;
}

.llh-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 1rem;
  font-weight: 700;
}

.llh-check input {
  width: 1.2rem;
  min-height: 1.2rem;
  margin: 0.12rem 0 0;
  accent-color: var(--llh-ink);
}

.llh-photo-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(9rem, 100%), 1fr));
  gap: 0.65rem;
  margin-top: 0.8rem;
}

.llh-photo-status {
  margin: 0.75rem 0 0;
  color: #28483c;
  font-size: 0.9rem;
  font-weight: 750;
}

.llh-photo-item {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  padding: 0.55rem;
  border: 1px solid #c7cec9;
  border-radius: 0.45rem;
  background: #fff;
}

.llh-photo-item img {
  width: 3rem;
  height: 3rem;
  border-radius: 0.25rem;
  object-fit: cover;
}

.llh-photo-item span {
  overflow-wrap: anywhere;
  font-size: 0.78rem;
}

.llh-photo-item button {
  min-height: 44px;
  grid-column: 1 / -1;
  justify-self: start;
  border: 0;
  background: transparent;
  color: #7d1717;
  font-weight: 750;
  text-decoration: underline;
  cursor: pointer;
}

.llh-submit {
  width: 100%;
  min-height: 3.25rem;
  margin-top: 1.25rem;
  padding: 0.8rem 1rem;
  border: 2px solid var(--llh-ink);
  border-radius: 0.45rem;
  background: var(--llh-accent);
  color: #071710;
  font-weight: 850;
  cursor: pointer;
}

.llh-submit:hover {
  filter: brightness(0.96);
}

.llh-submit[disabled] {
  cursor: wait;
  opacity: 0.7;
}

.llh-fallback a,
.llh-legal a,
.llh-errors a {
  color: #164f3d;
  font-weight: 750;
}

.llh-legal {
  padding-top: 1rem;
  border-top: 1px solid #d7dcd8;
  font-size: 0.8rem;
}

.llh-errors,
.llh-success {
  margin: 1rem clamp(1.25rem, 3vw, 2.25rem) 0;
  padding: 1rem;
  border-radius: 0.5rem;
}

.llh-errors {
  border: 2px solid #a32222;
  background: #fff1f1;
  color: #631010;
}

.llh-errors ul {
  margin-bottom: 0;
}

.llh-success {
  border: 2px solid #24734e;
  background: #edf9f2;
  color: #12462f;
  font-weight: 700;
}

.llh-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

[hidden] {
  display: none !important;
}

@media (max-width: 42rem) {
  .llh-shell {
    padding: 0.5rem;
  }

  .llh-card {
    border-radius: 0.65rem;
  }

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

  .llh-grid-wide,
  .llh-photos {
    grid-column: auto;
  }
}

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