/* Kanaloa Booking – ret farver og skrift via variablerne herunder */
.kb-booking {
  --kb-bg: #f9f8f4;
  --kb-surface: #ffffff;
  --kb-text: #1C244B;
  --kb-muted: #767a7f;
  --kb-line: #e6e2d8;
  --kb-accent: #1C244B;        /* knapper, valgte felter */
  --kb-accent-dark: #141833;   /* hover */
  --kb-accent-soft: #ebecf3;   /* ledige datoer, info */
  --kb-accent-text: #ffffff;
  --kb-error: #a4442f;
  --kb-radius: 14px;
  --kb-font: inherit;
  --kb-shadow: 0 1px 2px rgba(43, 47, 54, .04), 0 8px 24px rgba(43, 47, 54, .05);

  max-width: 720px;
  container: kb / inline-size; /* layoutet tilpasser sig kolonnens bredde, ikke skærmens */
  margin: 0 auto;
  font-family: var(--kb-font);
  color: var(--kb-text);
  line-height: 1.5;
  scroll-margin-top: 100px;
}
.kb-booking *, .kb-booking *::before, .kb-booking *::after { box-sizing: border-box; }
.kb-booking button { font: inherit; cursor: pointer; }
.kb-booking button:disabled { cursor: default; }
.kb-booking :focus-visible { outline: 2px solid var(--kb-accent); outline-offset: 3px; }
.kb-booking p { margin: 0; }

/* ---------- Trin ---------- */
.kb-steps { display: flex; list-style: none; margin: 0 0 28px; padding: 0; font-size: 13px; color: var(--kb-muted); }
.kb-steps li { flex: 1; display: flex; align-items: center; gap: 8px; margin: 0; position: relative; }
.kb-steps li:not(:last-child)::after { content: ""; flex: 1; height: 1px; background: var(--kb-line); margin: 0 10px; }
.kb-step-num {
  flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--kb-line); background: var(--kb-surface); font-size: 12px; font-weight: 600;
}
.kb-steps li.is-active { color: var(--kb-text); font-weight: 600; }
.kb-steps li.is-active .kb-step-num { background: var(--kb-accent); border-color: var(--kb-accent); color: var(--kb-accent-text); }
.kb-steps li.is-done .kb-step-num { background: var(--kb-accent-soft); border-color: var(--kb-accent-soft); color: var(--kb-accent-dark); }
.kb-steps li.is-done:not(:last-child)::after { background: var(--kb-accent); opacity: .4; }

.kb-title { margin: 0 0 18px; font-size: 1.6em; font-weight: 500; line-height: 1.2; letter-spacing: -.01em; }
.kb-note, .kb-loading { color: var(--kb-muted); font-size: 15px; }
.kb-label { margin: 28px 0 12px; font-weight: 600; font-size: 16px; }

