/* ==========================================================================
   Free trial popup and shared enquiry form styles
   ========================================================================== */
.oqa-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.oqa-modal {
	position: fixed;
	inset: 0;
	z-index: 1300;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.oqa-modal[hidden] {
	display: none;
}

.oqa-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(29, 19, 40, 0.62);
	backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity 0.3s var(--oqa-ease);
}

.oqa-modal.is-open .oqa-modal__overlay {
	opacity: 1;
}

.oqa-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 600px;
	max-height: calc(100vh - 40px);
	max-height: calc(100dvh - 40px);
	overflow-y: auto;
	padding: 34px 34px 30px;
	background: #fbf8f1;
	border-radius: 18px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
	opacity: 0;
	transform: translateY(16px) scale(0.98);
	transition: opacity 0.3s var(--oqa-ease), transform 0.3s var(--oqa-ease);
	overscroll-behavior: contain;
}

.oqa-modal.is-open .oqa-modal__dialog {
	opacity: 1;
	transform: none;
}

.oqa-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	font-size: 18px;
	color: var(--oqa-green-900);
	background: #efe9da;
	border: 1px solid rgba(69, 47, 95, 0.12);
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.2s var(--oqa-ease);
}

.oqa-modal__close:hover {
	background: #e6dcc4;
}

.oqa-modal__close:focus-visible {
	outline: 2px solid var(--oqa-gold-500);
	outline-offset: 2px;
}

.oqa-modal__kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--oqa-gold-600);
}

.oqa-modal__kicker-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	font-size: 16px;
	color: var(--oqa-green-800);
	background: #e7eee8;
	border-radius: 9px;
}

.oqa-modal__title {
	margin: 12px 0 6px;
	padding-right: 30px;
	font-size: clamp(26px, 4vw, 36px);
	font-weight: 700;
	line-height: 1.12;
	color: var(--oqa-green-900);
}

.oqa-modal__sub {
	margin: 0 0 22px;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--oqa-muted);
}

/* Form */
.oqa-tform__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 16px;
	margin-bottom: 14px;
}

.oqa-tform__field {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.oqa-tform__field + .oqa-tform__field {
	margin-top: 14px;
}

.oqa-tform__grid .oqa-tform__field + .oqa-tform__field {
	margin-top: 0;
}

.oqa-tform__field > label,
.oqa-tform__field > legend {
	display: block;
	margin-bottom: 7px;
	padding: 0;
	font-size: 13.5px;
	font-weight: 800;
	color: var(--oqa-green-900);
}

.oqa-tform__field label span,
.oqa-tform__field legend span {
	color: var(--oqa-gold-600);
}

.oqa-tform input[type="text"],
.oqa-tform input[type="email"],
.oqa-tform input[type="tel"],
.oqa-tform select,
.oqa-tform textarea {
	display: block;
	width: 100%;
	height: 48px;
	padding: 0 14px;
	font-family: var(--oqa-font-body);
	font-size: 15px;
	color: var(--oqa-text);
	background: #fffefa;
	border: 1.5px solid rgba(69, 47, 95, 0.15);
	border-radius: 10px;
	outline: 0;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.2s var(--oqa-ease), box-shadow 0.2s var(--oqa-ease);
}

.oqa-tform textarea {
	height: auto;
	min-height: 120px;
	padding: 12px 14px;
	resize: vertical;
}

.oqa-tform select {
	padding-right: 40px;
	cursor: pointer;
	background: #fffefa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b4034' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 15px;
}

.oqa-tform ::placeholder {
	color: #98a29e;
}

.oqa-tform input:focus,
.oqa-tform select:focus,
.oqa-tform textarea:focus {
	border-color: var(--oqa-gold-500);
	box-shadow: 0 0 0 4px rgba(216, 171, 82, 0.25);
}

.oqa-tform__field.has-error input,
.oqa-tform__field.has-error select,
.oqa-tform__field.has-error textarea {
	border-color: #c4503d;
	background-color: #fdf6f4;
}

.oqa-tform__msg {
	display: block;
	margin-top: 5px;
	font-size: 12.5px;
	font-weight: 700;
	color: #c4503d;
}

.oqa-tform__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.oqa-tform__pill {
	position: relative;
	cursor: pointer;
}

.oqa-tform__pill input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.oqa-tform__pill span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 52px;
	height: 38px;
	padding: 0 12px;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--oqa-green-900);
	background: #fffefa;
	border: 1.5px solid rgba(69, 47, 95, 0.15);
	border-radius: var(--oqa-radius-pill);
	transition: background 0.2s var(--oqa-ease), color 0.2s var(--oqa-ease), border-color 0.2s var(--oqa-ease);
}

