/**
 * Drivelux Transfer Form
 * Модули:
 * 01. Design tokens
 * 02. Shared UI
 * 03. Hero form
 * 04. Full form layout
 * 05. Sections and fields
 * 06. Counters
 * 07. Vehicle cards
 * 08. Summary
 * 09. Messages and states
 * 10. Responsive
 */

/* =========================================================
 * 01. Design tokens
 * ========================================================= */

.dltf {
	--dltf-bg: #111212;
	--dltf-panel: #171819;
	--dltf-panel-2: #1d1f21;
	--dltf-line: rgba(255, 255, 255, 0.10);
	--dltf-line-strong: rgba(255, 255, 255, 0.16);
	--dltf-text: #f5f2ec;
	--dltf-muted: rgba(245, 242, 236, 0.62);
	--dltf-gold: #d2a15b;
	--dltf-gold-light: #efc982;
	--dltf-danger: #e28b80;
	--dltf-success: #83c6a2;
	--dltf-radius: 18px;
	--dltf-radius-sm: 12px;
	--dltf-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
	font-family: inherit;
	color: var(--dltf-text);
}

.dltf *,
.dltf *::before,
.dltf *::after {
	box-sizing: border-box;
}

.dltf svg {
	display: block;
	width: 21px;
	height: 21px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.dltf button,
.dltf input,
.dltf textarea {
	font: inherit;
}

.dltf button {
	cursor: pointer;
}

.dltf input,
.dltf textarea {
	color-scheme: dark;
}

.dltf [hidden] {
	display: none !important;
}

/* =========================================================
 * 02. Shared UI
 * ========================================================= */

.dltf-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-height: 58px;
	padding: 0 28px;
	border: 1px solid transparent;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--dltf-gold-light), var(--dltf-gold));
	color: #17120b;
	font-weight: 700;
	transition: transform .2s ease, filter .2s ease, opacity .2s ease;
}

.dltf-button:hover {
	filter: brightness(1.05);
	transform: translateY(-1px);
}

.dltf-button:disabled {
	cursor: not-allowed;
	opacity: .55;
	transform: none;
}

.dltf-eyebrow {
	margin: 0 0 12px;
	color: var(--dltf-gold-light);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
}

.dltf-inline-message,
.dltf-submit-message {
	margin-top: 12px;
	padding: 12px 14px;
	border: 1px solid var(--dltf-line);
	border-radius: 10px;
	background: rgba(255, 255, 255, .035);
	color: var(--dltf-muted);
	font-size: 14px;
	line-height: 1.45;
}

.dltf-inline-message.is-error,
.dltf-submit-message.is-error {
	border-color: rgba(226, 139, 128, .4);
	color: var(--dltf-danger);
}

.dltf-submit-message.is-success {
	border-color: rgba(131, 198, 162, .4);
	color: var(--dltf-success);
}

/* =========================================================
 * 03. Hero form
 * ========================================================= */

.dltf--hero {
	position: relative;
	width: 100%;
}

.dltf-hero {
	display: grid;
	grid-template-columns: .9fr .9fr 1.45fr 1.45fr 1.1fr;
	overflow: hidden;
	min-height: 126px;
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: 20px;
	background: rgba(18, 18, 18, .97);
	box-shadow: var(--dltf-shadow);
	backdrop-filter: blur(18px);
}

.dltf-field-shell {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
	padding: 20px 26px;
	border-right: 1px solid var(--dltf-line);
}

.dltf-field-shell__icon {
	display: grid;
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	place-items: center;
	border: 1px solid var(--dltf-line);
	border-radius: 50%;
	background: rgba(255, 255, 255, .025);
	color: #e8e3da;
}

.dltf-field-shell__body {
	min-width: 0;
	flex: 1;
}

.dltf-field-shell__label {
	display: block;
	margin-bottom: 7px;
	color: var(--dltf-muted);
	font-size: 13px;
	font-weight: 600;
}

.dltf-field-shell input {
	display: block;
	width: 100%;
	min-width: 0;
	padding: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--dltf-text);
	font-size: 16px;
	font-weight: 700;
	text-overflow: ellipsis;
}

.dltf-field-shell input[readonly] {
	cursor: default;
}

.dltf-field-shell input[type="date"],
.dltf-field-shell input[type="time"] {
	min-height: 26px;
}

