/* =========================================================
   SQLServerSpecialist.nl — workshops.css
   Workshops, the booking steps, the offer page, the confirmation
   page and the sales portal. Colours and type come from site.css.
   ========================================================= */

/* ---------- facts beside the page title ---------- */
.ws-facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--paper); }
.ws-facts div { padding: 18px 20px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ws-facts div:nth-child(2n) { border-right: 0; }
.ws-facts div:nth-last-child(-n+2) { border-bottom: 0; }
.ws-facts dt { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.ws-facts dd { margin: 0; font-size: 17px; font-weight: 600; color: var(--heading); }
.ws-facts dd small { display: block; font-weight: 400; font-size: 14px; color: var(--slate); margin-top: 3px; }
@media (max-width: 480px) { .ws-facts { grid-template-columns: 1fr; } .ws-facts div { border-right: 0; } .ws-facts div:nth-last-child(2) { border-bottom: 1px solid var(--line); } }

/* ---------- the workshops ---------- */
.ws-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ws-topic { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 8px; padding: 26px 26px 22px; display: grid; gap: 12px; align-content: start; scroll-margin-top: 96px; }
.ws-topic h3 { font-size: 23px; }
.ws-topic > p { margin: 0; color: var(--slate); font-size: 15.5px; }
.ws-topic .checklist { font-size: 15px; gap: 7px; }
.ws-topic .textlink { margin-top: 6px; font-size: 15px; }
@media (max-width: 1000px) { .ws-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ws-topics { grid-template-columns: 1fr; } }

/* ---------- booking steps ---------- */
.ws-book { display: grid; gap: 22px; }
.ws-book h2 { margin-bottom: 4px; }
.ws-step { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 12px; }
.ws-step legend { padding: 0; margin-bottom: 12px; font-family: var(--font-display); font-weight: 600; font-size: 21px; color: var(--heading); display: flex; align-items: center; gap: 12px; }
.ws-step legend .n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--btn); color: #fff; font-family: var(--font-mono); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; }
.ws-sub { margin: 4px 0 0; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.ws-options { display: grid; gap: 10px; }
.ws-option, .ws-days button, .ws-times button, .ws-seats label {
  font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--radius); cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.ws-option { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 16px; text-align: left; width: 100%; }
.ws-option strong { display: block; color: var(--heading); }
.ws-option small { display: block; color: var(--slate); font-size: 14px; }
.ws-option .left { flex: none; font-size: 13.5px; font-weight: 600; color: var(--ok); }
.ws-option[disabled] { cursor: not-allowed; opacity: .55; }
.ws-option[disabled] .left { color: var(--muted); }
.ws-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.ws-days button { padding: 9px 6px 8px; text-align: center; line-height: 1.2; }
.ws-days .dow { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ws-days .dom { display: block; font-family: var(--font-display); font-weight: 700; font-size: 23px; color: var(--heading); }
.ws-days .mon { display: block; font-size: 13px; color: var(--slate); }
.ws-times { display: flex; flex-wrap: wrap; gap: 8px; min-height: 46px; align-items: center; }
.ws-times button { padding: 10px 18px; font-family: var(--font-mono); font-size: 15px; }
.ws-times .hint { color: var(--muted); font-size: 15px; }
.ws-option:hover:not([disabled]), .ws-days button:hover, .ws-times button:hover, .ws-seats label:hover { border-color: var(--accent); }
.ws-option[aria-pressed="true"], .ws-days button[aria-pressed="true"], .ws-times button[aria-pressed="true"] { border-color: var(--accent); background: var(--tint); box-shadow: inset 0 0 0 1px var(--accent); }
.ws-days button[aria-pressed="true"] .dow, .ws-days button[aria-pressed="true"] .mon { color: var(--accent); }
/* the three ways to book: plan and pay, buy now and plan later, plan with a licence key */
.ws-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ws-ways label { position: relative; display: grid; gap: 4px; align-content: start; padding: 14px 16px; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.ws-ways label:hover { border-color: var(--accent); }
.ws-ways input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.ws-ways strong { color: var(--heading); font-size: 16.5px; }
.ws-ways small { color: var(--slate); font-size: 14px; line-height: 1.4; }
.ws-ways label:has(input:checked) { border-color: var(--accent); background: var(--tint); box-shadow: inset 0 0 0 1px var(--accent); }
.ws-ways label:has(input:checked) strong { color: var(--accent); }
.ws-ways label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 720px) { .ws-ways { grid-template-columns: 1fr; } }
/* licence keys: where they are typed, and what each one is */
#w-keys { font-family: var(--font-mono); font-size: 15px; min-height: 0; }
.ws-count { max-width: 260px; }
.ws-keys { display: grid; gap: 8px; }
.ws-key { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding: 10px 14px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface-2); font-size: 15px; }
.ws-key code { font-family: var(--font-mono); font-size: 13.5px; color: var(--heading); background: none; padding: 0; overflow-wrap: anywhere; }
.ws-key[data-kind="ok"] { background: var(--ok-bg); border-color: var(--ok); }
.ws-key[data-kind="warn"] { background: var(--warn-bg); border-color: var(--warn); }
.ws-key[data-kind="err"] { background: var(--crit-bg); border-color: var(--crit); }
.ws-keylist { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14.5px; }
.ws-keylist code { font-family: var(--font-mono); font-size: 13px; overflow-wrap: anywhere; }
.ws-seats { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-seats label { position: relative; min-width: 62px; padding: 10px 16px; text-align: center; font-weight: 600; }
.ws-seats input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.ws-seats label:has(input:checked) { border-color: var(--accent); background: var(--tint); box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); }
.ws-seats label:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.ws-seats label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.ws-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 28px; align-items: end; }
@media (max-width: 600px) { .ws-row { grid-template-columns: 1fr; } }

/* ---------- what you are about to buy ---------- */
.ws-summary { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 8px; padding: 20px 24px; }
.ws-summary dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 22px; font-size: 16px; }
.ws-summary dt { color: var(--muted); }
.ws-summary dd { margin: 0; color: var(--heading); font-weight: 500; }
.ws-summary dd small { display: block; font-weight: 400; color: var(--slate); font-size: 14px; }
.ws-summary .total { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.ws-summary .total > span { color: var(--slate); font-size: 15px; }
.ws-summary .total strong { font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--heading); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ws-summary .total strong small { font-family: var(--font-body); font-weight: 400; font-size: 14px; color: var(--muted); margin-left: 6px; }
.ws-check { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; cursor: pointer; }
.ws-check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--btn); }
.ws-notice { border-radius: 6px; padding: 12px 16px; font-size: 15.5px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink); }
.ws-notice[data-kind="warn"] { background: var(--warn-bg); border-color: var(--warn); }
.ws-notice[data-kind="ok"] { background: var(--ok-bg); border-color: var(--ok); }
.ws-notice[data-kind="err"] { background: var(--crit-bg); border-color: var(--crit); }
.ws-notice p { margin: 0; }
.ws-notice p + p { margin-top: 6px; }

