/* Shared styles for the booking and upload pages */
.flow { padding: 3.5rem 0 5rem; }
.flow .wrap { max-width: 52rem; }
.flow h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 0.6rem;
}
.flow .sub { color: var(--muted); margin: 0 0 2.25rem; font-size: 1.1rem; max-width: 38rem; }

.step-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--river);
  margin: 2.25rem 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.step-label .n {
  display: grid; place-items: center;
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--river); color: #fff; font-size: 0.8rem;
}

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.card-choice {
  text-align: left;
  font: inherit;
  color: inherit;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.25s var(--ease-out);
}
.card-choice:hover { border-color: #d6c3b8; transform: translateY(-2px); box-shadow: var(--shadow-1); }
.card-choice[aria-pressed="true"] { border-color: var(--river); box-shadow: 0 0 0 3px rgba(90, 2, 1, 0.14); }
.card-choice strong { display: block; font-size: 1.08rem; }
.card-choice .mins { display: inline-block; margin: 0.25rem 0 0.4rem; font-size: 0.85rem; font-weight: 600; color: var(--river); }
.card-choice p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.45; }

.days { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.25rem 0.1rem 0.75rem; scroll-snap-type: x mandatory; }
.day {
  flex: none;
  scroll-snap-align: start;
  font: inherit;
  min-width: 5.6rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--text);
  cursor: pointer;
  text-align: center;
  line-height: 1.25;
}
.day small { display: block; color: var(--muted); font-size: 0.78rem; }
.day[aria-pressed="true"] { background: var(--river); border-color: var(--river); color: #fff; }
.day[aria-pressed="true"] small { color: rgba(255, 255, 255, 0.8); }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); gap: 0.55rem; }
.slot {
  font: inherit;
  font-weight: 600;
  padding: 0.7rem 0.5rem;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--river-deep);
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.slot:hover { border-color: var(--river); }
.slot[aria-pressed="true"] { background: var(--river); border-color: var(--river); color: #fff; }

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: var(--shadow-1);
}
.summary {
  display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap;
  padding: 0.9rem 1.1rem; border-radius: 12px;
  background: var(--seaglass-soft); color: var(--river-deep); font-weight: 600; margin-bottom: 1.25rem;
}
.field select {
  width: 100%; font: inherit; padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--mist); color: var(--text);
}
.radio-row { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.radio-row label { display: inline-flex; gap: 0.45rem; align-items: center; font-weight: 500; }
.radio-row input { accent-color: var(--river); width: 1.1rem; height: 1.1rem; }

.empty, .loading { color: var(--muted); padding: 1rem 0; }
.done {
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.done .check {
  width: 4rem; height: 4rem; margin: 0 auto 1.25rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--river); color: #fff;
}
.done h2 { font-family: var(--display); font-weight: 400; font-size: 2rem; margin: 0 0 0.5rem; }
.done p { color: var(--muted); margin: 0.25rem auto; max-width: 30rem; }

/* Upload page */
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.doc-row {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.1rem;
}
.doc-row.is-done { border-color: rgba(90, 2, 1, 0.35); }
.doc-state {
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  border: 2px solid var(--line); display: grid; place-items: center; color: #fff;
}
.is-done .doc-state { background: var(--river); border-color: var(--river); }
.doc-row strong { display: block; }
.doc-row .meta { color: var(--muted); font-size: 0.88rem; }
.doc-row .meta.err { color: #8f2a1d; font-weight: 600; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.progress { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 0.45rem; }
.progress i { display: block; height: 100%; width: 0; background: var(--river); transition: width 0.2s; }
.secure-note {
  display: flex; gap: 0.75rem; align-items: flex-start;
  margin-top: 2rem; padding: 1rem 1.15rem; border-radius: 14px;
  background: var(--seaglass-soft); color: var(--river-deep); font-size: 0.95rem;
}
.secure-note svg { flex: none; width: 1.3rem; height: 1.3rem; margin-top: 0.1rem; }

@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .panel { padding: 1.25rem; }
  .doc-row { grid-template-columns: 2rem minmax(0, 1fr); }
  .doc-row .file-btn { grid-column: 1 / -1; justify-self: stretch; }
}