.dltf-button--hero {
	min-height: auto;
	margin: 18px;
	border-radius: 10px;
}


/* Hero validation message is a viewport toast, so it never changes section height. */
.dltf--hero > .dltf-inline-message[data-dltf-hero-message] {
	position: fixed;
	z-index: 999999;
	left: 50%;
	bottom: 24px;
	width: min(520px, calc(100vw - 32px));
	margin: 0;
	padding: 14px 18px 14px 48px;
	transform: translateX(-50%);
	border: 1px solid rgba(226, 139, 128, .72);
	border-radius: 12px;
	background: rgba(27, 20, 20, .98);
	box-shadow: 0 18px 55px rgba(0, 0, 0, .45);
	color: #fff5f2;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.45;
	pointer-events: none;
	backdrop-filter: blur(16px);
	animation: dltf-hero-toast-in .22s ease both;
}

.dltf--hero > .dltf-inline-message[data-dltf-hero-message]::before {
	content: "!";
	position: absolute;
	top: 50%;
	left: 15px;
	display: grid;
	width: 23px;
	height: 23px;
	place-items: center;
	transform: translateY(-50%);
	border: 1px solid currentColor;
	border-radius: 50%;
	font-size: 13px;
	font-weight: 800;
}

.dltf-hero > .dltf-field-shell:first-child {
	border-radius: 19px 0 0 19px;
}

.dltf--hero .dltf-field-shell.is-invalid {
	position: relative;
	z-index: 1;
	background: rgba(226, 139, 128, .07);
	box-shadow: none;
}

.dltf--hero .dltf-field-shell.is-invalid::after {
	content: "";
	position: absolute;
	inset: 1px;
	z-index: 2;
	border: 1px solid rgba(226, 139, 128, .88);
	border-radius: inherit;
	pointer-events: none;
}

@keyframes dltf-hero-toast-in {
	from {
		opacity: 0;
		transform: translate(-50%, 12px);
	}
	to {
		opacity: 1;
		transform: translate(-50%, 0);
	}
}

/* =========================================================
 * 04. Full form layout
 * ========================================================= */

.dltf--full {
	width: 100%;
	scroll-margin-top: 90px;
}

.dltf--full.is-highlighted .dltf-full {
	box-shadow: 0 0 0 1px rgba(210, 161, 91, .45), var(--dltf-shadow);
}

.dltf-full {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 0;
	overflow: hidden;
	border: 1px solid var(--dltf-line);
	border-radius: var(--dltf-radius);
	background: var(--dltf-bg);
	box-shadow: var(--dltf-shadow);
	transition: box-shadow .25s ease;
}

.dltf-full__main {
	min-width: 0;
	padding: clamp(28px, 4vw, 58px);
}

.dltf-full__header {
	margin-bottom: 34px;
}

.dltf-full__header h2 {
	margin: 0 0 12px;
	color: var(--dltf-text);
	font-family: var(--e-global-typography-primary-font-family, "Cormorant Garamond", Georgia, serif);
	font-size: clamp(30px, 3vw, 38px);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -.025em;
}

.dltf-full__header > p:last-child {
	max-width: 720px;
	margin: 0;
	color: var(--dltf-muted);
	font-size: 16px;
	line-height: 1.6;
}

/* =========================================================
 * 05. Sections and fields
 * ========================================================= */

.dltf-section {
	padding: 32px 0;
	border-top: 1px solid var(--dltf-line);
}

.dltf-section__heading {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 24px;
}

.dltf-section__heading > span {
	display: grid;
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	place-items: center;
	border: 1px solid rgba(210, 161, 91, .55);
	border-radius: 50%;
	color: var(--dltf-gold-light);
	font-size: 13px;
}

.dltf-section__heading h3 {
	margin: 0;
	font-family: var(--e-global-typography-primary-font-family, "Cormorant Garamond", Georgia, serif);
	font-size: 30px;
	font-weight: 500;
}

.dltf-trip-type {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	max-width: 560px;
	margin-bottom: 22px;
	border: 1px solid var(--dltf-line-strong);
	border-radius: 10px;
	overflow: hidden;
}

.dltf-trip-type label {
	position: relative;
}

.dltf-trip-type input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.dltf-trip-type span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 10px 16px;
	color: var(--dltf-muted);
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}

.dltf-trip-type input:checked + span {
	background: linear-gradient(135deg, var(--dltf-gold-light), var(--dltf-gold));
	color: #17120b;
	font-weight: 700;
}