/* ---------- the offer a sales partner sends ---------- */
.ws-offer { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.ws-offer h1 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 16px; }
.ws-offer h2 { font-size: 24px; margin: 30px 0 12px; }
.ws-quote { margin: 22px 0 0; padding: 16px 20px; background: var(--tint); border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0; }
.ws-quote p { margin: 0; white-space: pre-line; }
.ws-quote cite { display: block; font-style: normal; font-size: 14px; color: var(--slate); margin-top: 8px; }
.ws-trainer { display: flex; gap: 16px; align-items: center; margin-top: 28px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.ws-trainer img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.ws-trainer strong { display: block; font-family: var(--font-display); font-size: 20px; color: var(--heading); }
.ws-trainer span { font-size: 15px; color: var(--slate); }
.ws-ticket { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: 8px; box-shadow: var(--shadow); padding: 26px; display: grid; gap: 18px; position: sticky; top: 96px; }
.ws-ticket h2 { font-size: 22px; margin: 0; }
.ws-ticket dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px 18px; font-size: 15.5px; }
.ws-ticket dt { color: var(--muted); }
.ws-ticket dd { margin: 0; color: var(--heading); font-weight: 500; }
.ws-ticket dd small { display: block; font-weight: 400; color: var(--slate); font-size: 13.5px; }
.ws-ticket select { font: inherit; padding: 6px 10px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.ws-ticket .total { padding: 14px 0; border-block: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ws-ticket .total > span { color: var(--slate); font-size: 15px; }
.ws-ticket .total strong { font-family: var(--font-display); font-weight: 700; font-size: 32px; color: var(--heading); white-space: nowrap; }
.ws-ticket .total strong small { font-family: var(--font-body); font-weight: 400; font-size: 13.5px; color: var(--muted); margin-left: 6px; }
.ws-ticket .form { gap: 12px; }
.ws-ticket .btn { width: 100%; }
.ws-ticket .hold { font-size: 14px; color: var(--slate); margin: 0; display: flex; gap: 8px; align-items: flex-start; }
.ws-ticket .hold::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); margin-top: .45em; }
@media (max-width: 960px) { .ws-offer { grid-template-columns: 1fr; } .ws-ticket { position: static; } }
.ws-state { max-width: 720px; }
.ws-state h1 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 16px; }

