/* 110.dk/call - the booking page. Tokens, fonts, the margin rule, the beam button and the footer
   come from /site.css (owned by the homepage); only what this page adds lives here. */

.call { min-height: 100svh; display: flex; flex-direction: column; }
.call header.site { padding-top: clamp(1.25rem, 3.5vh, 2.75rem); }
.call .mark { text-decoration: none; line-height: 3rem; }

/* ---------- layout: what the call is on the left, the booking on the right; stacked on phones ---------- */
.call-main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vh, 3rem);
  padding-top: clamp(1rem, 4vh, 3rem);
  padding-bottom: clamp(3rem, 8vh, 5rem);
}
@media (min-width: 960px) {
  .call-main {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
  }
  .intro { position: sticky; top: clamp(2rem, 8vh, 5rem); }
}

/* ---------- the call, in three lines ---------- */
.intro h1 {
  font-size: clamp(2.3rem, 4.6vw, 4rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
  max-width: 12ch;
  overflow-wrap: break-word;   /* only when huge text leaves no room for "30-minute" */
  padding: 0 0 1.1rem;
}
.intro .lead-text {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.5;
  max-width: 28em;
  margin-bottom: 1.5rem;
}
.facts { list-style: none; max-width: 28em; }
.facts li {
  position: relative;
  padding: 0.8rem 0 0.8rem 1.4rem;
  border-top: 1px solid var(--feint);
}
.facts li:last-child { border-bottom: 1px solid var(--feint); }
.facts li::before {
  content: '';
  position: absolute;
  left: 0; top: 1.45rem;
  width: 0.55rem; height: 2px;
  background: var(--rule);
}

/* ---------- the booking ---------- */
.book { max-width: 36rem; }
.step { border: 0; min-width: 0; margin-bottom: 2.25rem; }
.step legend {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.6rem;
  width: 100%;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.step .n {
  display: inline-grid;
  place-items: center;
  width: 1.7rem; height: 1.7rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.95rem;
  font-weight: 500;
  transform: translateY(-0.12em);
}
.step .tz { margin-left: auto; font-size: 0.9rem; font-weight: 400; color: var(--ink-soft); letter-spacing: 0; }

.state { color: var(--ink-soft); padding: 0.75rem 0; }
.state .fallback { color: var(--ink); text-decoration-color: var(--rule); text-underline-offset: 4px; }

/* days and times: real radio buttons, drawn as large tiles */
.days, .times { display: grid; gap: 0.5rem; }
.days { grid-template-columns: repeat(auto-fill, minmax(6.2rem, 1fr)); margin-bottom: 1rem; }
.times { grid-template-columns: repeat(auto-fill, minmax(5.2rem, 1fr)); }
.day, .time, .seg label { position: relative; display: block; cursor: pointer; }
.day input, .time input, .seg input {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0; margin: 0;
  cursor: pointer;
}
.day span, .time span, .seg span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
  min-height: 3.25rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid rgba(20, 21, 25, 0.22);
  border-radius: 12px;
  background: #fff;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
  line-height: 1.2;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.day span b { font-weight: 600; }
.day:hover span, .time:hover span, .seg label:hover span { border-color: var(--ink); }
.day input:checked + span, .time input:checked + span, .seg input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.day input:focus-visible + span, .time input:focus-visible + span, .seg input:focus-visible + span {
  outline: 2px solid var(--rule);
  outline-offset: 2px;
}
.days { padding-bottom: 1rem; border-bottom: 1px solid var(--feint); }

.none-work {
  margin-top: 1rem;
  padding: 0.6rem 0;
  min-height: 2.75rem;
  border: 0;
  background: none;
  font: inherit;
  font-size: 1rem;
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: var(--feint);
  text-underline-offset: 4px;
  cursor: pointer;
}
.none-work:hover { color: var(--ink); text-decoration-color: var(--rule); }
.none-work:focus-visible { outline: 2px solid var(--rule); outline-offset: 3px; }
.none-work[aria-expanded="true"] { display: none; }
.when { margin-top: 1rem; }

/* ---------- fields ---------- */
.fld { margin-bottom: 1.1rem; }
.fld label, .fld .label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.opt { font-weight: 400; color: var(--ink-soft); font-size: 0.9em; margin-left: 0.3em; }
.fld input[type=text], .fld input[type=email], .fld input[type=tel], .fld textarea {
  display: block;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(20, 21, 25, 0.28);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1.125rem;   /* 18px: phones do not zoom in on focus, older eyes read it */
  line-height: 1.4;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.fld textarea { resize: vertical; min-height: 5.5rem; }
.fld input::placeholder, .fld textarea::placeholder { color: rgba(20, 21, 25, 0.4); }
.fld input:focus, .fld textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(199, 62, 44, 0.22);
}
.fld [aria-invalid="true"] { border-color: var(--rule); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.hint { margin-top: 0.35rem; font-size: 0.95rem; color: var(--ink-soft); }
.err { margin-top: 0.35rem; font-size: 0.95rem; color: var(--rule); font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- send ---------- */
.submit { display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem; }
button.beam {
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  max-width: 100%;
}
button.beam .beam-ring, button.beam .beam-face { width: 100%; justify-content: center; }
.sending button.beam { cursor: progress; opacity: 0.75; }
.consent { font-size: 0.95rem; color: var(--ink-soft); }
.consent a { color: var(--ink); text-decoration-color: var(--rule); text-underline-offset: 3px; }
#err-send { margin-top: 0; }
@media (max-width: 600px) {
  button.beam { width: 100%; }
}

/* ---------- booked ---------- */
.done { padding: 1rem 0 2rem; outline: none; }
.done-mark { width: 3rem; height: 2px; background: var(--rule); margin-bottom: 1.5rem; }
.done h2 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 0.75rem; }
.done-when { font-size: 1.3rem; font-weight: 500; margin-bottom: 0.75rem; }
.done-when:empty { display: none; }
.done p { max-width: 30em; }

/* ---------- footer ---------- */
.call footer.site { margin-top: auto; }
.day input:checked + span b { color: inherit; }   /* site.css paints b in ink, which vanished on the dark tile */
.running { max-width: 28em; margin-top: 1.75rem; font-size: 0.95rem; color: var(--ink-soft); }
.running h2 { font-size: 0.85rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.5rem; }
.running p { margin-bottom: 0.6rem; }
.running b { display: block; color: var(--ink); font-weight: 500; }