.dltf-grid {
	display: grid;
	gap: 16px;
	margin-top: 16px;
}

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

.dltf-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dltf-grid--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dltf-input {
	display: block;
	min-width: 0;
}

.dltf-input > span {
	display: block;
	margin-bottom: 8px;
	color: rgba(245, 242, 236, .76);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .035em;
	text-transform: uppercase;
}

.dltf-input > div {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 54px;
	padding: 0 16px;
	border: 1px solid var(--dltf-line-strong);
	border-radius: 10px;
	background: var(--dltf-panel);
	transition: border-color .2s ease, background .2s ease;
}

.dltf-input > div:focus-within {
	border-color: rgba(210, 161, 91, .72);
	background: var(--dltf-panel-2);
}

.dltf-input > div > svg {
	flex: 0 0 20px;
	color: var(--dltf-muted);
}

.dltf-input input,
.dltf-input textarea {
	width: 100%;
	min-width: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--dltf-text);
}

.dltf-input input {
	min-height: 52px;
}

.dltf-input input::placeholder,
.dltf-input textarea::placeholder {
	color: rgba(245, 242, 236, .34);
}

.dltf-input--textarea {
	margin-top: 16px;
}

.dltf-input--textarea textarea {
	display: block;
	min-height: 118px;
	padding: 15px 16px;
	border: 1px solid var(--dltf-line-strong);
	border-radius: 10px;
	background: var(--dltf-panel);
	resize: vertical;
}

.dltf-note {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 16px;
	padding: 12px 14px;
	border: 1px solid var(--dltf-line);
	border-radius: 10px;
	background: rgba(255, 255, 255, .025);
	color: var(--dltf-muted);
	font-size: 13px;
	line-height: 1.45;
}

.dltf-note svg {
	flex: 0 0 19px;
}

.dltf-extras {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 24px;
}

.dltf-extras label {
	display: flex;
	align-items: center;
	gap: 11px;
	min-height: 52px;
	padding: 11px 14px;
	border: 1px solid var(--dltf-line);
	border-radius: 10px;
	background: rgba(255, 255, 255, .025);
	color: rgba(245, 242, 236, .78);
	cursor: pointer;
}

.dltf-extras input,
.dltf-privacy input {
	accent-color: var(--dltf-gold);
}

.dltf-privacy {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 18px;
	color: var(--dltf-muted);
	font-size: 13px;
	line-height: 1.45;
}

.dltf-honeypot {
	position: fixed !important;
	left: -99999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
}

/* =========================================================
 * 06. Counters
 * ========================================================= */

.dltf-counters {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.dltf-counter {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-width: 0;
	padding: 14px;
	border: 1px solid var(--dltf-line);
	border-radius: 12px;
	background: var(--dltf-panel);
}

.dltf-counter__label {
	display: flex;
	align-items: center;
	gap: 9px;
	min-width: 0;
	color: rgba(245, 242, 236, .78);
	font-size: 14px;
}

.dltf-counter__icon {
	color: var(--dltf-muted);
}

.dltf-counter__control {
	display: grid;
	grid-template-columns: 34px 42px 34px;
	overflow: hidden;
	flex: 0 0 auto;
	border: 1px solid var(--dltf-line);
	border-radius: 9px;
}

.dltf-counter__control button,
.dltf-counter__control input {
	width: 100%;
	height: 36px;
	padding: 0;
	border: 0;
	background: rgba(255, 255, 255, .025);
	color: var(--dltf-text);
	text-align: center;
}

.dltf-counter__control button:hover {
	background: rgba(210, 161, 91, .13);
	color: var(--dltf-gold-light);
}

.dltf-counter__control input {
	appearance: textfield;
	border-right: 1px solid var(--dltf-line);
	border-left: 1px solid var(--dltf-line);
}

.dltf-subtitle {
	margin: 28px 0 14px;
	font-size: 15px;
	font-weight: 700;
}

/* =========================================================
 * 07. Vehicle cards
 * ========================================================= */

.dltf-vehicles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.dltf-vehicle-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	padding: 0;
	border: 1px solid var(--dltf-line-strong);
	border-radius: 14px;
	background: var(--dltf-panel);
	color: var(--dltf-text);
	text-align: left;
	transition: border-color .2s ease, transform .2s ease, opacity .2s ease;
}

