/* The Harp Reservierung – booking form. Everything is scoped to .harp-res so the theme stays untouched. */
.harp-res {
	--harp-green: #0b5437;
	--harp-green-dark: #073a26;
	--harp-gold: #c9a35a;
	--harp-gold-light: #f3e6c4;
	--harp-cream: #f8f3e8;
	--harp-ink: #1d1d1b;
	--harp-muted: #6b6455;
	--harp-line: #e3dac6;
	--harp-red: #b3261e;
	--harp-radius: 14px;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: var(--harp-ink);
	max-width: 560px;
	margin: 0 auto;
	text-align: left;
}
.harp-res *, .harp-res *::before, .harp-res *::after { box-sizing: border-box; }
.harp-res [hidden] { display: none !important; }
.harp-res button, .harp-res input, .harp-res textarea {
	font: inherit;
	letter-spacing: normal;
	text-transform: none;
	margin: 0;
	box-shadow: none;
}
.harp-res button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.harp-res button:disabled { cursor: not-allowed; }
.harp-res :focus-visible { outline: 3px solid var(--harp-gold); outline-offset: 2px; }

.harp-res__card {
	background: #fff;
	border-radius: var(--harp-radius);
	box-shadow: 0 10px 30px rgba(7, 58, 38, .12), 0 1px 3px rgba(0, 0, 0, .06);
	overflow: hidden;
}

.harp-res__head {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 20px 22px;
	background: var(--harp-green);
	background-image: radial-gradient(circle at 15% 50%, rgba(255, 255, 255, .08), transparent 60%);
	color: var(--harp-gold-light);
}
.harp-res__logo { width: 56px; height: 56px; border-radius: 50%; flex: none; border: 2px solid rgba(243, 230, 196, .5); }
.harp-res__title {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.5rem;
	font-weight: normal;
	line-height: 1.2;
	color: var(--harp-gold-light);
}
.harp-res__sub { margin: 2px 0 0; font-size: .9rem; opacity: .85; color: var(--harp-gold-light); }

.harp-res__steps {
	display: flex;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 14px 22px 0;
	font-size: .85rem;
	color: var(--harp-muted);
}
.harp-res__steps li { display: flex; align-items: center; gap: 6px; flex: 1; margin: 0; white-space: nowrap; }
.harp-res__steps li::after { content: ""; flex: 1; height: 2px; background: var(--harp-line); border-radius: 2px; }
.harp-res__steps li:last-child::after { display: none; }
.harp-res__steps span {
	display: inline-grid;
	place-items: center;
	width: 22px; height: 22px;
	border-radius: 50%;
	background: var(--harp-line);
	color: var(--harp-muted);
	font-size: .75rem;
	font-weight: 700;
}
.harp-res__steps .is-active { color: var(--harp-ink); font-weight: 600; }
.harp-res__steps .is-active span, .harp-res__steps .is-done span { background: var(--harp-green); color: #fff; }

.harp-res__form { padding: 18px 22px 24px; margin: 0; }
.harp-res__step { animation: harp-in .25s ease; }
@keyframes harp-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.harp-res__field { margin: 0 0 22px; }
.harp-res__label { display: block; margin: 0 0 8px; font-weight: 600; font-size: 1rem; color: var(--harp-ink); }
.harp-res__optional { font-weight: normal; color: var(--harp-muted); }
.harp-res__hint { margin: 6px 0 0; font-size: .85rem; color: var(--harp-muted); }
.harp-res__hint a, .harp-res__privacy a { color: var(--harp-green); }

/* Guests stepper */
.harp-res__stepper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 260px;
	padding: 6px;
	border: 1.5px solid var(--harp-line);
	border-radius: 999px;
	background: var(--harp-cream);
}
.harp-res .harp-res__round {
	width: 44px; height: 44px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--harp-green);
	font-size: 1.5rem;
	line-height: 1;
	padding: 0;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}
.harp-res .harp-res__round:disabled { opacity: .35; box-shadow: none; }
.harp-res__count { font-size: 1.05rem; }
.harp-res__count strong { font-size: 1.35rem; }

