/* ==========================================================================
   DeVsN Booking Popup Form — v3.7.7
   Glass-first modal form with 6 templates. Dependency free.
   ========================================================================== */

body.devsn-form-lock {
	overflow: hidden;
}

.devsn-form-modal {
	--devsn-f-accent: #0f5132;
	--devsn-f-accent2: #c9a227;
	--devsn-f-ink: #10231a;
	--devsn-f-muted: #5b6b63;
	--devsn-f-surface: rgba(255, 255, 255, 0.72);
	--devsn-f-edge: rgba(255, 255, 255, 0.65);
	--devsn-f-field: rgba(255, 255, 255, 0.6);
	--devsn-f-field-ink: #10231a;
	--devsn-f-radius: 22px;
	--devsn-f-blur: 20px;
	--devsn-f-overlay: rgba(8, 20, 15, 0.55);
	--devsn-f-btn-bg: linear-gradient(135deg, var(--devsn-f-accent), var(--devsn-f-accent2));
	--devsn-f-btn-ink: #ffffff;

	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.28s ease, visibility 0.28s ease;
}

.devsn-form-modal.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.devsn-form-modal__overlay {
	position: absolute;
	inset: 0;
	background: var(--devsn-f-overlay);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.devsn-form-modal__box {
	position: relative;
	width: min(560px, 100%);
	max-height: 88vh;
	overflow-y: auto;
	border-radius: var(--devsn-f-radius);
	background: var(--devsn-f-surface);
	border: 1px solid var(--devsn-f-edge);
	box-shadow: 0 30px 80px rgba(6, 20, 14, 0.35);
	backdrop-filter: blur(var(--devsn-f-blur)) saturate(160%);
	-webkit-backdrop-filter: blur(var(--devsn-f-blur)) saturate(160%);
	padding: 28px;
	color: var(--devsn-f-ink);
	transform: translateY(18px) scale(0.98);
	opacity: 0;
	transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.32s ease;
}

.devsn-form-modal.is-open .devsn-form-modal__box {
	transform: translateY(0) scale(1);
	opacity: 1;
}

.devsn-form-modal__close {
	position: absolute;
	top: 12px;
	inset-inline-end: 12px;
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--devsn-f-edge);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.35);
	color: inherit;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: transform 0.2s ease, background 0.2s ease;
}

.devsn-form-modal__close:hover {
	transform: rotate(90deg);
	background: rgba(255, 255, 255, 0.6);
}

/* ------------------------------- Header -------------------------------- */

.devsn-form__head {
	margin-bottom: 18px;
	padding-inline-end: 34px;
}

.devsn-form__title {
	margin: 0 0 6px;
	font-size: 24px;
	line-height: 1.25;
	font-weight: 700;
	color: var(--devsn-f-ink);
}

.devsn-form__subtitle {
	margin: 0;
	font-size: 14px;
	color: var(--devsn-f-muted);
}

.devsn-form__plan {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	padding: 7px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	color: var(--devsn-f-accent);
	background: rgba(255, 255, 255, 0.55);
	border: 1px solid var(--devsn-f-edge);
}

.devsn-form__plan-price {
	color: var(--devsn-f-muted);
	font-weight: 500;
}

/* ------------------------------- Fields -------------------------------- */

.devsn-form__grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 14px;
}

.devsn-form__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	grid-column: span 6;
	min-width: 0;
}

.devsn-form__field.is-half {
	grid-column: span 3;
}

.devsn-form__field.is-third {
	grid-column: span 2;
}

.devsn-form__label {
	font-size: 13px;
	font-weight: 600;
	color: var(--devsn-f-ink);
}

.devsn-form__label .devsn-form__req {
	color: #d64545;
	margin-inline-start: 3px;
}

.devsn-form__control {
	position: relative;
	display: flex;
	align-items: center;
}

.devsn-form__icon {
	position: absolute;
	inset-inline-start: 13px;
	top: 13px;
	display: inline-flex;
	color: var(--devsn-f-accent);
	font-size: 15px;
	pointer-events: none;
}

.devsn-form__icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.devsn-form__field textarea ~ .devsn-form__icon {
	top: 14px;
}

.devsn-form__input {
	width: 100%;
	padding: 12px 14px;
	border-radius: 12px;
	border: 1px solid var(--devsn-f-edge);
	background: var(--devsn-f-field);
	color: var(--devsn-f-field-ink);
	font-size: 14px;
	font-family: inherit;
	line-height: 1.5;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.devsn-form__field.has-icon .devsn-form__input {
	padding-inline-start: 38px;
}

.devsn-form__input::placeholder {
	color: var(--devsn-f-muted);
	opacity: 0.85;
}

.devsn-form__input:focus {
	outline: none;
	border-color: var(--devsn-f-accent);
	box-shadow: 0 0 0 3px rgba(15, 81, 50, 0.15);
	background: rgba(255, 255, 255, 0.8);
}

.devsn-form__field textarea.devsn-form__input {
	min-height: 110px;
	resize: vertical;
}

.devsn-form__field.has-error .devsn-form__input {
	border-color: #d64545;
	box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.14);
}