.dltf-vehicle-card:hover {
	border-color: rgba(210, 161, 91, .52);
	transform: translateY(-2px);
}

.dltf-vehicle-card.is-selected {
	border-color: var(--dltf-gold-light);
	box-shadow: inset 0 0 0 1px rgba(210, 161, 91, .25);
}

.dltf-vehicle-card.is-disabled {
	cursor: not-allowed;
	opacity: .32;
	filter: grayscale(1);
	transform: none;
}

.dltf-vehicle-card__check {
	position: absolute;
	z-index: 2;
	top: 12px;
	right: 12px;
	display: none;
	width: 28px;
	height: 28px;
	place-items: center;
	border-radius: 50%;
	background: var(--dltf-gold-light);
	color: #17120b;
}

.dltf-vehicle-card__check svg {
	width: 16px;
	height: 16px;
	stroke-width: 2.2;
}

.dltf-vehicle-card.is-selected .dltf-vehicle-card__check {
	display: grid;
}

.dltf-vehicle-card__image {
	display: block;
	aspect-ratio: 16 / 8.5;
	padding: 14px 14px 0;
	background: radial-gradient(circle at 50% 80%, rgba(255, 255, 255, .08), transparent 62%);
}

.dltf-vehicle-card__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.dltf-vehicle-card__content {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 16px;
}

.dltf-vehicle-card__content strong {
	font-size: 17px;
	line-height: 1.25;
}

.dltf-vehicle-card__content small {
	margin-top: 4px;
	color: var(--dltf-muted);
}

.dltf-vehicle-card__meta {
	display: grid;
	gap: 7px;
	margin-top: 15px;
	color: rgba(245, 242, 236, .72);
}

.dltf-vehicle-card__meta em {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 12px;
	font-style: normal;
}

.dltf-vehicle-card__meta svg {
	width: 16px;
	height: 16px;
}

/* =========================================================
 * 08. Summary
 * ========================================================= */

.dltf-summary {
	border-left: 1px solid var(--dltf-line);
	background:
		linear-gradient(180deg, rgba(255,255,255,.025), transparent 32%),
		#151617;
}

.dltf-summary__inner {
	position: sticky;
	top: 24px;
	padding: 36px 30px;
}

.dltf-summary h3 {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0 0 24px;
	border-bottom: 1px solid var(--dltf-line);
	font-family: var(--e-global-typography-primary-font-family, "Cormorant Garamond", Georgia, serif);
	font-size: 27px;
	font-weight: 500;
	line-height: 1.15;
}

.dltf-summary h3 i {
	color: var(--dltf-gold-light);
	font-family: inherit;
	font-style: normal;
}

.dltf-summary__rows {
	display: grid;
	gap: 18px;
	padding: 24px 0;
	border-bottom: 1px solid var(--dltf-line);
}