.oqa-tform__pill:hover span {
	border-color: var(--oqa-gold-500);
}

.oqa-tform__pill input:checked + span {
	color: var(--oqa-white);
	background: var(--oqa-green-800);
	border-color: var(--oqa-green-800);
}

.oqa-tform__pill input:focus-visible + span {
	box-shadow: 0 0 0 4px rgba(216, 171, 82, 0.35);
}

.oqa-tform__days.has-error .oqa-tform__pill span {
	border-color: #e2a397;
}

.oqa-tform__hint {
	display: block;
	margin-top: 5px;
	font-size: 12px;
	color: var(--oqa-muted);
}

.oqa-tform__note {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 16px 0 0;
	padding: 10px 12px;
	font-size: 12.5px;
	color: var(--oqa-green-900);
	background: #e9eee7;
	border-radius: 9px;
}

.oqa-tform__note .oqa-icon {
	font-size: 15px;
	color: var(--oqa-green-700);
}

.oqa-tform__error {
	margin: 12px 0 0;
	padding: 10px 12px;
	font-size: 13.5px;
	font-weight: 700;
	color: #8a2f20;
	background: #fbe9e5;
	border-radius: 9px;
}

.oqa-tform__error[hidden] {
	display: none;
}

.oqa-tform__submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 54px;
	margin-top: 16px;
	font-family: var(--oqa-font-body);
	font-size: 15.5px;
	font-weight: 800;
	color: var(--oqa-white);
	background: linear-gradient(160deg, var(--oqa-green-700) 0%, var(--oqa-green-900) 100%);
	border: 0;
	border-radius: 11px;
	box-shadow: 0 10px 22px rgba(42, 29, 58, 0.25);
	cursor: pointer;
	transition: transform 0.2s var(--oqa-ease), box-shadow 0.2s var(--oqa-ease);
}

.oqa-tform__submit:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 28px rgba(42, 29, 58, 0.3);
}

.oqa-tform__submit:focus-visible {
	outline: 2px solid var(--oqa-gold-500);
	outline-offset: 3px;
}

.oqa-tform__submit[disabled] {
	opacity: 0.7;
	cursor: wait;
	transform: none;
}

.oqa-tform__submit .oqa-icon {
	font-size: 17px;
}

/* Success state */
.oqa-modal__done {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 20px 0 6px;
	text-align: center;
	outline: 0;
}

.oqa-modal__done[hidden] {
	display: none;
}

.oqa-modal__done-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	font-size: 30px;
	color: var(--oqa-white);
	background: radial-gradient(circle at 30% 30%, var(--oqa-green-600), var(--oqa-green-900));
	border-radius: 50%;
	box-shadow: 0 0 0 8px rgba(69, 47, 95, 0.1);
}

.oqa-modal__done .oqa-modal__title {
	padding: 0;
}

.oqa-modal__done .oqa-btn .oqa-icon {
	font-size: 19px;
}

.oqa-modal__link {
	margin-top: 14px;
	padding: 6px;
	font-family: var(--oqa-font-body);
	font-size: 14px;
	font-weight: 700;
	color: var(--oqa-muted);
	background: none;
	border: 0;
	cursor: pointer;
	text-decoration: underline;
}

body.oqa-modal-open {
	overflow: hidden;
}

@media (max-width: 560px) {
	.oqa-modal {
		align-items: flex-end;
		padding: 0;
	}

	.oqa-modal__dialog {
		max-height: 94vh;
		max-height: 94dvh;
		padding: 26px 18px 22px;
		border-radius: 18px 18px 0 0;
		transform: translateY(40px);
	}

	.oqa-tform__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.oqa-tform__pill span {
		min-width: 46px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.oqa-modal__dialog,
	.oqa-modal__overlay {
		transition: none;
	}
}
