/* =============================================================================
   „Pakviesk draugą“ – invitation maker (template dz/tpl-kvietimas.php)
   Hero (night, jungle photo) → cream section: form (3 steps) + live card preview. The preview card uses the PDF's
   own geometry: every size is px-of-1192 expressed in cqw, so it scales with the card (dz/inc/invitation.php).
   ============================================================================= */

/* Hero ------------------------------------------------------------------------ */
.dz-sec--kvt-hero {
	z-index: 1;
	overflow: hidden;
	background-color: var(--dz-night);
	background-image: url("../img/dzungles-fonas-sm.jpg");
	background-image: image-set(url("../img/dzungles-fonas-sm.webp") type("image/webp"), url("../img/dzungles-fonas-sm.jpg") type("image/jpeg"));
	background-size: cover;
	background-position: center 40%;
	color: var(--dz-cream);
}
@media (min-width: 900px) {
	.dz-sec--kvt-hero {
		background-image: url("../img/dzungles-fonas.jpg");
		background-image: image-set(url("../img/dzungles-fonas.webp") type("image/webp"), url("../img/dzungles-fonas.jpg") type("image/jpeg"));
	}
}
.dz-kvt-hero__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(27, 51, 26, .96) 0%, rgba(27, 51, 26, .9) 45%, rgba(27, 51, 26, .55) 100%);
}
.dz-kvt-hero__wrap {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 18px;
	justify-items: start;
	padding-top: calc(var(--dz-hdr-top) + var(--dz-hdr-h) + 72px);
	padding-bottom: 120px;
}
.dz-kvt-hero__h1 {
	max-width: 15ch;
	margin: 0;
	font-size: clamp(44px, calc(30px + 3.6vw), 84px);
	color: var(--dz-cream);
	text-wrap: balance;
}
.dz-kvt-hero__hl { color: var(--dz-sun); }
.dz-kvt-hero__lead { max-width: 40rem; margin: 0; color: var(--dz-cream); opacity: .92; }
.dz-kvt-hero__parrot {
	position: absolute;
	z-index: 1;
	right: max(2vw, calc((100vw - var(--dz-wrap)) / 2 - 40px));
	bottom: 54px;
	width: 210px;
	pointer-events: none;
}
.dz-sec--kvt-hero .dz-wave { z-index: 2; }
@media (max-width: 900px) {
	.dz-kvt-hero__wrap { padding-top: calc(var(--dz-hdr-top) + var(--dz-hdr-h) + 40px); padding-bottom: 96px; gap: 14px; }
	.dz-kvt-hero__parrot { width: 112px; right: 8px; bottom: 40px; }
	.dz-kvt-hero__lead { padding-right: 84px; }
}
@media (max-width: 480px) {
	.dz-kvt-hero__parrot { width: 92px; bottom: 34px; }
	.dz-kvt-hero__lead { padding-right: 60px; }
}

/* Section + grid ---------------------------------------------------------------- */
.dz-kvt { padding-top: 28px; padding-bottom: 112px; }
.dz-kvt__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}
@media (min-width: 1000px) {
	.dz-kvt__grid { grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: 40px; }
	.dz-kvt-preview { position: sticky; top: calc(var(--dz-adminbar) + var(--dz-hdr-top) + var(--dz-hdr-h) + 24px); }
}
@media (max-width: 999px) {
	.dz-kvt-preview { order: -1; }
	.dz-kvt { padding-bottom: 80px; }
}

/* "Filled in from your booking" ------------------------------------------------- */
.dz-kvt-note {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	margin: 0 0 24px;
	padding: 16px 20px;
	border-radius: var(--dz-r);
	background: var(--dz-mint);
	box-shadow: inset 0 0 0 2px rgba(76, 146, 48, .28);
	color: var(--dz-text);
}
.dz-kvt-note p { margin: 0; padding: 0; font-size: 16px; line-height: 1.5; }
.dz-kvt-note__ico {
	display: inline-grid;
	flex: none;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--dz-jungle-700);
	color: var(--dz-white);
}

/* Form card ---------------------------------------------------------------------- */
.dz-kvt-form {
	display: grid;
	gap: 0;
	padding: 8px 28px;
	border-radius: var(--dz-r-lg);
	background: var(--dz-white);
	box-shadow: var(--dz-shadow-card);
	color: var(--dz-text);
	font-family: var(--dz-font-body);
}
@media (max-width: 480px) {
	.dz-kvt-form { padding: 4px 18px; border-radius: var(--dz-r-md); }
}
.dz-kvt-step {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	gap: 16px;
	padding: 24px 0;
	border-bottom: 1px solid var(--dz-line);
}
.dz-kvt-step--last { border-bottom: 0; }
.dz-kvt-step__no {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border-radius: 50%;
	background: var(--dz-sun);
	color: var(--dz-bark);
	font-family: var(--dz-font-display);
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
}
.dz-kvt-step__body { display: grid; gap: 10px; min-width: 0; }
.dz-kvt-step__title {
	display: block;
	margin: 0;
	padding: 6px 0 0;
	font-family: var(--dz-font-display);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--dz-jungle);
}
.dz-kvt-hint { margin: 0; padding: 0; color: var(--dz-muted); font-size: 15px; line-height: 1.5; }