.dltf-summary__rows > div {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.dltf-summary__rows svg {
	color: var(--dltf-muted);
}

.dltf-summary__rows span {
	color: var(--dltf-muted);
	font-size: 13px;
}

.dltf-summary__rows strong {
	max-width: 145px;
	overflow: hidden;
	font-size: 13px;
	font-weight: 600;
	text-align: right;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dltf-summary__price {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 18px;
	padding-top: 24px;
}

.dltf-summary__price strong {
	color: var(--dltf-gold-light);
	font-family: var(--e-global-typography-primary-font-family, "Cormorant Garamond", Georgia, serif);
	font-size: 34px;
	font-weight: 500;
}

.dltf-summary__price-note {
	margin: 20px 0;
	color: var(--dltf-muted);
	font-size: 13px;
	line-height: 1.5;
}

.dltf-summary__included {
	display: grid;
	gap: 11px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.dltf-summary__included li {
	display: flex;
	align-items: center;
	gap: 9px;
	color: rgba(245, 242, 236, .76);
	font-size: 13px;
}

.dltf-summary__included svg {
	width: 17px;
	height: 17px;
	color: var(--dltf-gold-light);
}

.dltf-button--submit {
	width: 100%;
}

.dltf-summary__secure {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin: 14px 0 0;
	color: var(--dltf-muted);
	font-size: 12px;
	line-height: 1.45;
}

.dltf-summary__secure svg {
	flex: 0 0 19px;
}


/* =========================================================
 * 09. Confirmation state
 * ========================================================= */

.dltf-confirmation {
	overflow: hidden;
	padding: clamp(34px, 6vw, 76px);
	border: 1px solid var(--dltf-line);
	border-radius: var(--dltf-radius);
	background:
		radial-gradient(circle at 50% 0, rgba(210, 161, 91, .12), transparent 38%),
		linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 34%),
		var(--dltf-bg);
	box-shadow: var(--dltf-shadow);
	text-align: center;
}

.dltf-confirmation__check {
	display: grid;
	width: 68px;
	height: 68px;
	margin: 0 auto 24px;
	place-items: center;
	border: 1px solid rgba(210, 161, 91, .72);
	border-radius: 50%;
	background: rgba(210, 161, 91, .10);
	color: var(--dltf-gold-light);
}

.dltf-confirmation__check svg {
	width: 31px;
	height: 31px;
	stroke-width: 1.9;
}

.dltf-confirmation h2 {
	max-width: 760px;
	margin: 0 auto 14px;
	color: var(--dltf-text);
	font-family: var(--e-global-typography-primary-font-family, "Cormorant Garamond", Georgia, serif);
	font-size: clamp(30px, 3vw, 38px);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -.02em;
}

.dltf-confirmation__intro {
	max-width: 700px;
	margin: 0 auto;
	color: var(--dltf-muted);
	font-size: 16px;
	line-height: 1.6;
}

.dltf-confirmation__reference {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin: 28px auto 0;
	padding: 11px 16px;
	border: 1px solid var(--dltf-line);
	border-radius: 999px;
	background: rgba(255, 255, 255, .025);
}

.dltf-confirmation__reference span {
	color: var(--dltf-muted);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .08em;
}

.dltf-confirmation__reference strong {
	color: var(--dltf-gold-light);
	font-size: 15px;
}

.dltf-confirmation__route {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin: 34px 0 24px;
	font-family: var(--e-global-typography-primary-font-family, "Cormorant Garamond", Georgia, serif);
	font-size: clamp(25px, 3vw, 34px);
	line-height: 1.15;
}

.dltf-confirmation__route i {
	color: var(--dltf-gold-light);
	font-style: normal;
}

.dltf-confirmation__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	max-width: 1040px;
	margin: 0 auto;
	text-align: left;
}

.dltf-confirmation__card {
	padding: 24px;
	border: 1px solid var(--dltf-line);
	border-radius: 14px;
	background: var(--dltf-panel);
}

.dltf-confirmation__card h3 {
	margin: 0 0 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--dltf-line);
	color: var(--dltf-text);
	font-family: var(--e-global-typography-primary-font-family, "Cormorant Garamond", Georgia, serif);
	font-size: 25px;
	font-weight: 500;
}

.dltf-confirmation__card dl {
	display: grid;
	gap: 0;
	margin: 0;
}

.dltf-confirmation__card dl > div {
	display: grid;
	grid-template-columns: minmax(120px, .8fr) minmax(0, 1.2fr);
	gap: 16px;
	padding: 11px 0;
	border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.dltf-confirmation__card dl > div:last-child {
	border-bottom: 0;
}

.dltf-confirmation__card dt {
	color: var(--dltf-muted);
	font-size: 13px;
}

.dltf-confirmation__card dd {
	min-width: 0;
	margin: 0;
	color: var(--dltf-text);
	font-size: 13px;
	font-weight: 600;
	text-align: right;
	overflow-wrap: anywhere;
}

.dltf-confirmation__note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	max-width: 760px;
	margin: 24px auto 0;
	color: var(--dltf-muted);
	font-size: 13px;
	line-height: 1.5;
}

.dltf-confirmation__note svg {
	flex: 0 0 19px;
}

.dltf-confirmation__new {
	margin-top: 24px;
}

.dltf.is-confirmed .dltf-full-form {
	display: none;
}

/* =========================================================
 * 10. Messages and states
 * ========================================================= */


.dltf.is-submitting {
	pointer-events: none;
}

.dltf.is-submitting .dltf-button--submit {
	opacity: .65;
}

.dltf input:invalid:not(:placeholder-shown),
.dltf textarea:invalid:not(:placeholder-shown) {
	box-shadow: none;
}

.dltf .is-invalid {
	border-color: rgba(226, 139, 128, .65) !important;
}

/* =========================================================
 * 10. Responsive
 * ========================================================= */