.devsn-form__hp {
	position: absolute !important;
	left: -9999px !important;
	opacity: 0;
	height: 0;
	width: 0;
}

/* ------------------------------ Actions -------------------------------- */

.devsn-form__error {
	display: none;
	margin-top: 14px;
	padding: 10px 14px;
	border-radius: 12px;
	background: rgba(214, 69, 69, 0.12);
	border: 1px solid rgba(214, 69, 69, 0.35);
	color: #a32a2a;
	font-size: 13px;
}

.devsn-form__error.is-visible {
	display: block;
}

.devsn-form__actions {
	margin-top: 18px;
}

.devsn-form__submit {
	position: relative;
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 14px 22px;
	border: none;
	border-radius: 14px;
	background: var(--devsn-f-btn-bg);
	color: var(--devsn-f-btn-ink);
	font-size: 15px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	box-shadow: 0 14px 30px rgba(15, 81, 50, 0.28);
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.devsn-form__submit:hover {
	transform: translateY(-2px);
	filter: brightness(1.05);
	box-shadow: 0 18px 38px rgba(15, 81, 50, 0.34);
}

.devsn-form__submit[disabled] {
	opacity: 0.75;
	cursor: not-allowed;
	transform: none;
}

.devsn-form__submit.is-loading .devsn-form__submit-text {
	opacity: 0.45;
}

.devsn-form__submit.is-loading::after {
	content: "";
	position: absolute;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: currentColor;
	animation: devsn-form-spin 0.7s linear infinite;
}

@keyframes devsn-form-spin {
	to {
		transform: rotate(360deg);
	}
}

.devsn-form__note {
	margin-top: 10px;
	text-align: center;
	font-size: 12px;
	color: var(--devsn-f-muted);
}

.devsn-form.is-hidden {
	display: none;
}

/* ------------------------------ Thank you ------------------------------ */

.devsn-form__thanks {
	display: none;
	text-align: center;
	padding: 12px 4px 6px;
}

.devsn-form__thanks.is-visible {
	display: block;
	animation: devsn-form-pop 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes devsn-form-pop {
	from {
		opacity: 0;
		transform: translateY(14px) scale(0.96);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.devsn-form__thanks-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 84px;
	height: 84px;
	margin-bottom: 16px;
	border-radius: 50%;
	font-size: 34px;
	color: var(--devsn-f-btn-ink);
	background: var(--devsn-f-btn-bg);
	box-shadow: 0 16px 36px rgba(15, 81, 50, 0.3);
}

.devsn-form__thanks-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.devsn-form__thanks-title {
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 700;
	color: var(--devsn-f-ink);
}

.devsn-form__thanks-text {
	margin: 0 auto;
	max-width: 42ch;
	font-size: 14px;
	line-height: 1.7;
	color: var(--devsn-f-muted);
}

.devsn-form__thanks-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 20px;
	padding: 12px 26px;
	border-radius: 14px;
	background: var(--devsn-f-btn-bg);
	color: var(--devsn-f-btn-ink);
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	border: none;
	cursor: pointer;
	font-family: inherit;
	transition: transform 0.2s ease, filter 0.2s ease;
}

.devsn-form__thanks-btn:hover {
	transform: translateY(-2px);
	filter: brightness(1.05);
	color: var(--devsn-f-btn-ink);
}

/* ------------------------------ Templates ------------------------------ */

/* Glass (default) — extra sheen. */
.devsn-form-modal--tpl-glass .devsn-form-modal__box::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 55%);
	pointer-events: none;
}

/* Minimal */
.devsn-form-modal--tpl-minimal {
	--devsn-f-surface: #ffffff;
	--devsn-f-edge: #e6e9e7;
	--devsn-f-field: #f6f8f7;
	--devsn-f-radius: 16px;
	--devsn-f-overlay: rgba(14, 20, 18, 0.45);
}

.devsn-form-modal--tpl-minimal .devsn-form-modal__box {
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	box-shadow: 0 24px 60px rgba(10, 20, 16, 0.18);
}

/* Dark */
.devsn-form-modal--tpl-dark {
	--devsn-f-surface: rgba(18, 24, 22, 0.82);
	--devsn-f-edge: rgba(255, 255, 255, 0.12);
	--devsn-f-field: rgba(255, 255, 255, 0.07);
	--devsn-f-field-ink: #f2f6f4;
	--devsn-f-ink: #f4f8f6;
	--devsn-f-muted: #a8b6b0;
	--devsn-f-overlay: rgba(3, 8, 6, 0.7);
}

.devsn-form-modal--tpl-dark .devsn-form__plan,
.devsn-form-modal--tpl-dark .devsn-form-modal__close {
	background: rgba(255, 255, 255, 0.08);
	color: var(--devsn-f-ink);
}

.devsn-form-modal--tpl-dark .devsn-form__input:focus {
	background: rgba(255, 255, 255, 0.12);
}

/* Gradient */
.devsn-form-modal--tpl-gradient .devsn-form-modal__box {
	background: linear-gradient(150deg, rgba(255, 255, 255, 0.9), rgba(233, 244, 238, 0.85));
	border-color: rgba(255, 255, 255, 0.9);
}

