/* RumHouse – formulár na darčekové poukazy */

.rhd {
	--rhd-bg: #1b120c;
	--rhd-surface: #241812;
	--rhd-surface-hi: #2f2019;
	--rhd-line: rgba(244, 234, 219, 0.14);
	--rhd-line-strong: rgba(244, 234, 219, 0.28);
	--rhd-text: #f4eadb;
	--rhd-muted: #a8917a;
	--rhd-accent: #c98a3e;
	--rhd-paper: #efe3cf;
	--rhd-ink: #241812;
	--rhd-danger: #d97b6c;

	--rhd-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
	--rhd-body: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	box-sizing: border-box;
	position: relative;
	max-width: 1120px;
	margin: 0 auto;
	padding: clamp(24px, 4vw, 56px);
	background:
		radial-gradient(120% 80% at 12% 0%, rgba(201, 138, 62, 0.16), transparent 60%),
		linear-gradient(#211610, var(--rhd-bg));
	color: var(--rhd-text);
	font-family: var(--rhd-body);
	font-size: 16px;
	line-height: 1.55;
	border-radius: 4px;
}

.rhd *,
.rhd *::before,
.rhd *::after {
	box-sizing: inherit;
}

.rhd--empty {
	text-align: center;
	color: var(--rhd-muted);
}

/* --------------------------------------------------------------- hlavička */

.rhd__head {
	max-width: 34em;
	margin-bottom: clamp(28px, 3.5vw, 44px);
}

.rhd__title {
	margin: 0 0 10px;
	font-family: var(--rhd-display);
	font-size: clamp(30px, 4.4vw, 46px);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -0.015em;
	color: var(--rhd-text);
}

.rhd__lede {
	margin: 0;
	max-width: 46ch;
	color: var(--rhd-muted);
	font-size: 16px;
}

.rhd__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: clamp(28px, 4vw, 56px);
	align-items: start;
}

/* ------------------------------------------------------------------ kroky */

.rhd-step {
	margin: 0 0 34px;
	padding: 0;
	border: 0;
}

.rhd-step__legend {
	display: block;
	width: 100%;
	margin-bottom: 16px;
	padding: 0 0 10px;
	border-bottom: 1px solid var(--rhd-line);
	font-family: var(--rhd-display);
	font-size: 15px;
	font-weight: 600;
	color: var(--rhd-text);
}

/* ---------------------------------------------------------------- termíny */

.rhd-terminy {
	display: grid;
	gap: 8px;
}

.rhd-termin {
	display: block;
	position: relative;
	cursor: pointer;
}

.rhd-termin__input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.rhd-termin__body {
	display: grid;
	grid-template-columns: 58px minmax(0, 1fr) auto;
	gap: 18px;
	align-items: center;
	padding: 14px 18px 14px 14px;
	background: var(--rhd-surface);
	border: 1px solid var(--rhd-line);
	border-left: 3px solid transparent;
	transition: background 0.18s ease, border-color 0.18s ease;
}

.rhd-termin:hover .rhd-termin__body {
	background: var(--rhd-surface-hi);
}

.rhd-termin__input:focus-visible + .rhd-termin__body {
	outline: 2px solid var(--rhd-accent);
	outline-offset: 2px;
}

.rhd-termin__input:checked + .rhd-termin__body {
	background: var(--rhd-surface-hi);
	border-color: var(--rhd-line-strong);
	border-left-color: var(--rhd-accent);
}

.rhd-termin__when {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 6px 0;
	background: rgba(244, 234, 219, 0.04);
	border: 1px solid var(--rhd-line);
}

.rhd-termin__day {
	font-family: var(--rhd-display);
	font-size: 24px;
	font-weight: 600;
	line-height: 1;
	color: var(--rhd-text);
}

.rhd-termin__day--open {
	font-size: 20px;
	color: var(--rhd-accent);
}

.rhd-termin__month {
	margin-top: 3px;
	font-size: 11px;
	color: var(--rhd-muted);
}

.rhd-termin__main {
	display: block;
	min-width: 0;
}

.rhd-termin__name {
	display: block;
	font-family: var(--rhd-display);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.25;
}

.rhd-termin__meta {
	display: block;
	margin-top: 2px;
	font-size: 13.5px;
	color: var(--rhd-muted);
}

.rhd-termin__left {
	display: inline-block;
	margin-top: 6px;
	padding: 2px 8px;
	font-size: 12px;
	color: #f0c48a;
	background: rgba(201, 138, 62, 0.14);
	border: 1px solid rgba(201, 138, 62, 0.34);
}

.rhd-termin__price {
	display: block;
	text-align: right;
	white-space: nowrap;
}

.rhd-termin__amount {
	display: block;
	font-family: var(--rhd-display);
	font-size: 19px;
	font-weight: 600;
	color: var(--rhd-accent);
}

.rhd-termin__unit {
	display: block;
	font-size: 12px;
	color: var(--rhd-muted);
}

.rhd-termin-note {
	margin: 12px 0 0;
	padding-left: 14px;
	border-left: 2px solid rgba(201, 138, 62, 0.4);
	font-size: 14px;
	color: var(--rhd-muted);
	min-height: 1px;
}