@media (max-width: 1180px) {
	.dltf-hero {
		grid-template-columns: 1fr 1fr;
	}

	.dltf-hero > .dltf-field-shell:first-child {
		border-radius: 19px 0 0 0;
	}

	.dltf-hero > .dltf-field-shell:nth-child(2) {
		border-radius: 0 19px 0 0;
	}

	.dltf-field-shell {
		border-bottom: 1px solid var(--dltf-line);
	}

	.dltf-field-shell:nth-child(2n) {
		border-right: 0;
	}

	.dltf-button--hero {
		grid-column: 1 / -1;
		min-height: 58px;
	}

	.dltf-full {
		grid-template-columns: minmax(0, 1fr) 320px;
	}

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

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

@media (max-width: 900px) {
	.dltf-full {
		grid-template-columns: 1fr;
	}

	.dltf-summary {
		border-top: 1px solid var(--dltf-line);
		border-left: 0;
	}

	.dltf-summary__inner {
		position: static;
	}

	.dltf-counters,
	.dltf-grid--3 {
		grid-template-columns: 1fr;
	}

	.dltf-extras {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 680px) {
	.dltf-hero > .dltf-field-shell:first-child {
		border-radius: 13px 13px 0 0;
	}

	.dltf-hero > .dltf-field-shell:nth-child(2) {
		border-radius: 0;
	}

	.dltf-confirmation__grid {
		grid-template-columns: 1fr;
	}

	.dltf-confirmation__route {
		flex-direction: column;
		gap: 7px;
	}

	.dltf-confirmation__route i {
		transform: rotate(90deg);
	}

	.dltf-confirmation__card {
		padding: 19px 16px;
	}

	.dltf-confirmation__card dl > div {
		grid-template-columns: 1fr;
		gap: 5px;
	}

	.dltf-confirmation__card dd {
		text-align: left;
	}

	.dltf--hero > .dltf-inline-message[data-dltf-hero-message] {
		bottom: 14px;
		width: calc(100vw - 24px);
	}

	.dltf-hero {
		grid-template-columns: 1fr;
		min-height: 0;
		border-radius: 14px;
	}

	.dltf-field-shell,
	.dltf-field-shell:nth-child(2n) {
		padding: 15px 16px;
		border-right: 0;
		border-bottom: 1px solid var(--dltf-line);
	}

	.dltf-field-shell__icon {
		flex-basis: 42px;
		width: 42px;
		height: 42px;
	}

	.dltf-button--hero {
		margin: 14px;
	}

	.dltf-full__main,
	.dltf-summary__inner {
		padding: 26px 18px;
	}

	.dltf-grid--2,
	.dltf-grid--3,
	.dltf-grid--4,
	.dltf-vehicles {
		grid-template-columns: 1fr;
	}

	.dltf-trip-type {
		grid-template-columns: 1fr;
	}

	.dltf-counters {
		gap: 10px;
	}

	.dltf-section__heading h3 {
		font-size: 25px;
	}

	.dltf-summary__rows strong {
		max-width: 120px;
	}
}

/* =========================================================
 * 11. Version 2 — Wizard, editable route and Flatpickr
 * ========================================================= */

.dltf-wizard-nav {
	display: grid;
	grid-template-columns: auto minmax(28px, 1fr) auto minmax(28px, 1fr) auto;
	align-items: center;
	gap: 14px;
	margin: 0 0 18px;
	padding: 20px 22px;
	border: 1px solid var(--dltf-line);
	border-radius: 14px;
	background: rgba(255, 255, 255, .018);
}

.dltf-wizard-nav > i {
	display: block;
	height: 1px;
	background: var(--dltf-line-strong);
	transition: background .2s ease;
}

.dltf-wizard-nav button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	padding: 0;
	border: 0;
	background: transparent !important;
	color: var(--dltf-muted);
	text-align: left;
	box-shadow: none !important;
}

.dltf-wizard-nav button span {
	display: grid;
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	place-items: center;
	border: 1px solid var(--dltf-line-strong);
	border-radius: 50%;
	font-size: 11px;
	transition: all .2s ease;
}

.dltf-wizard-nav button strong {
	overflow: hidden;
	font-size: 13px;
	font-weight: 650;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dltf-wizard-nav button.is-active,
.dltf-wizard-nav button.is-complete {
	color: var(--dltf-text);
}

.dltf-wizard-nav button.is-active span {
	border-color: var(--dltf-gold-light);
	background: linear-gradient(135deg, var(--dltf-gold-light), var(--dltf-gold));
	color: #17120b;
}

.dltf-wizard-nav button.is-complete span {
	border-color: rgba(210, 161, 91, .65);
	color: var(--dltf-gold-light);
}

.dltf-step-panel {
	min-height: 540px;
	animation: dltf-step-in .28s ease both;
}

@keyframes dltf-step-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.dltf-step-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 30px;
	padding-top: 24px;
	border-top: 1px solid var(--dltf-line);
}

.dltf-step-actions--end {
	justify-content: flex-end;
}

.dltf-button--secondary {
	border-color: var(--dltf-line-strong);
	background: transparent !important;
	color: var(--dltf-text) !important;
	box-shadow: none !important;
}

.dltf-button--secondary:hover {
	border-color: rgba(210, 161, 91, .55);
	background: rgba(210, 161, 91, .07) !important;
}

.dltf-button--mobile-submit {
	display: none;
}

.dltf-route-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr);
	align-items: end;
	gap: 12px;
	margin-top: 16px;
}