.devsn-form-modal--tpl-gradient .devsn-form__title {
	background: var(--devsn-f-btn-bg);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* Split — accent head strip */
.devsn-form-modal--tpl-split .devsn-form-modal__box {
	padding-top: 0;
	overflow: hidden;
}

.devsn-form-modal--tpl-split .devsn-form__head {
	margin: 0 -28px 20px;
	padding: 26px 28px 22px;
	background: var(--devsn-f-btn-bg);
	color: var(--devsn-f-btn-ink);
}

.devsn-form-modal--tpl-split .devsn-form__title,
.devsn-form-modal--tpl-split .devsn-form__subtitle {
	color: var(--devsn-f-btn-ink);
}

.devsn-form-modal--tpl-split .devsn-form__plan {
	background: rgba(255, 255, 255, 0.2);
	color: var(--devsn-f-btn-ink);
	border-color: rgba(255, 255, 255, 0.35);
}

.devsn-form-modal--tpl-split .devsn-form__plan-price {
	color: rgba(255, 255, 255, 0.85);
}

/* Neon */
.devsn-form-modal--tpl-neon {
	--devsn-f-surface: rgba(10, 14, 24, 0.86);
	--devsn-f-edge: rgba(120, 235, 255, 0.35);
	--devsn-f-field: rgba(255, 255, 255, 0.06);
	--devsn-f-field-ink: #eaf7ff;
	--devsn-f-ink: #eaf7ff;
	--devsn-f-muted: #93a9be;
	--devsn-f-overlay: rgba(2, 4, 10, 0.72);
}

.devsn-form-modal--tpl-neon .devsn-form-modal__box {
	box-shadow: 0 0 0 1px rgba(120, 235, 255, 0.25), 0 0 60px rgba(80, 220, 255, 0.25);
}

.devsn-form-modal--tpl-neon .devsn-form__input:focus {
	box-shadow: 0 0 0 3px rgba(120, 235, 255, 0.25);
}

.devsn-form-modal--tpl-neon .devsn-form-modal__close,
.devsn-form-modal--tpl-neon .devsn-form__plan {
	background: rgba(255, 255, 255, 0.06);
	color: var(--devsn-f-ink);
}

/* ------------------------------ Responsive ----------------------------- */

@media (max-width: 600px) {
	.devsn-form-modal__box {
		padding: 22px 18px;
	}

	.devsn-form__field.is-half,
	.devsn-form__field.is-third {
		grid-column: span 6;
	}

	.devsn-form-modal--tpl-split .devsn-form__head {
		margin: 0 -18px 18px;
		padding: 22px 18px 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.devsn-form-modal,
	.devsn-form-modal__box,
	.devsn-form__submit,
	.devsn-form__thanks.is-visible {
		transition: none !important;
		animation: none !important;
	}
}


/* --------------------------------------------------------------------------
   v3.7.7 — portal host, new field types, helpers
   -------------------------------------------------------------------------- */
.devsn-form-portal {
	position: relative;
	z-index: 2147483000;
}

.devsn-form-portal .elementor-element {
	position: static;
}

/* Elementor editor: keep the dialog interactive & above editor handles. */
body.elementor-editor-active .devsn-form-modal.is-open,
body.elementor-editor-active .devsn-form-modal.is-open * {
	pointer-events: auto;
}

body.elementor-editor-active .devsn-form-modal.is-open .devsn-form__input,
body.elementor-editor-active .devsn-form-modal.is-open select,
body.elementor-editor-active .devsn-form-modal.is-open textarea {
	user-select: text;
	-webkit-user-select: text;
	cursor: text;
}

.devsn-form__field.is-hidden-field {
	display: none;
}

.devsn-form__heading {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--devsn-f-ink);
	padding-top: 6px;
	border-top: 1px solid var(--devsn-f-edge);
}

.devsn-form__field--heading:first-child .devsn-form__heading {
	padding-top: 0;
	border-top: 0;
}

.devsn-form__help {
	font-size: 12px;
	line-height: 1.4;
	color: var(--devsn-f-muted);
}

.devsn-form__choices {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	width: 100%;
}

.devsn-form__choice {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--devsn-f-field-ink);
	cursor: pointer;
	padding: 8px 12px;
	border-radius: 10px;
	border: 1px solid var(--devsn-f-edge);
	background: var(--devsn-f-field);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.devsn-form__choice--single {
	width: 100%;
}

.devsn-form__choice input {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: var(--devsn-f-accent);
	flex: 0 0 auto;
}

.devsn-form__choice:has(input:checked) {
	border-color: var(--devsn-f-accent);
	box-shadow: 0 0 0 3px rgba(15, 81, 50, 0.12);
}

.devsn-form__field.has-error .devsn-form__choice {
	border-color: #d64545;
}

.devsn-form--labels-inside .devsn-form__label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.devsn-form__input[type='date'],
.devsn-form__input[type='time'] {
	min-height: 46px;
}

select.devsn-form__input {
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%235b6b63' stroke-width='1.8' stroke-linecap='round'/></svg>");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-inline-end: 36px;
}
