.qqf-wrap {
	--qqf-primary: #12A9CB;
	--qqf-button: #002838;
	--qqf-radius: 14px;
	box-sizing: border-box;
	width: 585px;
	max-width: 100%;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

.qqf-form {
	background: var(--qqf-primary);
	border-radius: var(--qqf-radius);
	padding: 24px;
	color: #fff;
	position: relative;
	min-height: 367px;
	box-sizing: border-box;
}

@media (max-width: 639px) {
	.qqf-form {
		padding: 20px 16px;
		min-height: auto;
	}

	.qqf-header .qqf-title {
		font-size: 24px !important;
	}

	.qqf-call {
		font-size: 15px !important;
	}
}

/* Hard-reset text color/typography for our own elements so theme
   or page-builder global heading/paragraph styles (h1-h6, p, label,
   a color rules etc.) can't leak in and override the design. */
.qqf-wrap h1,
.qqf-wrap h2,
.qqf-wrap h3,
.qqf-wrap p,
.qqf-wrap span,
.qqf-wrap label,
.qqf-wrap div {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

.qqf-header .qqf-title,
.qqf-call,
.qqf-call a,
.qqf-sub,
.qqf-radio-label,
.qqf-radio-group label,
.qqf-consent-row,
.qqf-consent-footer,
.qqf-consent-footer a,
.qqf-success p {
	color: #fff !important;
	text-shadow: none !important;
}

.qqf-hp {
	position: absolute;
	left: -9999px;
	top: -9999px;
	height: 0;
	overflow: hidden;
}

.qqf-header .qqf-title {
	margin: 0 0 6px !important;
	padding: 0 !important;
	font-size: 28px !important;
	line-height: 1.15 !important;
	font-weight: 800 !important;
	text-transform: uppercase !important;
	letter-spacing: .01em;
}

.qqf-call {
	font-size: 17px !important;
	font-weight: 700 !important;
	margin: 0 0 4px !important;
	padding: 0 !important;
}

.qqf-call a {
	text-decoration: none;
}

.qqf-sub {
	font-size: 12px !important;
	font-weight: 400 !important;
	opacity: .9;
	margin: 0 0 16px !important;
	padding: 0 !important;
}

.qqf-progress {
	display: flex;
	gap: 6px;
	margin-bottom: 16px;
}

.qqf-dot {
	height: 5px;
	flex: 1;
	background: rgba(255, 255, 255, .35);
	border-radius: 3px;
	transition: background .2s ease;
}

.qqf-dot.is-active {
	background: #fff;
}

.qqf-alert {
	background: rgba(255, 255, 255, .95);
	color: #a4272c;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 14px;
}

.qqf-step {
	display: none;
}

.qqf-step.is-active {
	display: block;
}

/* Row & Field Layout - Mobile First */
.qqf-row {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 10px;
}

.qqf-row > * {
	width: 100%;
	flex: 0 0 auto;
	box-sizing: border-box;
}

.qqf-row-single {
	flex-direction: column;
}

.qqf-row-condition {
	align-items: stretch;
}

.qqf-row-condition input[type="text"] {
	width: 100%;
	height: 46px;
	flex: 0 0 auto;
}

.qqf-row-condition .qqf-radio-group {
	width: 100%;
	flex: 0 0 auto;
	min-width: 0;
	padding: 4px 2px 2px;
}

/* Desktop layout (640px and up) */
@media (min-width: 640px) {
	.qqf-row {
		flex-direction: row;
		align-items: center;
	}

	.qqf-row > * {
		flex: 1 1 50%;
		min-width: 0;
	}

	.qqf-row-single > * {
		flex: 1 1 100%;
	}

	.qqf-row-condition {
		flex-direction: row;
		align-items: center;
	}

	.qqf-row-condition input[type="text"] {
		flex: 1 1 56%;
		width: auto;
	}

	.qqf-row-condition .qqf-radio-group {
		flex: 1 1 44%;
		min-width: 200px;
		width: auto;
		padding: 0;
	}
}

.qqf-form input[type="text"],
.qqf-form input[type="email"],
.qqf-form input[type="tel"],
.qqf-form input[type="date"],
.qqf-form select {
	width: 100%;
	height: 46px;
	min-height: 46px;
	padding: 0 14px;
	border-radius: 999px;
	border: none;
	outline: none;
	background: #fff;
	color: #0b2530;
	font-size: 16px;
	font-family: inherit;
	appearance: none;
	-webkit-appearance: none;
	box-sizing: border-box;
}

@media (min-width: 640px) {
	.qqf-form input[type="text"],
	.qqf-form input[type="email"],
	.qqf-form input[type="tel"],
	.qqf-form input[type="date"],
	.qqf-form select {
		font-size: 14px;
	}
}

.qqf-form input[type="date"] {
	line-height: 46px;
}

.qqf-form select {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' stroke='%23325561' stroke-width='2' fill='none' fill-rule='evenodd'/></svg>");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 36px;
}

.qqf-form select:disabled {
	opacity: .6;
	cursor: not-allowed;
}

.qqf-form input::placeholder {
	color: #7d8e94;
}

.qqf-radio-group {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	font-size: 13px;
}

.qqf-radio-label {
	font-weight: 700 !important;
	font-size: 15px !important;
	white-space: nowrap;
}

.qqf-radio-options {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.qqf-radio-group label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	white-space: nowrap;
	font-size: 14px !important;
	padding: 4px 0;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}

.qqf-radio-group input[type="radio"] {
	width: 16px;
	height: 16px;
	accent-color: #fff;
	cursor: pointer;
}

.qqf-nav {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	margin-top: 18px;
}

.qqf-nav-single {
	justify-content: flex-end;
}

.qqf-btn {
	height: 38px;
	min-height: 38px;
	padding: 0 28px;
	border-radius: 999px;
	border: none;
	background: var(--qqf-button);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: opacity .15s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}

.qqf-btn:hover {
	opacity: .9;
}

.qqf-btn:disabled {
	opacity: .6;
	cursor: not-allowed;
}

.qqf-btn-back {
	background: rgba(255, 255, 255, .95);
	color: var(--qqf-button);
}

.qqf-consents {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 6px;
}

.qqf-consent-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	line-height: 1.45;
	cursor: pointer;
}

.qqf-consent-row input[type="checkbox"] {
	margin-top: 2px;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	accent-color: #fff;
}

.qqf-consent-footer {
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid rgba(255, 255, 255, .25);
	font-size: 11px;
	line-height: 1.5;
	opacity: .95;
}

.qqf-consent-footer label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	cursor: pointer;
}

.qqf-consent-footer input[type="checkbox"] {
	margin-top: 2px;
	width: 15px;
	height: 15px;
	flex-shrink: 0;
	accent-color: #fff;
}

.qqf-consent-footer a {
	color: #fff;
	text-decoration: underline;
}

.qqf-success {
	text-align: center;
	padding: 30px 10px;
}

.qqf-success-icon {
	width: 52px;
	height: 52px;
	line-height: 52px;
	border-radius: 50%;
	background: #fff;
	color: var(--qqf-primary);
	font-size: 26px;
	font-weight: 800;
	margin: 0 auto 16px;
}

.qqf-success p {
	font-size: 15px;
	line-height: 1.5;
	margin: 0;
}