/* ---------- after paying ---------- */
.ws-done { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.ws-done h1 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 14px; }
.ws-done h2 { font-size: 24px; margin: 34px 0 6px; }
.ws-people { display: grid; gap: 10px; margin: 14px 0; }
.ws-people .row { display: grid; grid-template-columns: 26px 1fr 1.2fr; gap: 10px; align-items: center; }
.ws-people .row > span { font-family: var(--font-mono); font-size: 14px; color: var(--muted); }
.ws-people input { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--radius); padding: 10px 12px; min-height: 44px; }
.ws-people input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
@media (max-width: 900px) { .ws-done { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ws-people .row { grid-template-columns: 26px 1fr; } .ws-people .row input:last-child { grid-column: 2; } }

/* ---------- sales portal ---------- */
.sp-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; }
.sp-top h1 { font-size: clamp(32px, 4vw, 46px); }
.sp-who { font-size: 15px; color: var(--slate); text-align: right; }
.sp-who b { color: var(--heading); font-weight: 600; }
.sp-kpis { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 28px 0 0; }
.sp-kpis li { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
.sp-kpis span { display: block; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.sp-kpis strong { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--heading); font-variant-numeric: tabular-nums; }
@media (max-width: 800px) { .sp-kpis { grid-template-columns: 1fr 1fr; } }
.sp-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin: 34px 0 28px; }
.sp-tabs button { font: inherit; font-weight: 600; font-size: 16px; color: var(--slate); background: transparent; border: 0; border-bottom: 3px solid transparent; padding: 12px 16px; margin-bottom: -1px; cursor: pointer; }
.sp-tabs button:hover { color: var(--accent); }
.sp-tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.sp-panel[hidden] { display: none; }
.sp-panel > h2, .sp-grid h2 { font-size: 28px; margin-bottom: 8px; }
.sp-panel > h3 { font-size: 21px; margin: 30px 0 10px; }
.sp-panel > p { color: var(--slate); max-width: 70ch; }
.sp-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 960px) { .sp-grid { grid-template-columns: 1fr; } }
.sp-result { background: var(--surface); border: 1px solid var(--accent); border-radius: 8px; padding: 22px; display: grid; gap: 14px; box-shadow: var(--shadow-soft); }
.sp-result h3 { margin: 0; font-size: 22px; }
.sp-result p { margin: 0; color: var(--slate); font-size: 15.5px; }
.sp-link { display: flex; gap: 8px; }
.sp-link input { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 13.5px; padding: 10px 12px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.sp-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.sp-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 720px; }
.sp-table th, .sp-table td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.sp-table th { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--surface-2); white-space: nowrap; }
.sp-table tr:last-child td { border-bottom: 0; }
.sp-table td small { display: block; color: var(--slate); font-size: 13px; }
.sp-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sp-table .acts { white-space: nowrap; }
.sp-table .acts button { font: inherit; font-size: 13.5px; font-weight: 600; color: var(--accent); background: none; border: 0; padding: 0; margin-right: 12px; cursor: pointer; }
.sp-table .acts button:hover { text-decoration: underline; }
.sp-empty { padding: 22px; color: var(--slate); font-size: 15.5px; }
.sp-badge { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.sp-badge--open { color: var(--accent); background: var(--tint); }
.sp-badge--paid { color: var(--ok); background: var(--ok-bg); }
.sp-badge--off { color: var(--muted); background: var(--surface-2); }
.sp-badge--warn { color: var(--warn); background: var(--warn-bg); }
.sp-inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 12px 0 0; }
.sp-inline .field { min-width: 150px; flex: 1; }
.sp-inline .field--sm { flex: 0 0 120px; min-width: 110px; }
.sp-status { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.sp-status li { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; font-size: 14.5px; }
.sp-status b { display: block; color: var(--heading); }
.sp-status li[data-ok="false"] { border-color: var(--warn); background: var(--warn-bg); }
.sp-kit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sp-kit .aside-card h3 { margin: 0; }
.sp-kit pre { margin: 0; white-space: pre-wrap; font-family: var(--font-body); font-size: 15px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; }
@media (max-width: 800px) { .sp-kit { grid-template-columns: 1fr; } }
.sp-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--panel); color: #fff; padding: 12px 20px; border-radius: 6px; font-size: 15px; box-shadow: var(--shadow); z-index: 80; }
.sp-toast[hidden] { display: none; }