/* Day chips */
.harp-res__days {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 2px 2px 10px;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
}
.harp-res .harp-res__day {
	flex: none;
	width: 72px;
	padding: 10px 4px;
	border: 1.5px solid var(--harp-line);
	border-radius: 12px;
	background: #fff;
	color: var(--harp-ink);
	text-align: center;
	scroll-snap-align: start;
	transition: border-color .15s, background .15s, transform .1s;
}
.harp-res .harp-res__day:hover:not(:disabled) { border-color: var(--harp-green); }
.harp-res .harp-res__day:active:not(:disabled) { transform: scale(.97); }
.harp-res__day-name { display: block; font-size: .8rem; color: var(--harp-muted); }
.harp-res__day-num { display: block; font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.harp-res__day-note { display: block; font-size: .7rem; color: var(--harp-muted); min-height: 1em; }
.harp-res .harp-res__day[aria-checked="true"] { background: var(--harp-green); border-color: var(--harp-green); color: #fff; }
.harp-res .harp-res__day[aria-checked="true"] .harp-res__day-name,
.harp-res .harp-res__day[aria-checked="true"] .harp-res__day-note { color: var(--harp-gold-light); }
.harp-res .harp-res__day:disabled { background: #f4f2ed; color: #a39d90; border-style: dashed; }
.harp-res__skeleton {
	flex: none; width: 72px; height: 74px; border-radius: 12px;
	background: linear-gradient(90deg, #f1ece1 25%, #f8f4ec 50%, #f1ece1 75%);
	background-size: 200% 100%;
	animation: harp-shimmer 1.2s infinite;
}
@keyframes harp-shimmer { to { background-position: -200% 0; } }

.harp-res__other-date { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-size: .9rem; color: var(--harp-muted); }
.harp-res .harp-res__other-date input {
	appearance: auto;
	background-color: #fff !important;
	color: var(--harp-ink) !important;
	color-scheme: light;
	width: auto;
	font-size: 16px;
	padding: 6px 10px;
	border: 1.5px solid var(--harp-line);
	border-radius: 8px;
	background: #fff;
	color: var(--harp-ink);
	min-height: 40px;
}

/* Time slots */
.harp-res__times { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.harp-res__times-sep { grid-column: 1 / -1; margin: 6px 0 0; font-size: .8rem; color: var(--harp-muted); }
.harp-res .harp-res__time {
	min-height: 46px;
	padding: 8px 4px;
	border: 1.5px solid var(--harp-line);
	border-radius: 10px;
	background: #fff;
	color: var(--harp-ink);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	transition: border-color .15s, background .15s;
}
.harp-res .harp-res__time:hover:not(:disabled) { border-color: var(--harp-green); }
.harp-res .harp-res__time[aria-checked="true"] { background: var(--harp-green); border-color: var(--harp-green); color: #fff; }
.harp-res .harp-res__time:disabled { background: #f4f2ed; color: #b0aa9c; text-decoration: line-through; border-style: dashed; }
.harp-res__empty { grid-column: 1 / -1; margin: 0; padding: 14px; border-radius: 10px; background: var(--harp-cream); color: var(--harp-muted); font-size: .95rem; }

/* Inputs */
.harp-res .harp-res__input {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 11px 14px;
	border: 1.5px solid var(--harp-line);
	border-radius: 10px;
	background: #fff;
	color: var(--harp-ink);
	font-size: 16px; /* prevents iOS zoom */
	transition: border-color .15s;
}
.harp-res .harp-res__input:focus { border-color: var(--harp-green); outline: none; box-shadow: 0 0 0 3px rgba(11, 84, 55, .15); }
.harp-res .harp-res__input[aria-invalid="true"] { border-color: var(--harp-red); }
.harp-res textarea.harp-res__input { resize: vertical; }
.harp-res__field-error { margin: 6px 0 0; color: var(--harp-red); font-size: .85rem; }
.harp-res__field-error:empty { display: none; }
.harp-res__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.harp-res__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 20px;
	padding: 12px 14px;
	border-radius: 10px;
	background: var(--harp-cream);
	border-left: 4px solid var(--harp-gold);
	font-weight: 600;
}

.harp-res__privacy { margin: 0 0 18px; font-size: .85rem; color: var(--harp-muted); }

/* Buttons */
.harp-res .harp-res__primary {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 52px;
	padding: 12px 20px;
	border: 0;
	border-radius: 12px;
	background: var(--harp-green);
	color: #fff;
	font-size: 1.05rem;
	font-weight: 700;
	transition: background .15s, transform .1s;
}
.harp-res .harp-res__primary:hover:not(:disabled) { background: var(--harp-green-dark); }
.harp-res .harp-res__primary:active:not(:disabled) { transform: scale(.99); }
.harp-res .harp-res__primary:disabled { background: #c9c3b5; }
.harp-res .harp-res__primary.is-loading::before {
	content: ""; width: 18px; height: 18px;
	border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%;
	animation: harp-spin .7s linear infinite;
}
@keyframes harp-spin { to { transform: rotate(360deg); } }
.harp-res .harp-res__secondary {
	min-height: 46px;
	padding: 10px 18px;
	border: 1.5px solid var(--harp-green);
	border-radius: 10px;
	background: #fff;
	color: var(--harp-green) !important;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
.harp-res .harp-res__link {
	padding: 6px 4px;
	border: 0;
	background: none;
	color: var(--harp-green);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.harp-res__error {
	margin: 16px 0 0;
	padding: 12px 14px;
	border-radius: 10px;
	background: #fdecea;
	color: var(--harp-red);
	font-size: .95rem;
}

/* Done */
.harp-res__done { text-align: center; padding: 8px 0; outline: none; }
.harp-res__check svg { width: 72px; height: 72px; }
.harp-res__check circle { fill: none; stroke: var(--harp-green); stroke-width: 3; stroke-dasharray: 160; stroke-dashoffset: 160; animation: harp-draw .5s ease forwards; }
.harp-res__check path { fill: none; stroke: var(--harp-green); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: harp-draw .35s .4s ease forwards; }
@keyframes harp-draw { to { stroke-dashoffset: 0; } }
.harp-res__done-title { margin: 8px 0 4px; font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; font-weight: normal; color: var(--harp-green); }
.harp-res__done-when { margin: 0 0 6px; font-size: 1.1rem; font-weight: 600; }
.harp-res__done-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 20px; }

@media (max-width: 420px) {
	.harp-res__head { padding: 16px; }
	.harp-res__form { padding: 16px 16px 20px; }
	.harp-res__steps { padding: 12px 16px 0; font-size: .78rem; }
	.harp-res__title { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
	.harp-res *, .harp-res *::before, .harp-res *::after { animation: none !important; transition: none !important; }
	.harp-res__check circle, .harp-res__check path { stroke-dashoffset: 0; }
}

/* Language switch */
.harp-res__head-text { flex: 1; min-width: 0; }
.harp-res__steps b { font-weight: inherit; }
.harp-res__lang {
	display: flex;
	flex: none;
	align-self: flex-start;
	padding: 3px;
	border-radius: 999px;
	background: rgba(0, 0, 0, .18);
}
.harp-res .harp-res__lang button {
	min-width: 38px;
	min-height: 32px;
	padding: 4px 8px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--harp-gold-light);
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .04em;
}
.harp-res .harp-res__lang button[aria-pressed="true"] { background: var(--harp-gold); color: var(--harp-green-dark); }