.dltf-route-swap {
	display: grid;
	width: 46px;
	height: 54px;
	place-items: center;
	padding: 0;
	border: 1px solid rgba(210, 161, 91, .5) !important;
	border-radius: 10px;
	background: rgba(210, 161, 91, .06) !important;
	color: var(--dltf-gold-light) !important;
	font-size: 21px;
	line-height: 1;
	box-shadow: none !important;
	transition: background .2s ease, transform .2s ease;
}

.dltf-route-swap:hover {
	background: rgba(210, 161, 91, .14) !important;
	transform: translateY(-1px);
}

/* The vehicle card is a button, so WordPress/Elementor button styles are reset. */
.dltf .dltf-vehicle-card,
.dltf .dltf-vehicle-card:hover,
.dltf .dltf-vehicle-card:focus {
	appearance: none;
	background: #171819 !important;
	background-image: none !important;
	color: var(--dltf-text) !important;
	box-shadow: none;
}

.dltf .dltf-vehicle-card.is-selected {
	background: #1c1d1f !important;
	border-color: var(--dltf-gold-light) !important;
	box-shadow: inset 0 0 0 1px rgba(210, 161, 91, .22), 0 14px 34px rgba(0, 0, 0, .18);
}

.dltf-vehicle-card__image {
	background:
		radial-gradient(circle at 50% 84%, rgba(255, 255, 255, .09), transparent 56%),
		linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,0)) !important;
}

.dltf-vehicle-card__content {
	min-width: 0;
}

