/* TGK Kursusbooking – frontend. Farver følger klubbens grønne (#006f5b). */
:root {
	--tgk-green: #006f5b;
	--tgk-green-dark: #00523f;
	--tgk-green-light: #e8f3f0;
	--tgk-amber: #b45309;
	--tgk-red: #b42318;
	--tgk-border: #d5dcd8;
	--tgk-radius: 10px;
	--tgk-shadow: 0 1px 2px rgba(16, 40, 30, .06), 0 8px 24px rgba(16, 40, 30, .07);
	--tgk-shadow-hover: 0 2px 4px rgba(16, 40, 30, .08), 0 14px 32px rgba(16, 40, 30, .12);
}

/* ---------- Fremhævet menuknap: giv menupunktet CSS-klassen "tgk-menu-cta" ---------- */
#page .tgk-menu-cta > a,
.tgk-menu-cta > a {
	background: var(--tgk-green);
	border-radius: 999px;
	padding: 8px 20px !important;
	margin-left: 8px;
	box-shadow: 0 4px 14px rgba(0, 111, 91, .35);
	transition: background .2s, transform .2s;
}
.tgk-menu-cta > a,
.tgk-menu-cta > a * { color: #fff !important; font-weight: 700; }
.tgk-menu-cta > a:hover { background: var(--tgk-green-dark); transform: translateY(-1px); }

/* ---------- Knapper ---------- */
.tgk-btn {
	display: inline-block;
	background: var(--tgk-green);
	color: #fff !important;
	border: 0;
	border-radius: 999px;
	padding: 12px 26px;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
	transition: background .2s, transform .1s;
}
.tgk-btn:hover { background: var(--tgk-green-dark); }
.tgk-btn:active { transform: translateY(1px); }
.tgk-btn:disabled { opacity: .7; cursor: wait; }
.tgk-loading::after { content: " …"; }

/* ---------- Kursusliste ---------- */
.tgk-list { display: grid; gap: 14px; margin: 24px 0; }
.tgk-list-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.tgk-card {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 14px 16px;
	align-items: center;
	padding: 18px 20px;
	background: #fff;
	border-radius: 12px;
	box-shadow: var(--tgk-shadow);
	transition: transform .2s ease, box-shadow .2s ease;
}
.tgk-card:hover { transform: translateY(-2px); box-shadow: var(--tgk-shadow-hover); }
.tgk-date-tile {
	width: 56px;
	padding: 8px 0;
	border-radius: 10px;
	background: var(--tgk-green-light);
	color: var(--tgk-green-dark);
	text-align: center;
	line-height: 1;
}
.tgk-date-d { display: block; font-size: 22px; font-weight: 700; }
.tgk-date-m { display: block; margin-top: 3px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.tgk-full .tgk-date-tile { background: #eef0ef; color: #6b7570; }
.tgk-card-title { margin: 0 0 4px; font-size: 18px; line-height: 1.3; }
.tgk-card-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 14px; color: #5f6b65; }
.tgk-card-side { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tgk-card-side .tgk-btn { margin-left: auto; padding: 10px 22px; font-size: 15px; }
.tgk-price { font-size: 20px; font-weight: 700; color: #1f2a25; }
.tgk-badge { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--tgk-green-light); color: var(--tgk-green-dark); }
.tgk-badge-few { background: #fef3c7; color: var(--tgk-amber); }
.tgk-badge-full { background: #eef0ef; color: #5f6b65; }
.tgk-badge-confirmed { background: var(--tgk-green); color: #fff; }

/* ---------- Hjælpeklasser til golfkørekort-siden ---------- */
.tgk-eyebrow { display: block; margin: 0 0 6px; color: var(--tgk-green); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.tgk-pill { display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px; background: var(--tgk-green-light); color: var(--tgk-green-dark); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
ul.tgk-checks { list-style: none !important; margin: 16px 0 !important; padding: 0 !important; }
ul.tgk-checks li { position: relative; margin: 0 0 10px; padding-left: 32px; list-style: none !important; }
ul.tgk-checks li::before {
	content: "";
	position: absolute; left: 0; top: 1px;
	width: 22px; height: 22px; border-radius: 50%;
	background: var(--tgk-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.tgk-from { margin: 18px 0 0; color: #5f6b65; }
.tgk-from strong { color: #1f2a25; font-size: 26px; font-weight: 700; }
.tgk-facts { margin: 16px 0; }
.tgk-facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 12px; border-radius: 8px; }
.tgk-facts > div:nth-child(odd) { background: #f4f7f5; }
.tgk-facts dt { font-weight: 600; color: #1f2a25; }
.tgk-facts dd { margin: 0; text-align: right; color: #3d4843; }

/* ---------- Trinvis tilmelding ---------- */
.tgk-step { min-width: 0; margin: 0 0 26px; padding: 0; border: 0; }
.tgk-step legend { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 0; font-size: 18px; font-weight: 700; color: #1f2a25; }
.tgk-step-no { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tgk-green); color: #fff; font-size: 14px; font-weight: 700; }
.tgk-step-no:empty { display: none; }
.tgk-enhanced .tgk-step-date:not(.tgk-open),
.tgk-enhanced .tgk-step-info:not(.tgk-open) { display: none; }
.tgk-enhanced .tgk-dates-type { display: none; }
.tgk-open { animation: tgk-in .35s ease; }
@keyframes tgk-in { from { opacity: 0; transform: translateY(8px); } }

/* Radio-kort (kursustype og dato) – selve radioknappen er skjult, men tilgængelig. */
.tgk-type-option, .tgk-date-option { position: relative; display: block; margin: 0; cursor: pointer; }
.tgk-type-option input, .tgk-date-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tgk-type-body, .tgk-date-body {
	display: flex; flex-direction: column; height: 100%; box-sizing: border-box;
	background: #f4f7f5; border-radius: 12px;
	box-shadow: inset 0 0 0 2px transparent;
	transition: background .15s, box-shadow .15s, transform .15s;
}
.tgk-type-option:hover .tgk-type-body, .tgk-date-option:hover .tgk-date-body { background: #eaf2ee; }
input:checked + .tgk-type-body, input:checked + .tgk-date-body { background: var(--tgk-green-light); box-shadow: inset 0 0 0 2px var(--tgk-green); }
input:focus-visible + .tgk-type-body, input:focus-visible + .tgk-date-body { outline: 3px solid rgba(0, 111, 91, .35); outline-offset: 2px; }
input:checked + .tgk-type-body::after, input:checked + .tgk-date-body::after {
	content: ""; position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%;
	background: var(--tgk-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.tgk-type-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.tgk-type-body { gap: 4px; padding: 16px 40px 16px 18px; }
.tgk-type-name { font-size: 17px; font-weight: 700; color: #1f2a25; }
.tgk-type-price { font-size: 15px; font-weight: 700; color: var(--tgk-green); }
.tgk-type-desc { font-size: 13px; line-height: 1.45; color: #4d5852; }
.tgk-type-meta { margin-top: auto; padding-top: 6px; font-size: 12px; color: #6b7570; }

.tgk-month { margin: 16px 0 8px; color: var(--tgk-green); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.tgk-month:first-of-type { margin-top: 0; }
.tgk-dates-type { margin: 18px 0 4px; font-weight: 700; }
.tgk-date-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.tgk-date-body { gap: 2px; padding: 12px 34px 12px 14px; }
.tgk-date-range { font-size: 16px; font-weight: 700; color: #1f2a25; }
.tgk-date-sub { font-size: 12px; line-height: 1.35; color: #5f6b65; }
.tgk-date-spots { margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--tgk-green); }
.tgk-few .tgk-date-spots { color: var(--tgk-amber); }
.tgk-full .tgk-date-spots { color: #6b7570; }
.tgk-full .tgk-date-range { color: #5f6b65; }

.tgk-step.tgk-invalid .tgk-type-body, .tgk-step.tgk-invalid .tgk-date-body { box-shadow: inset 0 0 0 2px rgba(180, 35, 24, .35); }

.tgk-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 4px 0 16px; padding: 14px 18px; border-radius: 12px; background: var(--tgk-green-light); }
.tgk-summary-label { width: 100%; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--tgk-green-dark); }
.tgk-summary-course { color: #1f2a25; }
.tgk-summary-price { margin-left: auto; font-weight: 700; color: #1f2a25; }

/* ---------- Formular ---------- */
.tgk-form { display: grid; gap: 16px; }
.tgk-step-info { display: grid; gap: 16px; }
.tgk-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .tgk-row { grid-template-columns: 1fr; } }
.tgk-field label { display: block; font-weight: 600; margin-bottom: 6px; }
.tgk-field input[type="text"],
.tgk-field input[type="tel"],
.tgk-field input[type="email"],
.tgk-field select {
	width: 100%;
	box-sizing: border-box;
	min-height: 48px;
	padding: 10px 14px;
	font-size: 16px; /* undgår zoom på iPhone */
	border: 1px solid var(--tgk-border);
	border-radius: 8px;
	background: #fff;
}
.tgk-field input:focus,
.tgk-field select:focus { outline: 3px solid rgba(0, 111, 91, .25); border-color: var(--tgk-green); }
.tgk-invalid input,
.tgk-invalid select { border-color: var(--tgk-red); }
.tgk-consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.tgk-consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--tgk-green); }
.tgk-invalid.tgk-consent span { color: var(--tgk-red); }
.tgk-hint { margin: 6px 0 0; font-size: 14px; color: #555; }
.tgk-waitlist-hint { color: var(--tgk-amber); font-weight: 600; }
.tgk-submit { justify-self: start; font-size: 18px; padding: 14px 34px; }
@media (max-width: 600px) { .tgk-submit { justify-self: stretch; } }
.tgk-msg { padding: 12px 16px; border-radius: 10px; background: #fdecea; color: var(--tgk-red); font-weight: 600; }
.tgk-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.tgk-success { padding: 28px; border-radius: 12px; background: var(--tgk-green-light); }
.tgk-success-lead { margin: 0 0 12px; color: #3d4843; }
.tgk-timeline { position: relative; list-style: none !important; margin: 0 0 8px !important; padding: 0 !important; }
.tgk-timeline li { position: relative; margin: 0; padding: 0 0 18px 38px; list-style: none !important; }
.tgk-timeline li::before {
	content: ""; position: absolute; left: 0; top: 0; width: 24px; height: 24px; box-sizing: border-box;
	border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #b9cfc6;
}
.tgk-timeline li::after { content: ""; position: absolute; left: 11px; top: 26px; bottom: 2px; width: 2px; background: #c9dbd3; }
.tgk-timeline li:last-child { padding-bottom: 0; }
.tgk-timeline li:last-child::after { display: none; }
.tgk-timeline li.tgk-done::before {
	box-shadow: none;
	background: var(--tgk-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.tgk-timeline strong { display: block; color: #1f2a25; }
.tgk-timeline span { display: block; font-size: 14px; color: #4d5852; }
.tgk-success-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
.tgk-btn-secondary { background: transparent; color: var(--tgk-green) !important; box-shadow: inset 0 0 0 2px var(--tgk-green); }
.tgk-btn-secondary:hover { background: #fff; }

/* ---------- Fast tilmeldingsknap (mobil) ---------- */
.tgk-sticky { display: none; }
@media (max-width: 782px) {
	.tgk-sticky:not([hidden]) {
		display: block; position: fixed; z-index: 9990;
		left: 12px; right: 84px; bottom: calc(12px + env(safe-area-inset-bottom)); /* plads til reCAPTCHA-mærket og iPhones hjemme-indikator */
		padding: 15px 18px; border-radius: 999px;
		background: var(--tgk-green); color: #fff !important; text-align: center; text-decoration: none !important;
		font-size: 16px; font-weight: 700; line-height: 1.2;
		box-shadow: 0 8px 24px rgba(0, 60, 45, .35);
		animation: tgk-in .25s ease;
	}
}
.tgk-success h3 { margin-top: 0; color: var(--tgk-green-dark); }
.tgk-empty { padding: 16px; background: #f4f6f4; border-radius: 8px; }