/* ---------- Opsummering ("billet") ---------- */
.kb-ticket {
  margin: 0 0 24px; padding: 4px 18px; background: var(--kb-surface);
  border: 1px solid var(--kb-line); border-radius: var(--kb-radius);
}
.kb-ticket-row { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; font-size: 15px; }
.kb-ticket-row + .kb-ticket-row { border-top: 1px dashed var(--kb-line); }
.kb-ticket dt { color: var(--kb-muted); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.kb-ticket dd { margin: 0; font-weight: 500; }

/* ---------- Behandlinger ---------- */
.kb-cards { display: grid; gap: 12px; }
.kb-card {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%;
  padding: 22px 24px; text-align: left; background: var(--kb-surface); color: var(--kb-text);
  border: 1px solid var(--kb-line); border-radius: var(--kb-radius); box-shadow: var(--kb-shadow);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.kb-card:hover { border-color: var(--kb-accent); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(43, 47, 54, .08); }
.kb-card-text { display: grid; gap: 4px; }
.kb-card-title { font-size: 18px; font-weight: 600; }
.kb-card-meta { color: var(--kb-muted); font-size: 14px; }
.kb-card-side { display: flex; align-items: center; gap: 14px; flex: none; }
.kb-card-price { font-size: 17px; font-weight: 600; white-space: nowrap; }
.kb-card-arrow {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--kb-accent-soft); color: var(--kb-accent-dark); transition: background .2s, color .2s, transform .2s;
}
.kb-card:hover .kb-card-arrow { background: var(--kb-accent); color: var(--kb-accent-text); transform: translateX(2px); }
.kb-pay { margin-top: 16px; font-size: 14px; color: var(--kb-muted); text-align: center; }

/* ---------- Kalender ---------- */
.kb-picker { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 20px; align-items: start; }
.kb-cal-wrap { background: var(--kb-surface); border: 1px solid var(--kb-line); border-radius: var(--kb-radius); padding: 20px 18px 16px; box-shadow: var(--kb-shadow); }
.kb-cal-nav { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 14px; }
.kb-cal-month { font-weight: 600; font-size: 16px; }
.kb-cal-arrows { display: flex; gap: 6px; }
.kb-icon {
  display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0 0 2px;
  border: 1px solid var(--kb-line); border-radius: 50%; background: transparent; color: var(--kb-text);
  font-size: 18px; line-height: 1; transition: background .2s, border-color .2s;
}
.kb-icon:not(:disabled):hover { background: var(--kb-accent-soft); border-color: var(--kb-accent-soft); }
.kb-icon:disabled { opacity: .3; }
.kb-cal { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; text-align: center; }
.kb-cal-wd { font-size: 11px; color: var(--kb-muted); padding-bottom: 6px; text-transform: uppercase; letter-spacing: .06em; }
.kb-day {
  position: relative; display: grid; place-items: center; width: 100%; max-width: 40px; aspect-ratio: 1; margin: 0 auto; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: #b9b8b1; font-size: 14px; transition: background .15s, color .15s;
}
.kb-day.is-free { color: var(--kb-text); font-weight: 600; }
.kb-day.is-free::after {
  content: ""; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--kb-accent);
}
.kb-day.is-free:hover { background: var(--kb-accent-soft); }
.kb-day.is-selected, .kb-day.is-selected:hover { background: var(--kb-accent); color: var(--kb-accent-text); }
.kb-day.is-selected::after { background: var(--kb-accent-text); }

/* ---------- Tider ---------- */
.kb-times-col { padding-top: 6px; }
.kb-booking .kb-times-col .kb-label { margin: 0 0 12px; font-size: 15px; }
.kb-times-col.is-empty { padding-top: 18px; }
.kb-times { display: grid; gap: 10px; }
.kb-time {
  padding: 12px 8px; text-align: center; white-space: nowrap; font-weight: 500;
  border: 1px solid var(--kb-line); border-radius: 999px; background: var(--kb-surface); color: var(--kb-text);
  transition: background .2s, border-color .2s, color .2s;
}
.kb-time:hover { background: var(--kb-accent); border-color: var(--kb-accent); color: var(--kb-accent-text); }

@container kb (max-width: 560px) {
  .kb-picker { grid-template-columns: 1fr; gap: 16px; }
  .kb-times { grid-template-columns: repeat(3, 1fr); }
  .kb-times-col.is-empty { padding-top: 0; }
}