.dz-kvt-form .dz-kvt-input {
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 12px 16px;
	border: 2px solid #CBD3C2;
	border-radius: var(--dz-r-xs);
	background: var(--dz-white);
	color: var(--dz-text);
	font: 600 17px/1.3 var(--dz-font-body);
	box-shadow: none;
	transition: border-color .15s, box-shadow .15s;
	-webkit-appearance: none;
	appearance: none;
}
.dz-kvt-form .dz-kvt-input[type="date"] { min-width: 0; }
.dz-kvt-form .dz-kvt-input::placeholder { color: #8C9787; font-weight: 600; }
.dz-kvt-form .dz-kvt-input:hover { border-color: #9FB08F; }
.dz-kvt-form .dz-kvt-input:focus,
.dz-kvt-form .dz-kvt-input:focus-visible {
	border-color: var(--dz-jungle-700);
	box-shadow: 0 0 0 4px rgba(76, 146, 48, .22);
	outline: none;
}
.dz-kvt-form .dz-kvt-input[aria-invalid="true"] { border-color: #C2410C; box-shadow: 0 0 0 4px rgba(194, 65, 12, .14); }
.dz-kvt-err { margin: 0; padding: 0; color: #B42318; font-size: 14.5px; font-weight: 700; }

/* Names: text field + "Pridėti", chips above */
.dz-kvt-add { display: flex; gap: 10px; }
.dz-kvt-form .dz-kvt-add .dz-kvt-input { flex: 1 1 auto; font-size: 19px; }
.dz-kvt-add__btn { flex: none; }
.dz-kvt-add__btn[hidden] { display: none; }
.dz-kvt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dz-kvt-chip {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	padding: 0;
	border-radius: var(--dz-r-pill);
	background: var(--dz-mint);
	box-shadow: inset 0 0 0 2px rgba(76, 146, 48, .3);
	list-style: none;
}
.dz-kvt-chip__name,
.dz-kvt-chip__x {
	min-height: 40px;
	margin: 0;
	border: 0;
	background: none;
	color: var(--dz-jungle);
	font: 800 16px/1 var(--dz-font-body);
	cursor: pointer;
}
.dz-kvt-chip__name { padding: 0 6px 0 16px; }
.dz-kvt-chip__x { display: inline-grid; place-items: center; width: 40px; padding: 0; border-radius: 50%; }
.dz-kvt-chip__x:hover { background: rgba(76, 146, 48, .16); }
.dz-kvt-chip.is-active { background: var(--dz-sun); box-shadow: inset 0 0 0 2px #E2B91F; }
.dz-kvt-chip.is-active .dz-kvt-chip__name,
.dz-kvt-chip.is-active .dz-kvt-chip__x { color: var(--dz-bark); }
.dz-kvt-chip :focus-visible { outline: 3px solid var(--dz-focus-light); outline-offset: 1px; border-radius: var(--dz-r-pill); }

/* Step 2: folded summary (details) */
.dz-kvt-more { display: block; }
.dz-kvt-more__sum {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr) auto;
	gap: 16px;
	align-items: start;
	cursor: pointer;
	list-style: none;
}
.dz-kvt-more__sum::-webkit-details-marker { display: none; }
.dz-kvt-more__sum::marker { content: ""; }
.dz-kvt-more__sum:focus-visible { outline: 3px solid var(--dz-focus-light); outline-offset: 6px; border-radius: 8px; }
.dz-kvt-more__head { display: grid; gap: 6px; min-width: 0; }
.dz-kvt-more__text { color: var(--dz-muted); font-size: 15.5px; font-weight: 700; line-height: 1.45; }
.dz-kvt-more[open] .dz-kvt-more__text { display: none; }
.dz-kvt-more__edit {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
	padding: 8px 14px;
	border-radius: var(--dz-r-pill);
	background: var(--dz-surface-2);
	box-shadow: inset 0 0 0 1px var(--dz-line);
	color: var(--dz-jungle);
	font-size: 14.5px;
	font-weight: 800;
	white-space: nowrap;
}
.dz-kvt-more__sum:hover .dz-kvt-more__edit { background: var(--dz-mint); }
/* Not opened from a booking: the step is simply open (nothing to fold). */
.dz-kvt-more.is-static .dz-kvt-more__sum { cursor: default; }
.dz-kvt-more.is-static .dz-kvt-more__edit { display: none; }
.dz-kvt-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 14px;
	padding: 20px 0 0 56px;
}
.dz-kvt-field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.dz-kvt-field--wide { grid-column: 1 / -1; }
.dz-kvt-field label { font-size: 15.5px; font-weight: 800; color: var(--dz-text); }
.dz-kvt-opt,
.dz-kvt-req { color: var(--dz-muted); font-weight: 600; }
@media (max-width: 560px) {
	.dz-kvt-step { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
	.dz-kvt-step__no { width: 32px; height: 32px; font-size: 18px; }
	.dz-kvt-more__sum { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
	.dz-kvt-more__edit { grid-column: 2; justify-self: start; margin-top: 0; }
	.dz-kvt-fields { grid-template-columns: minmax(0, 1fr); padding-left: 0; }
	.dz-kvt-step__title { font-size: 23px; padding-top: 3px; }
	.dz-kvt-add { flex-wrap: wrap; }
	.dz-kvt-add__btn { width: 100%; }
}

/* Step 3: actions (direct children of the step: on phones they take the full card width) */
.dz-kvt-actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 12px; }
.dz-kvt-actions .dz-btn { white-space: normal; text-align: center; }
.dz-kvt-step--last { row-gap: 14px; }
.dz-kvt-actions .dz-btn[hidden] { display: none; }
.dz-kvt-actions__main[aria-busy="true"] { opacity: .75; cursor: progress; }
@media (max-width: 560px) {
	.dz-kvt-actions,
	.dz-kvt-status { grid-column: 1 / -1; }
	.dz-kvt-actions .dz-btn { width: 100%; }
}
.dz-kvt-status { grid-column: 2; min-height: 1.5em; margin: 0; padding: 0; color: var(--dz-leaf-700); font-size: 15px; font-weight: 700; }
.dz-kvt-status.is-error { color: #B42318; }

/* Preview ------------------------------------------------------------------------ */
.dz-kvt-preview { display: grid; gap: 12px; }
.dz-kvt-preview__label {
	margin: 0;
	padding: 0;
	color: var(--dz-leaf-700);
	font-size: var(--dz-fs-eyebrow);
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.dz-kvt-preview__tip {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	margin: 0;
	padding: 0;
	color: var(--dz-muted);
	font-size: 14.5px;
	line-height: 1.5;
}
.dz-kvt-preview__tip .dz-icon { flex: none; margin-top: 2px; color: var(--dz-leaf-700); }

.dz-kvt-card {
	container-type: inline-size;
	position: relative;
	width: 100%;
	aspect-ratio: 1192 / 840;
	overflow: hidden;
	border-radius: var(--dz-r);
	background-color: #fff;
	background-image: var(--kvt-bg);
	background-image: var(--kvt-bg-webp, var(--kvt-bg));
	background-size: 100% 100%;
	box-shadow: var(--dz-shadow-photo);
	transform: rotate(-1deg);
}
@media (prefers-reduced-motion: reduce) {
	.dz-kvt-card { transform: none; }
}
.dz-kvt-card__txt {
	position: absolute;
	left: 10.906cqw;          /* 130 */
	top: 22.315cqw;           /* 266 – the PDF's line positions (dz_invite_pdf_html), in cqw of the 1192 px card */
	width: 78.188cqw;         /* 932 */
	text-align: center;
	white-space: nowrap;
	color: #779c3c;
	font-family: var(--dz-font-display);
	font-weight: 700;
	font-size: 2.433cqw;      /* 29 px (cqw of the card – a container cannot size its own font) */
}
.dz-kvt-card p { margin: 0; padding: 0; font: inherit; line-height: 3.356cqw; color: inherit; }      /* 40 */
.dz-kvt-card .dz-kvt-card__to { color: #fa9901; font-size: 3.859cqw; padding-top: 1.85cqw; margin-bottom: 2.35cqw; overflow: hidden; text-overflow: ellipsis; } /* 46; 90 to the next line */
.dz-kvt-card .dz-kvt-card__addr { margin-bottom: 1.51cqw; }                                       /* 58 */
.dz-kvt-card .dz-kvt-card__when,
.dz-kvt-card .dz-kvt-card__tel { margin-bottom: .671cqw; }                                         /* 48 */
.dz-kvt-card b { color: #fa9901; font-size: 2.852cqw; font-weight: 700; }
.dz-kvt-card i { display: inline-block; width: 4.027cqw; }
.dz-kvt-card__blue { color: #2fbad8; font-size: 2.852cqw; }
.dz-kvt-card [hidden] { display: none; }
.dz-kvt-card b:empty::before { content: "…"; opacity: .45; }
.dz-kvt-card .dz-kvt-card__to.is-placeholder { opacity: .4; }
