@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Inter+Tight:wght@600&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.page-wrap {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* ── Header ── */
.header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.header-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bbb;
}

.header-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 48px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -1px;
  color: #111;
}

/* ── Form ── */
.form-wrap {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #aaa;
}

/* ── Table number pills ── */
.tables-checkbox-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.check-pill {
  cursor: pointer;
}

.check-pill input {
  display: none;
}

.check-pill span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 75px;
  height: 60px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 400;
  background: #f7f7f7;
  color: #555;
  border: 1.5px solid transparent;
  transition:
    background 0.12s,
    color 0.12s,
    border-color 0.12s;
  user-select: none;
}

.check-pill input:checked + span {
  background: #111;
  color: #fff;
  border-color: #111;
}

.check-pill:hover span {
  background: #efefef;
}

.check-pill input:checked + span:hover {
  background: #222;
}

/* ── Selects ── */
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

select {
  appearance: none;
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: #111;
  background: #f7f7f7
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23aaa' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat right 14px center;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.1s;
}

select:hover {
  background-color: #efefef;
}

select:focus {
  outline: none;
  box-shadow: 0 0 0 2px #111;
}

/* ── Go button ── */
.go-button {
  width: 100%;
  padding: 16px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition:
    background 0.1s,
    transform 0.08s;
  margin-top: 0.5rem;
}

.go-button:hover {
  background: #222;
}

.go-button:active {
  transform: scale(0.98);
}

.go-button:disabled {
  background: #ddd;
  color: #aaa;
  cursor: not-allowed;
  transform: none;
}

/* ── Segmented control ── */
.segmented {
  display: flex;
  background: #f7f7f7;
  border-radius: 10px;
  padding: 3px;
  gap: 0;
  position: relative;
}

.segment-slider {
  position: absolute;
  top: 3px;
  bottom: 3px;
  width: calc(100% / 3 - 3px);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.segment {
  flex: 1;
  padding: 8px 4px;
  font-size: 13px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  color: #888;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s;
  position: relative;
  z-index: 1;
}

.segment.active {
  color: #111;
}

/* ── Stepper ── */
.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f7f7f7;
  border-radius: 10px;
  padding: 6px;
  height: 44px;
}

.stepper-btn {
  width: 32px;
  height: 32px;
  font-size: 20px;
  line-height: 1;
  font-family: 'Inter', sans-serif;
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s;
}

.stepper-btn:hover {
  background: #ebebeb;
}

.stepper-value {
  font-size: 16px;
  font-weight: 500;
  color: #111;
  min-width: 28px;
  text-align: center;
}

/* ── Diagnosis toggle row ── */
.diagnosis-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f7f7f7;
  border-radius: 12px;
  padding: 12px 16px;
}

.diagnosis-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.diagnosis-title {
  font-size: 14px;
  font-weight: 500;
  color: #111;
}

.diagnosis-sub {
  font-size: 12px;
  color: #aaa;
}

/* ── Toggle switch ── */
.toggle-switch {
  cursor: pointer;
  flex-shrink: 0;
}

.toggle-switch input {
  display: none;
}

.toggle-track {
  display: block;
  width: 44px;
  height: 24px;
  background: #ddd;
  border-radius: 999px;
  position: relative;
  transition: background 0.2s;
}

.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.toggle-switch input:checked + .toggle-track {
  background: #111;
}

.toggle-switch input:checked + .toggle-track .toggle-thumb {
  transform: translateX(20px);
}

/* ── Locked state ── */
.js-lockable {
  transition: opacity 0.2s;
}

.js-lockable.locked {
  opacity: 0.35;
  pointer-events: none;
}

.footer {
  text-align: center;
  font-size: 0.8rem;
  color: #888;
}

.footer-link {
  color: inherit;
  text-decoration: underline;
}

.footer-link:hover {
  color: #555;
}