.rhd-termin-note:empty {
	display: none;
}

/* ------------------------------------------------------------ počet osôb */

.rhd-persons {
	margin-top: 22px;
}

.rhd-stepper {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid var(--rhd-line-strong);
	background: var(--rhd-surface);
}

.rhd-stepper__btn {
	width: 46px;
	padding: 0;
	font-size: 20px;
	line-height: 1;
	color: var(--rhd-text);
	background: transparent;
	border: 0;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.rhd-stepper__btn:hover:not(:disabled) {
	background: rgba(201, 138, 62, 0.18);
	color: #fff;
}

.rhd-stepper__btn:disabled {
	opacity: 0.32;
	cursor: not-allowed;
}

.rhd .rhd-stepper__input {
	width: 68px;
	height: 48px;
	margin: 0;
	padding: 0;
	text-align: center;
	font-family: var(--rhd-display);
	font-size: 20px;
	font-weight: 600;
	color: var(--rhd-text);
	background: transparent;
	border: 0;
	border-left: 1px solid var(--rhd-line);
	border-right: 1px solid var(--rhd-line);
	border-radius: 0;
	-moz-appearance: textfield;
	appearance: textfield;
}

.rhd .rhd-stepper__input::-webkit-outer-spin-button,
.rhd .rhd-stepper__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.rhd-persons__hint {
	margin: 8px 0 0;
	font-size: 13px;
	color: var(--rhd-muted);
}

/* ------------------------------------------------------------------ polia */

.rhd-row {
	display: grid;
	gap: 16px;
	margin-bottom: 16px;
}

.rhd-row--two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rhd-control {
	margin: 0 0 16px;
}

.rhd-label {
	display: block;
	margin-bottom: 6px;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--rhd-text);
}

.rhd-optional {
	margin-left: 6px;
	font-weight: 400;
	font-size: 12.5px;
	color: var(--rhd-muted);
}

.rhd input[type="text"],
.rhd input[type="email"],
.rhd input[type="tel"],
.rhd textarea {
	display: block;
	width: 100%;
	padding: 13px 14px;
	font-family: inherit;
	font-size: 15.5px;
	line-height: 1.4;
	color: var(--rhd-text);
	background: var(--rhd-surface);
	border: 1px solid var(--rhd-line);
	border-radius: 0;
	transition: border-color 0.16s ease, background 0.16s ease;
}

.rhd textarea {
	resize: vertical;
	min-height: 92px;
}

.rhd input::placeholder,
.rhd textarea::placeholder {
	color: rgba(168, 145, 122, 0.7);
}

.rhd input[type="text"]:focus,
.rhd input[type="email"]:focus,
.rhd input[type="tel"]:focus,
.rhd textarea:focus {
	outline: none;
	background: var(--rhd-surface-hi);
	border-color: var(--rhd-accent);
	box-shadow: 0 0 0 1px var(--rhd-accent);
}

.rhd .rhd-control--invalid input,
.rhd .rhd-control--invalid textarea {
	border-color: var(--rhd-danger);
}

.rhd-error {
	display: none;
	margin-top: 6px;
	font-size: 13px;
	color: var(--rhd-danger);
}

.rhd-error--on {
	display: block;
}

.rhd-trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --------------------------------------------------------------- súčtový */

.rhd-summary {
	margin: 6px 0 20px;
	padding: 18px 20px;
	background: rgba(244, 234, 219, 0.05);
	border: 1px solid var(--rhd-line);
	border-top: 2px solid var(--rhd-accent);
}

.rhd-summary__line {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: baseline;
	justify-content: space-between;
	font-size: 14px;
	color: var(--rhd-muted);
}

.rhd-summary__total {
	font-family: var(--rhd-display);
	font-size: 30px;
	font-weight: 600;
	line-height: 1;
	color: var(--rhd-text);
}

/* -------------------------------------------------------------- súhlas */

.rhd-consent {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 10px;
	align-items: start;
	margin: 0 0 24px;
	font-size: 14px;
	color: var(--rhd-muted);
}

.rhd-consent input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--rhd-accent);
}

.rhd-consent .rhd-error {
	grid-column: 2;
}

/* ------------------------------------------------------------- odoslanie */

.rhd-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 220px;
	padding: 16px 32px;
	font-family: var(--rhd-body);
	font-size: 15.5px;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: #1b120c;
	background: linear-gradient(160deg, #e5aa5d, var(--rhd-accent));
	border: 0;
	border-radius: 0;
	cursor: pointer;
	transition: transform 0.14s ease, filter 0.14s ease;
}

.rhd-submit:hover:not(:disabled) {
	filter: brightness(1.07);
}

.rhd-submit:active:not(:disabled) {
	transform: translateY(1px);
}

.rhd-submit:disabled {
	opacity: 0.6;
	cursor: progress;
}

.rhd-submit:focus-visible {
	outline: 2px solid var(--rhd-text);
	outline-offset: 3px;
}

.rhd-feedback {
	margin: 14px 0 0;
	font-size: 14px;
	color: var(--rhd-danger);
	min-height: 1px;
}

.rhd-feedback:empty {
	display: none;
}