.dltf-vehicle-card__content strong {
	display: block;
	width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dltf-vehicle-card__content small {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dltf .dltf-field-shell input:not([type="radio"]):not([type="checkbox"]),
.dltf .dltf-input input:not([type="radio"]):not([type="checkbox"]) {
	box-shadow: none !important;
}

.dltf-field-shell .flatpickr-input,
.dltf-input .flatpickr-input {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.dltf-flatpickr-alt {
	cursor: pointer;
}

/* =========================================================
 * 12. Flatpickr premium dark skin
 * ========================================================= */

.flatpickr-calendar.dltf-flatpickr-calendar {
	width: 330px;
	padding: 8px;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 14px;
	background: #171819;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .48);
	color: #f5f2ec;
	font-family: inherit;
}

.flatpickr-calendar.dltf-flatpickr-calendar::before,
.flatpickr-calendar.dltf-flatpickr-calendar::after {
	display: none;
}

.dltf-flatpickr-calendar .flatpickr-months,
.dltf-flatpickr-calendar .flatpickr-month,
.dltf-flatpickr-calendar .flatpickr-weekdays,
.dltf-flatpickr-calendar span.flatpickr-weekday {
	background: transparent;
	color: #f5f2ec;
	fill: #f5f2ec;
}

.dltf-flatpickr-calendar .flatpickr-current-month,
.dltf-flatpickr-calendar .flatpickr-current-month input.cur-year,
.dltf-flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months {
	color: #f5f2ec;
	font-size: 15px;
	font-weight: 650;
}

.dltf-flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months,
.dltf-flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months option {
	background: #171819;
}

.dltf-flatpickr-calendar .flatpickr-prev-month,
.dltf-flatpickr-calendar .flatpickr-next-month {
	color: rgba(245, 242, 236, .72);
	fill: rgba(245, 242, 236, .72);
}

.dltf-flatpickr-calendar .flatpickr-prev-month:hover svg,
.dltf-flatpickr-calendar .flatpickr-next-month:hover svg {
	fill: var(--dltf-gold-light, #efc982);
}

.dltf-flatpickr-calendar span.flatpickr-weekday {
	color: rgba(245, 242, 236, .44);
	font-size: 11px;
	font-weight: 600;
}

.dltf-flatpickr-calendar .flatpickr-day {
	border-color: transparent;
	color: rgba(245, 242, 236, .86);
}

.dltf-flatpickr-calendar .flatpickr-day:hover,
.dltf-flatpickr-calendar .flatpickr-day:focus {
	border-color: rgba(210, 161, 91, .32);
	background: rgba(210, 161, 91, .12);
	color: #fff;
}

.dltf-flatpickr-calendar .flatpickr-day.today {
	border-color: rgba(210, 161, 91, .66);
}

.dltf-flatpickr-calendar .flatpickr-day.selected,
.dltf-flatpickr-calendar .flatpickr-day.startRange,
.dltf-flatpickr-calendar .flatpickr-day.endRange {
	border-color: #d2a15b;
	background: #d2a15b;
	color: #17120b;
}

.dltf-flatpickr-calendar .flatpickr-day.prevMonthDay,
.dltf-flatpickr-calendar .flatpickr-day.nextMonthDay,
.dltf-flatpickr-calendar .flatpickr-day.flatpickr-disabled {
	color: rgba(245, 242, 236, .2);
}

.dltf-flatpickr-calendar.hasTime.noCalendar {
	width: 210px;
	padding: 10px;
}

.dltf-flatpickr-calendar .flatpickr-time {
	border-top: 0;
}

.dltf-flatpickr-calendar .flatpickr-time input,
.dltf-flatpickr-calendar .flatpickr-time .flatpickr-am-pm,
.dltf-flatpickr-calendar .flatpickr-time .flatpickr-time-separator {
	background: transparent;
	color: #f5f2ec;
}

.dltf-flatpickr-calendar .flatpickr-time input:hover,
.dltf-flatpickr-calendar .flatpickr-time input:focus,
.dltf-flatpickr-calendar .flatpickr-time .flatpickr-am-pm:hover,
.dltf-flatpickr-calendar .flatpickr-time .flatpickr-am-pm:focus {
	background: rgba(210, 161, 91, .10);
}

.dltf-flatpickr-calendar .numInputWrapper span {
	border-color: rgba(255, 255, 255, .08);
}

.dltf-flatpickr-calendar .numInputWrapper span.arrowUp::after {
	border-bottom-color: rgba(245, 242, 236, .6);
}

.dltf-flatpickr-calendar .numInputWrapper span.arrowDown::after {
	border-top-color: rgba(245, 242, 236, .6);
}

/* =========================================================
 * 13. Version 2 responsive additions
 * ========================================================= */

@media (max-width: 900px) {
	.dltf-step-panel {
		min-height: 0;
	}

	.dltf-button--mobile-submit {
		display: inline-flex;
	}

	.dltf-summary .dltf-button--submit {
		display: none;
	}
}

@media (max-width: 680px) {
	.dltf-wizard-nav {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 6px;
		padding: 12px;
	}

	.dltf-wizard-nav > i {
		display: none;
	}

	.dltf-wizard-nav button {
		justify-content: center;
		gap: 7px;
	}

	.dltf-wizard-nav button strong {
		font-size: 11px;
	}

	.dltf-wizard-nav button span {
		flex-basis: 30px;
		width: 30px;
		height: 30px;
	}

	.dltf-route-grid {
		grid-template-columns: 1fr;
	}

	.dltf-route-swap {
		width: 44px;
		height: 40px;
		margin: -3px auto;
		transform: rotate(90deg);
	}

	.dltf-route-swap:hover {
		transform: rotate(90deg) translateY(-1px);
	}

	.dltf-step-actions {
		align-items: stretch;
		flex-direction: column-reverse;
	}

	.dltf-step-actions--end {
		flex-direction: column;
	}

	.dltf-step-actions .dltf-button {
		width: 100%;
	}

	.flatpickr-calendar.dltf-flatpickr-calendar {
		width: min(330px, calc(100vw - 24px));
	}
}
