:root {
  color-scheme: light;
  font:
    16px/1.5 "Segoe UI",
    Arial,
    sans-serif;
  color: #183747;
  background: #f0f5f5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  background: #113747;
  color: white;
  font-weight: 650;
  padding: 1.1rem max(1.25rem, calc((100% - 46rem) / 2));
  letter-spacing: 0.015em;
}
main {
  width: min(calc(100% - 2.2rem), 46rem);
  margin: 2rem auto 4rem;
}
.title,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}
.title h1 {
  margin: 0;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.15;
}
.badge {
  color: #644500;
  background: #fff0bf;
  border: 1px solid #cea349;
  border-radius: 1rem;
  padding: 0.13rem 0.65rem;
  font-size: 0.85rem;
  font-weight: 750;
}
.intro,
.privacy,
small {
  color: #425d6a;
}
form,
section {
  background: white;
  border: 1px solid #c7d6da;
  border-radius: 12px;
  padding: clamp(1.1rem, 4vw, 2rem);
}
fieldset {
  min-width: 0;
  margin: 0 0 1.15rem;
  padding: 0;
  border: 0;
}
#inputs {
  margin: 0;
}
legend,
summary {
  font-weight: 700;
}
legend {
  width: 100%;
  border-bottom: 1px solid #d6e2e3;
  padding-bottom: 0.35rem;
  margin-bottom: 0.55rem;
  font-size: 1.13rem;
}
p {
  margin: 0.5rem 0 0.9rem;
}
fieldset > button.secondary {
  margin-bottom: 1.2rem;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
label {
  display: block;
  font-weight: 600;
}
input:not([type="checkbox"]),
select {
  display: block;
  width: 100%;
  min-height: 42px;
  padding: 0.45rem 0.55rem;
  border: 1px solid #809ba7;
  border-radius: 5px;
  background: white;
  color: inherit;
  font: inherit;
}
input[type="checkbox"] {
  width: 1.12rem;
  height: 1.12rem;
  accent-color: #126866;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.check input {
  flex-shrink: 0;
  margin-top: 0.2rem;
}
button {
  cursor: pointer;
  background: #0c6866;
  color: white;
  border: 1px solid #0c6866;
  border-radius: 6px;
  padding: 0.55rem 0.9rem;
  font:
    600 1rem "Segoe UI",
    Arial,
    sans-serif;
  min-height: 42px;
}
button.secondary {
  color: #174c5a;
  background: #fff;
  border-color: #97afb8;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: #075d71;
  text-underline-offset: 3px;
}
.actions {
  align-items: end;
}
details {
  border: 1px solid #d2e0e2;
  border-radius: 7px;
  padding: 0.65rem 0.8rem;
  margin: 0.7rem 0;
}
summary {
  cursor: pointer;
}
details .grid {
  margin-top: 0.6rem;
}
#filelist {
  padding: 0;
  list-style: none;
}
#filelist li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  border-bottom: 1px solid #d8e1e3;
  padding: 0.3rem 0;
  overflow-wrap: anywhere;
}
#filelist button {
  background: none;
  color: #075d71;
  border: 0;
  text-decoration: underline;
}
.error {
  color: #8f3319;
  font-weight: 600;
}
.error:empty {
  margin: 0;
}
.check + .error {
  margin-top: 0.6rem;
}
button[type="submit"] {
  margin-top: 0.7rem;
}
*:focus-visible {
  outline: 3px solid #087c87;
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 530px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .actions {
    gap: 0.5rem;
  }
}