/* -------------------------------------------------------------- poukaz */

.rhd-voucher {
	position: sticky;
	top: 32px;
}

.rhd-voucher__card {
	display: grid;
	grid-template-columns: 46px minmax(0, 1fr);
	background: var(--rhd-paper);
	color: var(--rhd-ink);
	box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.85);
}

.rhd-voucher__stub {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(36, 24, 18, 0.06);
	border-right: 2px dashed rgba(36, 24, 18, 0.3);
}

/* dierky perforácie */
.rhd-voucher__stub::before,
.rhd-voucher__stub::after {
	content: "";
	position: absolute;
	right: -9px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--rhd-bg);
}

.rhd-voucher__stub::before {
	top: -8px;
}

.rhd-voucher__stub::after {
	bottom: -8px;
}

.rhd-voucher__stub-text {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	font-family: var(--rhd-display);
	font-size: 12px;
	letter-spacing: 0.22em;
	font-variant: small-caps;
	color: rgba(36, 24, 18, 0.6);
}

.rhd-voucher__body {
	padding: 26px 26px 22px;
}

.rhd-voucher__for {
	margin: 0;
	font-size: 12px;
	color: rgba(36, 24, 18, 0.55);
}

.rhd-voucher__name {
	margin: 2px 0 0;
	font-family: var(--rhd-display);
	font-size: 26px;
	font-weight: 600;
	line-height: 1.15;
	word-break: break-word;
}

.rhd-voucher__name--empty {
	color: rgba(36, 24, 18, 0.32);
	font-style: italic;
}

.rhd-voucher__event {
	margin: 14px 0 0;
	padding-top: 14px;
	border-top: 1px solid rgba(36, 24, 18, 0.16);
	font-size: 15px;
	line-height: 1.4;
}

.rhd-voucher__facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 16px 0 0;
}

.rhd-voucher__facts dt {
	font-size: 11px;
	color: rgba(36, 24, 18, 0.5);
}

.rhd-voucher__facts dd {
	margin: 2px 0 0;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.3;
	word-break: break-word;
}

.rhd-voucher__dedication {
	margin: 16px 0 0;
	font-family: var(--rhd-display);
	font-size: 14.5px;
	font-style: italic;
	line-height: 1.5;
	color: rgba(36, 24, 18, 0.78);
}

.rhd-voucher__dedication:empty {
	display: none;
}

.rhd-voucher__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: 22px;
	padding-top: 16px;
	border-top: 1px solid rgba(36, 24, 18, 0.16);
}

.rhd-voucher__code {
	font-family: var(--rhd-body);
	font-size: 13px;
	letter-spacing: 0.1em;
	color: rgba(36, 24, 18, 0.6);
}

.rhd-voucher__seal {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 78px;
	height: 78px;
	border-radius: 50%;
	transform: rotate(-7deg);
	background: radial-gradient(circle at 34% 28%, #e5aa5d, var(--rhd-accent) 62%, #a26c2c 100%);
	box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.28), 0 6px 14px -8px rgba(36, 24, 18, 0.8);
	font-family: var(--rhd-display);
	font-size: 17px;
	font-weight: 600;
	color: #2a1a10;
	text-align: center;
	line-height: 1.05;
}

.rhd-voucher__hint {
	margin: 14px 0 0;
	font-size: 12.5px;
	color: var(--rhd-muted);
}

/* ------------------------------------------------------------- hotovo */

.rhd-done {
	max-width: 30em;
	margin: 0 auto;
	padding: 20px 0 8px;
	text-align: center;
}

.rhd-done__mark {
	width: 62px;
	height: 62px;
	margin: 0 auto 20px;
	border-radius: 50%;
	border: 2px solid var(--rhd-accent);
	position: relative;
}

.rhd-done__mark::after {
	content: "";
	position: absolute;
	left: 20px;
	top: 15px;
	width: 16px;
	height: 28px;
	border-right: 2px solid var(--rhd-accent);
	border-bottom: 2px solid var(--rhd-accent);
	transform: rotate(42deg);
}

.rhd-done__title {
	margin: 0 0 10px;
	font-family: var(--rhd-display);
	font-size: 28px;
	font-weight: 600;
	color: var(--rhd-text);
}

.rhd-done__text {
	margin: 0;
	color: var(--rhd-muted);
}

.rhd-done__code {
	display: inline-block;
	margin: 20px 0 0;
	padding: 10px 18px;
	font-size: 15px;
	letter-spacing: 0.12em;
	color: var(--rhd-text);
	border: 1px dashed var(--rhd-line-strong);
}

/* ------------------------------------------------------------ responzív */

@media (max-width: 900px) {
	.rhd__layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.rhd-voucher {
		position: static;
	}
}

@media (max-width: 560px) {
	.rhd-row--two {
		grid-template-columns: minmax(0, 1fr);
	}

	.rhd-termin__body {
		grid-template-columns: 48px minmax(0, 1fr);
		gap: 12px;
		row-gap: 10px;
	}

	.rhd-termin__price {
		grid-column: 2;
		text-align: left;
	}

	.rhd-voucher__facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.rhd * {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}