/* ---------- Formular ---------- */
.kb-form { display: grid; gap: 16px; }
.kb-field { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.kb-field input {
  width: 100%; padding: 13px 15px; font: inherit; font-size: 16px; font-weight: 400; color: var(--kb-text);
  background: var(--kb-surface); border: 1px solid var(--kb-line); border-radius: 10px; transition: border-color .2s, box-shadow .2s;
}
.kb-field input:focus { border-color: var(--kb-accent); box-shadow: 0 0 0 3px var(--kb-accent-soft); outline: none; }

.kb-info { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 10px; background: var(--kb-accent-soft); font-size: 14px; line-height: 1.55; }
.kb-info-icon {
  flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  background: var(--kb-accent); color: var(--kb-accent-text); font-size: 13px; font-weight: 700; font-style: italic; font-family: Georgia, serif;
}

.kb-terms { padding: 14px 16px; border: 1px solid var(--kb-line); border-radius: 10px; font-size: 14px; color: var(--kb-muted); display: grid; gap: 4px; }
.kb-terms-title { color: var(--kb-text); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px !important; }

.kb-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--kb-muted); cursor: pointer; }
.kb-consent input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--kb-accent); }
.kb-consent a { color: inherit; text-decoration: underline; }
.kb-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.kb-submit {
  padding: 16px 24px; border: 0; border-radius: 999px; background: var(--kb-accent); color: var(--kb-accent-text);
  font-weight: 600; font-size: 16px; letter-spacing: .01em; transition: background .2s;
}
.kb-submit:hover { background: var(--kb-accent-dark); }
.kb-submit:disabled { opacity: .6; }
.kb-error { margin: 0 0 12px; padding: 11px 15px; border-radius: 10px; background: #f7e9e5; color: var(--kb-error); font-size: 14px; }
.kb-error[hidden] { display: none; }

.kb-back { margin-top: 24px; padding: 0; border: 0; background: none; color: var(--kb-muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.kb-back:hover { color: var(--kb-text); }

/* ---------- Bekræftelse ---------- */
.kb-done { padding: 36px 28px 30px; background: var(--kb-surface); border: 1px solid var(--kb-line); border-radius: var(--kb-radius); box-shadow: var(--kb-shadow); text-align: center; display: grid; gap: 16px; justify-items: center; }
.kb-done .kb-title { margin: 0; }
.kb-done-check {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--kb-accent-soft); color: var(--kb-accent-dark); font-size: 26px; font-weight: 700;
}
.kb-ticket-done { width: 100%; margin: 4px 0 0; text-align: left; box-shadow: none; background: var(--kb-bg); }
.kb-done > p { font-size: 15px; max-width: 440px; }

/* ---------- Mobil ---------- */
@container kb (max-width: 480px) {
  .kb-title { font-size: 1.4em; }
  .kb-step-label { font-size: 12px; }
  .kb-steps li:not(:last-child)::after { margin: 0 6px; }
  .kb-steps li:not(.is-active) .kb-step-label { display: none; }
  .kb-ticket { padding: 2px 14px; }
  .kb-ticket-row { grid-template-columns: 80px 1fr; font-size: 14px; }
  .kb-card { padding: 18px; }
  .kb-card-arrow { display: none; }
  .kb-done { padding: 28px 18px 24px; }
  .kb-cal-wrap { padding: 16px 10px 12px; }
  .kb-day { max-width: 42px; }
  .kb-icon { width: 40px; height: 40px; }
  .kb-time { padding: 13px 6px; }
}

/* Marginer der ellers nulstilles af ".kb-booking p" */
.kb-booking .kb-pay { margin-top: 16px; }
.kb-step-label { white-space: nowrap; }

/* ---------- Beskyttelse mod temaets knap-styling (Hello Elementor gør knapper pink ved hover/fokus) ---------- */
.kb-booking button:hover, .kb-booking button:focus, .kb-booking button:active { background-color: transparent; color: inherit; text-decoration: none; }
.kb-booking .kb-card:hover, .kb-booking .kb-card:focus { background: var(--kb-surface); color: var(--kb-text); }
.kb-booking .kb-icon:hover, .kb-booking .kb-icon:focus { background: transparent; color: var(--kb-text); }
.kb-booking .kb-icon:not(:disabled):hover { background: var(--kb-accent-soft); border-color: var(--kb-accent-soft); }
.kb-booking .kb-day:hover, .kb-booking .kb-day:focus, .kb-booking .kb-day:active { background: transparent; color: #b9b8b1; }
.kb-booking .kb-day.is-free:hover, .kb-booking .kb-day.is-free:focus { background: var(--kb-accent-soft); color: var(--kb-text); }
.kb-booking .kb-day.is-selected, .kb-booking .kb-day.is-selected:hover, .kb-booking .kb-day.is-selected:focus { background: var(--kb-accent); color: var(--kb-accent-text); }
.kb-booking .kb-time:focus { background: var(--kb-surface); color: var(--kb-text); }
.kb-booking .kb-time:hover, .kb-booking .kb-time:active { background: var(--kb-accent); border-color: var(--kb-accent); color: var(--kb-accent-text); }
.kb-booking .kb-submit:hover, .kb-booking .kb-submit:focus, .kb-booking .kb-submit:active { background: var(--kb-accent-dark); color: var(--kb-accent-text); }
.kb-booking .kb-back:hover, .kb-booking .kb-back:focus { background: none; color: var(--kb-text); }
