:root {
  --bg: #f4f1e8;
  --text: #17231f;
  --muted: #68746f;
  --surface: #ffffff;
  --line: #dce2dc;
  --green: #267455;
  --green-dark: #16372d;
  --gold: #c88b30;
  --shadow: 0 22px 56px rgba(20, 35, 29, .16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  width: min(980px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 48px;
}

.resource-select-page main {
  width: min(1320px, calc(100% - 28px));
}

.hero {
  min-height: 590px;
  display: flex;
  align-items: end;
  padding: 28px;
  border-radius: 8px;
  background: linear-gradient(rgba(22, 55, 45, .18), rgba(22, 55, 45, .82)), url("https://images.unsplash.com/photo-1504280390367-361c6d9f38f4?auto=format&fit=crop&w=1600&q=80");
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
  color: #fff;
}

.hero-content {
  max-width: 640px;
  padding-bottom: 10px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #edf7ef;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(44px, 12vw, 86px);
  line-height: .96;
}

p {
  margin-top: 0;
  color: inherit;
  font-size: 19px;
  line-height: 1.45;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 13px 18px;
  border-radius: 8px;
  font-weight: 900;
}

.button.primary {
  background: var(--green);
  color: #fff;
}

.button.secondary {
  background: #fff;
  color: var(--green-dark);
  border: 1px solid var(--line);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.steps article,
.notice,
.status-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.steps article {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 16px;
}

.steps strong {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
}

.notice {
  display: grid;
  gap: 5px;
  margin-top: 14px;
  padding: 18px;
}

.notice span,
.status-card span,
.status-card p {
  color: var(--muted);
}

.status-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.form-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: start;
  padding-top: 34px;
}

.form-intro {
  position: sticky;
  top: 28px;
  padding: 28px;
  border-radius: 8px;
  background: var(--green-dark);
  color: #fff;
  box-shadow: var(--shadow);
}

.checkin-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.checkin-form label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-weight: 850;
}

.checkin-form input,
.checkin-form textarea,
.checkin-form select {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
}

.checkin-form textarea {
  resize: vertical;
}

.checkbox-row {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.checkbox-row input {
  width: 22px;
  min-height: 22px;
  order: -1;
}

.field-error,
.form-errors {
  color: #a53f31;
  font-weight: 800;
}

.status-page .eyebrow {
  color: var(--green);
}

.status-card {
  padding: 24px;
}

.status-card.subtle {
  box-shadow: none;
}

.status-card strong {
  display: block;
  margin: 4px 0 18px;
  font-size: 34px;
}

.code {
  display: inline-grid;
  min-width: 150px;
  min-height: 82px;
  place-items: center;
  border-radius: 8px;
  background: var(--green-dark);
  color: #fff;
  font-size: 42px;
  font-weight: 950;
  letter-spacing: .12em;
}

.code.muted {
  background: #e5ebe6;
  color: var(--muted);
}

.small-copy {
  margin: 14px 0 0;
  font-size: 15px;
}

.soft-line {
  width: 100%;
  margin: 20px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.plan-page {
  grid-template-columns: 1fr;
  gap: 16px;
}

.plan-page .form-intro {
  position: static;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

.plan-page .form-intro h1 {
  font-size: clamp(38px, 7vw, 64px);
}

.plan-page .form-intro p {
  color: var(--muted);
  font-weight: 800;
}

.plan-form {
  gap: 18px;
  padding: 16px;
}

.plan-view {
  overflow: auto;
  max-height: 76vh;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.plan-canvas {
  position: relative;
  width: min(100%, 1040px);
  min-width: 720px;
  margin: 0 auto;
}

.plan-canvas img {
  display: block;
  width: 100%;
}

.plan-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.plan-marker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan-marker span {
  display: grid;
  min-width: 34px;
  min-height: 24px;
  place-items: center;
  padding: 3px 7px;
  border: 1px solid rgba(22, 55, 45, .55);
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 950;
  box-shadow: 0 5px 14px rgba(20, 35, 29, .18);
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.plan-marker:hover span {
  transform: translateY(-1px);
  border-color: var(--green);
  box-shadow: 0 9px 22px rgba(20, 35, 29, .24);
}

.plan-marker input:checked + span {
  border-color: var(--green-dark);
  background: #f6d38a;
  color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(200, 139, 48, .3), 0 9px 22px rgba(20, 35, 29, .24);
}

.resource-detail {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf7;
}

.resource-detail strong {
  font-size: 22px;
}

.resource-detail dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.resource-detail dl div {
  display: grid;
  grid-template-columns: minmax(120px, .45fr) 1fr;
  gap: 12px;
}

.resource-detail dt {
  color: var(--muted);
  font-weight: 800;
}

.resource-detail dd {
  margin: 0;
  font-weight: 900;
}

.resource-photo {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 8px;
}

.empty-plan {
  position: absolute;
  inset: 18px;
  display: grid;
  place-items: center;
  margin: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

@media (max-width: 760px) {
  .hero {
    min-height: 560px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .form-page {
    grid-template-columns: 1fr;
  }

  .form-intro {
    position: static;
  }

  .plan-form {
    padding: 12px;
  }

  .plan-canvas {
    min-width: 680px;
  }

  .actions .button {
    width: 100%;
  }
}
