/* ============================================================
   GD · BOKA r1 — JQ-anpassad bokningsflöde
   Split sidebar (ink + bild) + main panel (cream + hairlines)
   Spectral serif rubriker, Montserrat body, editorial linjer.
   ============================================================ */

.gd-boka {
	background: var(--gd-bg, #F0ECE2);
	color: var(--jq-ink, #15171B);
	padding: 0;
}

.gd-boka * { box-sizing: border-box; }

.gd-boka-fullbleed { margin: 0 !important; padding: 0 !important; }
.gd-boka-fullbleed .gd-boka-app {
	min-height: calc(100svh - var(--gd-nav-h, 80px));
}
.gd-boka-app {
	display: flex;
	min-height: 100svh;
	height: 100svh;
	background: var(--jq-bg, #F0ECE2);
	margin-block: 0;
}
@supports not (height: 100svh) {
	.gd-boka-app { height: calc(100vh - var(--gd-nav-h, 80px)); min-height: calc(100vh - var(--gd-nav-h, 80px)); }
}

/* ── ASIDE ─────────────────────────────────────────────── */
.gd-boka-aside {
	position: relative;
	width: 38%;
	min-width: 360px;
	background: var(--jq-ink, #15171B);
	color: var(--jq-cream, #F4F1EA);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 32px;
	padding: clamp(28px, 4vw, 60px);
}
.gd-boka-aside::before {
	content: ""; position: absolute; inset: 0; z-index: 0;
	background:
		linear-gradient(180deg, rgba(21,23,27,.35) 0%, rgba(21,23,27,.85) 60%, rgba(21,23,27,.95) 100%);
}
.gd-boka-aside > * { position: relative; z-index: 2; }
.gd-boka-aside-bg {
	position: absolute; inset: 0; z-index: 0;
	width: 100%; height: 100%; object-fit: cover;
	opacity: .55; filter: grayscale(.35) contrast(.95);
}

.gd-boka-top { display: flex; flex-direction: column; gap: 28px; }
.gd-boka-eyebrow-ink {
	font-size: 10px; font-weight: 600;
	letter-spacing: .34em; text-transform: uppercase;
	color: rgba(244,241,234,.65);
}
.gd-boka-back {
	display: none;
	align-items: center; gap: 10px;
	background: transparent; border: 0; padding: 0;
	color: var(--jq-cream, #F4F1EA);
	font-family: inherit;
	font-size: 10px; letter-spacing: .26em; text-transform: uppercase; font-weight: 600;
	cursor: pointer;
	opacity: .7; transition: opacity .2s ease, transform .3s var(--jq-ease, cubic-bezier(.16,1,.3,1));
	width: fit-content;
	min-height: 44px;
}
.gd-boka-back:hover, .gd-boka-back:focus-visible { opacity: 1; transform: translateX(-3px); outline: 0; }
.gd-boka-back:focus-visible { outline: 1px solid rgba(244,241,234,.45); outline-offset: 6px; }
.gd-boka-back svg { width: 12px; height: 12px; flex-shrink: 0; }
.gd-boka-back.is-show { display: inline-flex; }

.gd-boka-stepper {
	list-style: none; padding: 0; margin: 0;
	display: flex; flex-direction: column; gap: 12px;
}
.gd-boka-step {
	display: flex; align-items: baseline; gap: 16px;
	opacity: .32; transition: opacity .5s var(--jq-ease, cubic-bezier(.16,1,.3,1));
	padding-bottom: 12px;
	border-bottom: 1px solid rgba(244,241,234,.08);
}
.gd-boka-step:last-child { border-bottom: 0; }
.gd-boka-step.is-active { opacity: 1; }
.gd-boka-step.is-done   { opacity: .58; }
.gd-boka-step-n {
	font-family: var(--gd-serif, 'Spectral', Georgia, serif);
	font-style: italic; font-weight: 400;
	font-size: 1.6rem; line-height: 1;
	color: var(--jq-cream, #F4F1EA);
	min-width: 36px;
}
.gd-boka-step-l {
	font-size: 10px; letter-spacing: .26em; text-transform: uppercase; font-weight: 600;
}

.gd-boka-brand { display: flex; flex-direction: column; gap: 18px; }
.gd-boka-brand h1,
.gd-boka-brand h2 {
	font-family: var(--gd-serif, 'Spectral', Georgia, serif);
	font-weight: 400;
	font-size: clamp(1.6rem, 2.6vw, 2.3rem);
	line-height: 1.08;
	letter-spacing: -.01em;
	color: var(--jq-cream, #F4F1EA);
	margin: 0;
}
.gd-boka-brand h1 em,
.gd-boka-brand h2 em { font-style: italic; font-weight: 400; }
.gd-boka-brand ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.gd-boka-brand li {
	display: flex; align-items: center; gap: 12px;
	font-size: 13px; line-height: 1.4; color: rgba(244,241,234,.78);
}
.gd-boka-brand li svg { width: 14px; height: 14px; flex-shrink: 0; color: rgba(244,241,234,.5); }

/* "Så går besöket till" — 3 numrerade steg i aside */
.gd-boka-flow {
	list-style: none; padding: 0; margin: 4px 0 0;
	display: flex; flex-direction: column; gap: 0;
	border-top: 1px solid rgba(244,241,234,.10);
}
.gd-boka-flow li {
	display: grid;
	grid-template-columns: 40px 1fr;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid rgba(244,241,234,.10);
}
.gd-boka-flow-n {
	font-family: var(--gd-serif, 'Spectral', Georgia, serif);
	font-style: italic; font-weight: 400;
	font-size: 1.1rem; line-height: 1.1;
	color: rgba(244,241,234,.55);
}
.gd-boka-flow li > div { display: flex; flex-direction: column; gap: 3px; }
.gd-boka-flow strong {
	font-family: var(--gd-serif, 'Spectral', Georgia, serif);
	font-weight: 500; font-size: 1rem; line-height: 1.25;
	color: var(--jq-cream, #F4F1EA);
	letter-spacing: -.005em;
}
.gd-boka-flow span {
	font-size: 12.5px; line-height: 1.45;
	color: rgba(244,241,234,.62);
}

.gd-boka-foot-row {
	display: flex; flex-direction: column; gap: 6px;
	margin-top: 14px;
	padding-top: 16px;
	border-top: 1px solid rgba(244,241,234,.10);
}
.gd-boka-foot {
	font-size: 9px; letter-spacing: .3em; text-transform: uppercase;
	color: rgba(244,241,234,.4);
}
.gd-boka-foot-tel {
	font-family: var(--gd-serif, 'Spectral', Georgia, serif);
	font-size: 1.1rem; font-weight: 400;
	color: var(--jq-cream, #F4F1EA);
	text-decoration: none;
	transition: color .25s ease;
}
.gd-boka-foot-tel:hover { color: var(--jq-accent, #1E73BE); }

/* ── MAIN PANEL ────────────────────────────────────────── */
.gd-boka-main {
	flex: 1; min-width: 0;
	background: var(--jq-bg, #F0ECE2);
	display: flex; flex-direction: column;
}
.gd-boka-panel {
	flex: 1; overflow-y: auto;
	padding: clamp(32px, 4.4vw, 72px) clamp(24px, 4.6vw, 80px);
	display: flex; flex-direction: column; gap: 28px;
	animation: gd-boka-in .35s var(--jq-ease, cubic-bezier(.16,1,.3,1)) both;
}
@keyframes gd-boka-in {
	from { opacity: 0; transform: translateX(10px); }
	to   { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
	.gd-boka-panel { animation: none; }
}

.gd-boka-head { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.gd-boka-eyebrow {
	font-size: 10px; font-weight: 600;
	letter-spacing: .34em; text-transform: uppercase;
	color: var(--jq-stone, #6C7079);
}
.gd-boka-head h3 {
	font-family: var(--gd-serif, 'Spectral', Georgia, serif);
	font-weight: 400;
	font-size: clamp(2rem, 3.6vw, 3.2rem);
	line-height: 1.04; letter-spacing: -.012em;
	color: var(--jq-ink, #15171B);
	margin: 0;
}
.gd-boka-head h3 em { font-style: italic; font-weight: 400; }
.gd-boka-head p {
	font-size: 14.5px; line-height: 1.55;
	color: var(--jq-stone, #6C7079);
	margin: 4px 0 0; max-width: 56ch;
}

/* ── TREATMENT LIST ────────────────────────────────────── */
.gd-boka-tlist {
	list-style: none; padding: 0; margin: 0;
	border-top: 1px solid var(--jq-line, #D5D9E2);
	max-width: 720px;
}
.gd-boka-tc {
	display: flex; align-items: center; justify-content: space-between;
	gap: 24px; width: 100%;
	padding: 22px 4px;
	background: transparent; border: 0;
	border-bottom: 1px solid var(--jq-line, #D5D9E2);
	font-family: inherit; cursor: pointer; text-align: left;
	transition: padding-left .4s var(--jq-ease, cubic-bezier(.16,1,.3,1)), color .25s ease;
	min-height: 44px;
}
.gd-boka-tc:hover, .gd-boka-tc:focus-visible {
	padding-left: 18px; color: var(--jq-accent, #1E73BE);
	outline: 0;
}
.gd-boka-tc:focus-visible { outline: 1px solid var(--jq-accent, #1E73BE); outline-offset: 6px; }
/* boka.r1.js sätter tabindex=-1 + .focus() på h1/h2/h3 vid step-byte (a11y).
   Den programmatiska fokus ska inte trigga browser-default blå outline runt rubriken. */
.gd-boka-panel h1:focus,
.gd-boka-panel h2:focus,
.gd-boka-panel h3:focus,
.gd-boka-brand h1:focus,
.gd-boka-brand h2:focus { outline: none; }
.gd-boka-tn {
	font-family: var(--gd-serif, 'Spectral', Georgia, serif);
	font-weight: 500;
	font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.2;
	color: inherit;
	margin: 0 0 4px;
}
.gd-boka-tm {
	font-size: 11px; font-weight: 600;
	letter-spacing: .18em; text-transform: uppercase;
	color: var(--jq-stone, #6C7079);
}
.gd-boka-arr {
	flex-shrink: 0; width: 22px; height: 22px;
	color: var(--jq-stone, #6C7079);
	transition: transform .35s var(--jq-ease, cubic-bezier(.16,1,.3,1)), color .25s ease;
}
.gd-boka-tc:hover .gd-boka-arr,
.gd-boka-tc:focus-visible .gd-boka-arr { transform: translateX(8px); color: var(--jq-accent, #1E73BE); }

/* ── SLOT GRID ─────────────────────────────────────────── */
.gd-boka-sgrid {
	list-style: none; padding: 0; margin: 0;
	border-top: 1px solid var(--jq-line, #D5D9E2);
	max-width: 720px;
}
.gd-boka-scard {
	display: grid;
	grid-template-columns: 130px 1fr auto;
	gap: 24px; align-items: center;
	width: 100%;
	padding: 22px 4px;
	background: transparent; border: 0;
	border-bottom: 1px solid var(--jq-line, #D5D9E2);
	font-family: inherit; cursor: pointer; text-align: left;
	transition: padding-left .4s var(--jq-ease, cubic-bezier(.16,1,.3,1));
	min-height: 44px;
}
.gd-boka-scard:hover, .gd-boka-scard:focus-visible {
	padding-left: 18px; outline: 0;
}
.gd-boka-scard:focus-visible { outline: 1px solid var(--jq-accent, #1E73BE); outline-offset: 6px; }
.gd-boka-st {
	font-family: var(--gd-serif, 'Spectral', Georgia, serif);
	font-weight: 400;
	font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1;
	color: var(--jq-ink, #15171B);
	letter-spacing: -.01em;
}
.gd-boka-sd {
	display: block;
	font-size: 12px; letter-spacing: .06em;
	color: var(--jq-stone, #6C7079);
	text-transform: capitalize;
	line-height: 1.4;
}
.gd-boka-scg {
	display: block;
	margin-top: 2px;
	font-size: 10px; letter-spacing: .12em;
	text-transform: uppercase; font-weight: 600;
	color: var(--jq-stone, #6C7079);
}
.gd-boka-sbtn {
	background: var(--jq-ink, #15171B); color: var(--jq-cream, #F4F1EA);
	border: 0; padding: 0 22px;
	font-family: inherit;
	font-size: 10px; letter-spacing: .26em; text-transform: uppercase; font-weight: 600;
	height: 44px; min-width: 100px;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	transition: background .25s ease, transform .3s var(--jq-ease, cubic-bezier(.16,1,.3,1));
}
.gd-boka-scard:hover .gd-boka-sbtn,
.gd-boka-scard:focus-visible .gd-boka-sbtn { background: var(--jq-deep, #100F0D); }

/* ── FORM ──────────────────────────────────────────────── */
.gd-boka-pill {
	display: flex; align-items: flex-start; gap: 12px;
	background: rgba(21,23,27,.04);
	border: 1px solid var(--jq-line, #D5D9E2);
	padding: 16px 20px;
	font-size: 13.5px; line-height: 1.5;
	color: var(--jq-ink, #15171B);
	max-width: 580px;
}
.gd-boka-pill svg { color: var(--jq-accent, #1E73BE); flex-shrink: 0; margin-top: 2px; width: 16px; height: 16px; }
.gd-boka-pill strong { font-weight: 600; }

.gd-boka-form { display: grid; gap: 18px; max-width: 580px; }
.gd-boka-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.gd-boka-field { display: flex; flex-direction: column; gap: 8px; }
.gd-boka-field label {
	font-size: 10px; letter-spacing: .26em; text-transform: uppercase;
	color: var(--jq-stone, #6C7079); font-weight: 600;
}
.gd-boka-field input,
.gd-boka-field textarea {
	width: 100%; min-height: 44px;
	padding: 10px 0;
	background: transparent;
	border: 0; border-bottom: 1px solid var(--jq-line, #D5D9E2);
	border-radius: 0;
	font-family: var(--gd-serif, 'Spectral', Georgia, serif);
	font-size: 1.05rem; font-weight: 400;
	color: var(--jq-ink, #15171B);
	transition: border-color .2s ease;
}
.gd-boka-field input::placeholder,
.gd-boka-field textarea::placeholder { color: var(--jq-stone, #6C7079); opacity: .5; }
.gd-boka-field input:focus,
.gd-boka-field textarea:focus {
	outline: 0;
	border-bottom-color: var(--jq-ink, #15171B);
	border-bottom-width: 2px;
	margin-bottom: -1px;
}
.gd-boka-field textarea { min-height: 80px; resize: vertical; line-height: 1.5; }

.gd-boka-check {
	display: flex; align-items: flex-start; gap: 12px;
	cursor: pointer;
	min-height: 44px;
}
.gd-boka-check input[type="checkbox"] {
	width: 18px; height: 18px; margin: 3px 0 0;
	accent-color: var(--jq-ink, #15171B); flex-shrink: 0; cursor: pointer;
}
.gd-boka-check span {
	font-size: 13.5px; line-height: 1.5;
	color: var(--jq-stone, #6C7079);
	padding-top: 1px;
}
.gd-boka-check a {
	color: var(--jq-ink, #15171B); text-decoration: underline; text-underline-offset: 3px;
}

.gd-boka-submit {
	width: 100%; min-height: 56px;
	padding: 18px 32px;
	background: var(--jq-ink, #15171B);
	color: var(--jq-cream, #F4F1EA);
	border: 0; border-radius: 0;
	font-family: inherit;
	font-size: 11px; letter-spacing: .32em; text-transform: uppercase; font-weight: 600;
	cursor: pointer;
	transition: background .25s ease, transform .25s ease;
	margin-top: 8px;
}
.gd-boka-submit:hover:not(:disabled) { background: var(--jq-deep, #100F0D); transform: translateY(-1px); }
.gd-boka-submit:focus-visible { outline: 2px solid var(--jq-accent, #1E73BE); outline-offset: 4px; }
.gd-boka-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.gd-boka-err {
	background: rgba(220, 38, 38, .06);
	border: 1px solid rgba(220, 38, 38, .25);
	color: #B91C1C;
	padding: 12px 16px;
	font-size: 13.5px; line-height: 1.45;
	max-width: 580px;
}

.gd-boka-fine {
	font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
	color: var(--jq-stone, #6C7079);
	text-align: center; margin-top: 4px;
	opacity: .7;
}

/* ── SUCCESS ───────────────────────────────────────────── */
.gd-boka-success {
	display: flex; flex-direction: column; align-items: flex-start;
	gap: 8px;
	max-width: 640px;
}
.gd-boka-success-ic {
	width: 60px; height: 60px;
	border: 1px solid var(--jq-line, #D5D9E2);
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	margin-bottom: 18px;
	animation: gd-boka-pop .5s cubic-bezier(.16,1,.3,1) both;
}
@keyframes gd-boka-pop {
	0%   { transform: scale(.4); opacity: 0; }
	100% { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
	.gd-boka-success-ic { animation: none; }
}
.gd-boka-success-ic svg { width: 26px; height: 26px; color: var(--jq-accent, #1E73BE); }
.gd-boka-success h3 {
	font-family: var(--gd-serif, 'Spectral', Georgia, serif);
	font-weight: 400;
	font-size: clamp(2rem, 3.6vw, 2.8rem);
	line-height: 1.04; letter-spacing: -.012em;
	color: var(--jq-ink, #15171B);
	margin: 0 0 8px;
}
.gd-boka-success h3 em { font-style: italic; }
.gd-boka-success > p {
	font-size: 14.5px; line-height: 1.55;
	color: var(--jq-stone, #6C7079);
	margin: 0 0 28px; max-width: 50ch;
}
.gd-boka-bkc {
	display: flex; flex-direction: column; gap: 0;
	border-top: 1px solid var(--jq-line, #D5D9E2);
	width: 100%; max-width: 520px;
	margin: 0;
}
.gd-boka-br {
	display: grid; grid-template-columns: 140px 1fr; gap: 24px;
	padding: 16px 4px;
	border-bottom: 1px solid var(--jq-line, #D5D9E2);
	align-items: baseline;
	margin: 0;
}
.gd-boka-bl {
	font-size: 10px; letter-spacing: .26em; text-transform: uppercase; font-weight: 600;
	color: var(--jq-stone, #6C7079);
	margin: 0;
}
.gd-boka-bv {
	font-family: var(--gd-serif, 'Spectral', Georgia, serif);
	font-size: 1.05rem; font-weight: 400;
	color: var(--jq-ink, #15171B);
	margin: 0;
}
.gd-boka-rst {
	margin-top: 32px;
	background: transparent; border: 0; border-bottom: 1px solid var(--jq-ink, #15171B);
	padding: 10px 0;
	font-family: inherit;
	font-size: 10px; letter-spacing: .26em; text-transform: uppercase; font-weight: 600;
	color: var(--jq-ink, #15171B); cursor: pointer;
	align-self: flex-start;
	min-height: 44px;
}
.gd-boka-rst:focus-visible { outline: 2px solid var(--jq-accent, #1E73BE); outline-offset: 4px; }

/* ── SKELETON / FALLBACK ───────────────────────────────── */
.gd-boka-sk {
	background: linear-gradient(90deg, rgba(21,23,27,.04) 25%, rgba(21,23,27,.10) 50%, rgba(21,23,27,.04) 75%);
	background-size: 200% 100%;
	animation: gd-boka-shim 1.4s infinite linear;
	height: 76px;
	border-bottom: 1px solid var(--jq-line, #D5D9E2);
	list-style: none;
}
@keyframes gd-boka-shim {
	0% { background-position: 200% 0; } 100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
	.gd-boka-sk { animation: none; }
}

.gd-boka-empty {
	padding: 36px 4px;
	font-family: var(--gd-serif, 'Spectral', Georgia, serif);
	font-size: 1.05rem; line-height: 1.55;
	color: var(--jq-stone, #6C7079);
	list-style: none;
}
.gd-boka-empty strong {
	display: block; margin-bottom: 8px;
	font-family: var(--gd-serif, 'Spectral', Georgia, serif);
	font-size: 1.4rem; font-weight: 500;
	color: var(--jq-ink, #15171B);
}
.gd-boka-empty a { color: var(--jq-ink, #15171B); }

/* ── MOBILE ────────────────────────────────────────────── */
@media (max-width: 860px) {
	.gd-boka-app { flex-direction: column; min-height: auto; height: auto; }
	.gd-boka-aside {
		width: 100%; min-width: 0;
		padding: 22px 18px;
	}
	.gd-boka-aside::before {
		background: linear-gradient(180deg, rgba(21,23,27,.7) 0%, rgba(21,23,27,.92) 100%);
	}
	.gd-boka-top { gap: 14px; }
	.gd-boka-stepper { display: none; }
	.gd-boka-brand ul, .gd-boka-flow, .gd-boka-foot-row { display: none; }
	.gd-boka-brand h2 { font-size: 1.35rem; }
	.gd-boka-foot { display: none; }
	.gd-boka-panel { padding: 28px 20px; gap: 22px; }
	.gd-boka-row2 { grid-template-columns: 1fr; gap: 14px; }
	.gd-boka-scard {
		grid-template-columns: 1fr;
		gap: 8px;
		padding: 18px 4px;
	}
	.gd-boka-sbtn {
		justify-self: start;
		margin-top: 6px;
	}
	.gd-boka-br { grid-template-columns: 110px 1fr; gap: 14px; }
	.gd-boka-tc { padding: 18px 4px; }
}

/* ── Quiz-CTA i tid-steget (konsultation → gratis via quiz) ──── */
.gd-boka-quiz-cta {
	display: flex; align-items: flex-start; gap: 12px;
	margin: 0 0 16px; padding: 14px 16px; border-radius: 12px;
	background: color-mix(in srgb, var(--jq-accent, #1E73BE) 7%, #fff);
	border: 1px solid color-mix(in srgb, var(--jq-accent, #1E73BE) 25%, transparent);
	font-size: 14px; line-height: 1.5; color: var(--jq-ink, #15171B);
}
.gd-boka-quiz-ic {
	flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: var(--jq-accent, #1E73BE); color: #fff; font-size: 14px; line-height: 1;
}
.gd-boka-quiz-link {
	display: inline-block; margin-top: 6px; font-weight: 700;
	color: var(--jq-accent, #1E73BE); text-decoration: none;
}
.gd-boka-quiz-link:hover { text-decoration: underline; }

/* Quiz-hint i behandlingslistan (Konsultation → gratis) */
.gd-boka-thint {
	display: inline-flex; align-items: center; gap: 5px;
	margin-top: 6px; font-size: 12px; font-weight: 600;
	color: var(--jq-accent, #1E73BE);
}
.gd-boka-thint span { font-size: 11px; }
