:root {
  color-scheme: light;
  font: 100%/1.5 system-ui, sans-serif;
  color: #292322;
  background: #f8f5f1;
  --red: #951f25;
  --border: #d8ceca;
}
* { box-sizing: border-box; }
body { margin: 0; }
.wrap { width: min(100% - 2rem, 52rem); margin-inline: auto; }
.masthead { border-top: 5px solid var(--red); border-bottom: 1px solid var(--border); background: #fff; }
.masthead-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 6rem; }
.masthead p { margin: 0; font-weight: 750; line-height: 1.4; }
.masthead span { display: block; font-size: .85rem; color: #5b4e4b; font-weight: 500; }
.masthead img { width: 108px; height: auto; object-fit: contain; }
main { padding-block: clamp(1.5rem, 5vw, 3.25rem) 1.5rem; }
h1 { margin: 0; font-size: clamp(1.9rem, 5vw, 2.75rem); line-height: 1.13; letter-spacing: -.035em; }
.intro { color: #5b4e4b; margin: .6rem 0 1.4rem; }
form { padding: clamp(1rem, 4vw, 2rem); border-radius: .9rem; background: #fff; border: 1px solid var(--border); box-shadow: 0 10px 30px #57362b0a; }
fieldset { min-width: 0; padding: 0; border: 0; margin: 0; }
fieldset + fieldset { margin-top: 1.4rem; }
legend { font-weight: 750; color: #73171d; margin-bottom: .7rem; padding: 0; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.office { grid-template-columns: 1fr 1fr 1.55fr; }
.wide { grid-column: 1 / -1; }
label { display: block; min-width: 0; font-weight: 650; font-size: .94rem; }
select, input, textarea { display: block; font: inherit; color: inherit; width: 100%; min-height: 2.75rem; margin-top: .25rem; padding: .55rem .65rem; border: 1px solid #ad9f9a; border-radius: .4rem; background: #fff; font-weight: 450; }
textarea { resize: vertical; }
select:disabled { background: #f2eeea; color: #615651; }
.optional, .hint { color: #5b4e4b; font-weight: 450; }
.hint { display: block; margin-top: .35rem; font-size: .82rem; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem 1rem; margin-top: 1.4rem; border-top: 1px solid var(--border); padding-top: 1.1rem; }
button { font: inherit; font-weight: 700; background: var(--red); color: #fff; border: 0; border-radius: .4rem; padding: .65rem 1.15rem; cursor: pointer; }
button:hover:not(:disabled) { background: #76171c; }
button:disabled { background: #776a67; cursor: default; }
:focus-visible { outline: 3px solid #823019; outline-offset: 2px; }
#status { margin: 0; flex: 1 1 14rem; color: #5b4e4b; }
#status[data-kind="success"] { color: #215c38; }
#status[data-kind="error"] { color: #851921; }
footer { font-size: .75rem; color: #5b4e4b; padding-block: 0 1.5rem; }
footer a { color: inherit; }
@media (max-width: 600px) {
  .office { grid-template-columns: 1fr; }
  .masthead-inner { min-height: 5rem; }
  .masthead img { width: 88px; }
}
