/* SoftWEB Enquiry - modal wizard, matching the site's design system */

.sw-enq-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background-color: rgba(10, 30, 38, 0.55);
	overflow-y: auto;
}

.sw-enq-overlay[hidden] { display: none; }

body.sw-enq-open { overflow: hidden; }

.sw-enq-modal {
	position: relative;
	width: 100%;
	max-width: 620px;
	background-color: #ffffff;
	border-radius: 24px;
	box-shadow: 0 30px 80px rgba(10, 30, 38, 0.35);
	animation: sw-enq-in 0.34s cubic-bezier(0.32, 0.72, 0, 1) both;
}

@keyframes sw-enq-in {
	from { opacity: 0; transform: translateY(22px) scale(0.985); }
	to   { opacity: 1; transform: none; }
}

/* head */

.sw-enq-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px 0;
}

.sw-enq-langs { display: flex; gap: 4px; }

.sw-enq-lang {
	appearance: none;
	border: 0;
	background: transparent;
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: rgba(18, 52, 64, 0.45);
	padding: 6px 10px;
	border-radius: 999px;
	cursor: pointer;
}

.sw-enq-lang.is-active {
	color: #123440;
	background-color: #f0edea;
}

.sw-enq-close {
	appearance: none;
	border: 0;
	background: transparent;
	font-size: 30px;
	line-height: 1;
	color: rgba(18, 52, 64, 0.4);
	cursor: pointer;
	padding: 0 4px;
}

.sw-enq-close:hover { color: #123440; }

/* body */

.sw-enq-body { padding: 6px 34px 34px; }

.sw-enq-title {
	font-family: 'Outfit', sans-serif;
	font-size: 26px;
	font-weight: 800;
	line-height: 1.2;
	color: #123440;
	margin: 0 0 8px;
}

.sw-enq-sub {
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: rgba(18, 52, 64, 0.72);
	margin: 0 0 22px;
}

.sw-enq-progress {
	height: 4px;
	border-radius: 999px;
	background-color: #eceef0;
	overflow: hidden;
	margin-bottom: 10px;
}

.sw-enq-bar {
	display: block;
	height: 100%;
	width: 25%;
	border-radius: 999px;
	background-color: #f4ac03;
	transition: width 0.36s cubic-bezier(0.32, 0.72, 0, 1);
}

.sw-enq-step {
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #097196;
	margin: 0 0 20px;
}

/* panels */

.sw-enq-panel { display: none; }
.sw-enq-panel.is-active { display: block; }

.sw-enq-label {
	display: block;
	font-family: 'Outfit', sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	color: #123440;
	margin: 0 0 6px;
}

.sw-enq-help {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	line-height: 1.6;
	color: rgba(18, 52, 64, 0.6);
	margin: 0 0 14px;
}

.sw-enq-textarea,
.sw-enq-input {
	width: 100%;
	box-sizing: border-box;
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: #123440;
	background-color: #fbfbfa;
	border: 1px solid rgba(18, 52, 64, 0.16);
	border-radius: 12px;
	padding: 13px 15px;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.sw-enq-textarea { resize: vertical; min-height: 118px; }

.sw-enq-textarea:focus,
.sw-enq-input:focus {
	outline: none;
	border-color: #097196;
	box-shadow: 0 0 0 3px rgba(9, 113, 150, 0.14);
	background-color: #ffffff;
}

.sw-enq-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 16px;
}

.sw-enq-field { display: flex; flex-direction: column; }

.sw-enq-mini {
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: rgba(18, 52, 64, 0.65);
	margin-bottom: 6px;
}

/* consent */

.sw-enq-consent {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	margin: 4px 0 6px;
	cursor: pointer;
}

.sw-enq-consent input {
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: #097196;
	flex: none;
}

.sw-enq-consent-text {
	font-family: 'Inter', sans-serif;
	font-size: 13.5px;
	line-height: 1.6;
	color: rgba(18, 52, 64, 0.78);
}

.sw-enq-consent-text a { color: #097196; text-decoration: underline; }

.sw-enq-turnstile { margin: 14px 0 4px; min-height: 0; }

.sw-enq-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* errors */

.sw-enq-error {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	line-height: 1.5;
	color: #c02b2b;
	margin: 7px 0 0;
	display: none;
}

.sw-enq-error.is-visible { display: block; }

.sw-enq-error--form { margin-top: 14px; }

/* actions */

.sw-enq-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 26px;
}

.sw-enq-btn {
	appearance: none;
	border: 0;
	font-family: 'Outfit', sans-serif;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1;
	color: #123440;
	background-color: #f4ac03;
	padding: 16px 30px;
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
	margin-left: auto;
}

.sw-enq-btn:hover { background-color: #ebbf20; transform: translateY(-2px); }
.sw-enq-btn:disabled { opacity: 0.6; cursor: default; transform: none; }

.sw-enq-btn--ghost {
	background-color: transparent;
	color: rgba(18, 52, 64, 0.7);
	padding: 16px 8px;
	margin-left: 0;
	text-transform: none;
	letter-spacing: 0;
	font-size: 15px;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.sw-enq-btn--ghost:hover { background-color: transparent; color: #123440; transform: none; }

.sw-enq-btn:focus-visible,
.sw-enq-close:focus-visible,
.sw-enq-lang:focus-visible {
	outline: 3px solid rgba(9, 113, 150, 0.45);
	outline-offset: 2px;
}

/* success */

.sw-enq-done { text-align: center; padding: 16px 0 6px; }

.sw-enq-tick { width: 62px; height: 62px; margin: 0 auto 18px; color: #097196; }
.sw-enq-tick svg { width: 100%; height: 100%; }

.sw-enq-done-title {
	font-family: 'Outfit', sans-serif;
	font-size: 24px;
	font-weight: 800;
	color: #123440;
	margin: 0 0 10px;
}

.sw-enq-done-text {
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	line-height: 1.7;
	color: rgba(18, 52, 64, 0.75);
	margin: 0 auto 24px;
	max-width: 420px;
}

.sw-enq-done .sw-enq-btn { margin: 0 auto; }

/* mobile */

@media (max-width: 640px) {
	.sw-enq-overlay { padding: 0; align-items: flex-end; }

	.sw-enq-modal {
		max-width: 100%;
		border-radius: 22px 22px 0 0;
		max-height: 94vh;
		overflow-y: auto;
	}

	.sw-enq-body { padding: 4px 20px 26px; }
	.sw-enq-title { font-size: 22px; }
	.sw-enq-label { font-size: 18px; }
	.sw-enq-grid { grid-template-columns: minmax(0, 1fr); }

	.sw-enq-actions { flex-wrap: wrap; }
	.sw-enq-btn { width: 100%; margin-left: 0; text-align: center; }
	.sw-enq-btn--ghost { width: auto; order: 2; }
}

@media (prefers-reduced-motion: reduce) {
	.sw-enq-modal { animation: none; }
	.sw-enq-bar { transition: none; }
	.sw-enq-btn { transition: none; }
	.sw-enq-btn:hover { transform: none; }
}
