/* ==========================================================================
   Exquando Maturity Diagnostic — Scoped CSS
   All classes prefixed with .exq- to avoid theme conflicts.
   ========================================================================== */

/* Scoped reset */
.exq-wrap,
.exq-wrap *,
.exq-wrap *::before,
.exq-wrap *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

.exq-wrap {
	font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	color: #1e293b;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	padding: 1rem;
}

/* Card */
.exq-card {
	max-width: 768px;
	margin: 0 auto;
	background: #fff !important;
	border-radius: 1.5rem !important;
	box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
	overflow: hidden;
	border: 1px solid #000000 !important;
}

/* Header */
.exq-header {
	background: #0047BB;
	padding: 1.25rem 1.5rem;
	color: #fff;
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
	overflow: hidden;
}

.exq-header-text h1 {
	font-size: 1.375rem;
	font-weight: 700;
	letter-spacing: -0.025em;
	margin: 0;
	line-height: 1.2;
	color: #fff;
}

.exq-header-text p {
	font-size: 0.625rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: #bfdbfe;
	margin: 0.125rem 0 0;
}

.exq-header-icon {
	background: rgba(255,255,255,0.2);
	padding: 0.5rem;
	border-radius: 0.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 1;
}

.exq-header-circle {
	position: absolute;
	top: -4rem;
	right: -4rem;
	width: 8rem;
	height: 8rem;
	background: rgba(255,255,255,0.05);
	border-radius: 50%;
}

/* Content */
.exq-content {
	padding: 2rem;
}

/* Footer */
.exq-footer {
	padding: 0.75rem;
	text-align: center;
	font-size: 0.75rem;
	color: #94a3b8;
}

/* Animation */
@keyframes exq-fade-in {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: translateY(0); }
}

.exq-step {
	animation: exq-fade-in 0.4s ease-out;
}

/* Icon circles */
.exq-icon-circle {
	width: 5rem;
	height: 5rem;
	background: #eff6ff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1rem;
	color: #0047BB;
}

.exq-icon-circle-lg {
	width: 6rem;
	height: 6rem;
	box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}

/* Typography */
.exq-title {
	font-size: 1.875rem;
	font-weight: 800;
	color: #1e293b;
	text-align: center;
	margin-bottom: 0.5rem;
}

.exq-title-lg {
	font-size: 2.25rem;
	font-weight: 900;
	letter-spacing: -0.025em;
}

.exq-subtitle {
	font-size: 1.125rem;
	color: #475569;
	text-align: center;
	font-weight: 500;
	max-width: 28rem;
	margin: 0 auto;
	line-height: 1.6;
}

/* Form */
.exq-form {
	max-width: 28rem;
	margin: 1.5rem auto 1.5rem;
	text-align: left;
}

.exq-field {
	margin-bottom: 1rem;
}

.exq-label,
.exq-card .exq-label {
	display: block;
	font-size: 0.8125rem !important;
	font-weight: 700;
	color: #000000 !important;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 0.35rem;
	padding-left: 0.5rem;
}

.exq-input,
.exq-card .exq-input {
	width: 100%;
	padding: 0.95rem 1rem !important;
	background: #ffffff !important;
	border: 2px solid #000000 !important;
	border-radius: 1rem !important;
	font-size: 1.0625rem !important;
	font-weight: 600;
	color: #000000 !important;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
	font-family: inherit;
	box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
}

.exq-input:hover,
.exq-card .exq-input:hover {
	border-color: #000000 !important;
}

.exq-input:focus,
.exq-card .exq-input:focus {
	border-color: #0047BB !important;
	box-shadow: 0 0 0 3px rgba(0, 71, 187, 0.18) !important;
}

.exq-input::placeholder,
.exq-card .exq-input::placeholder {
	color: #64748b !important;
	font-weight: 400;
	opacity: 1 !important;
}

/* Buttons */
.exq-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border: none;
	cursor: pointer;
	font-family: inherit;
	font-weight: 700;
	transition: all 0.2s;
	text-decoration: none;
}

.exq-btn-primary {
	background: #0047BB;
	color: #fff;
	padding: 1rem 2rem;
	border-radius: 1rem;
	font-size: 1.125rem;
	box-shadow: 0 10px 25px -5px rgba(0,71,187,0.4);
	width: 100%;
	max-width: 28rem;
	margin: 0 auto;
	display: flex;
}

.exq-btn-primary:hover {
	background: #003999;
	transform: scale(1.02);
}

.exq-btn-primary:disabled,
.exq-btn-disabled {
	background: #f1f5f9;
	color: #94a3b8;
	cursor: not-allowed;
	box-shadow: none;
	transform: none;
}

.exq-btn-start {
	font-size: 1.25rem;
	font-weight: 900;
	padding: 1.25rem 3rem;
	box-shadow: 0 25px 50px -12px rgba(0,71,187,0.4);
	width: auto;
}

.exq-btn-start:hover {
	transform: scale(1.05);
}

/* Progress bar */
.exq-progress-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 0.5rem;
}

.exq-category-tag {
	font-size: 0.6875rem;
	font-weight: 900;
	color: #0047BB;
	text-transform: uppercase;
	letter-spacing: 0.15em;
}

.exq-step-counter {
	font-size: 0.875rem;
	font-weight: 700;
	color: #94a3b8;
}

.exq-progress-bar {
	width: 100%;
	height: 0.5rem;
	background: #f1f5f9;
	border-radius: 9999px;
	overflow: hidden;
	margin-bottom: 1.5rem;
}

.exq-progress-fill {
	height: 100%;
	background: #0047BB;
	transition: width 0.5s ease;
	border-radius: 9999px;
}

/* Question */
.exq-question {
	font-size: 1.375rem;
	font-weight: 700;
	color: #1e293b;
	line-height: 1.3;
	margin-bottom: 1.5rem;
}

/* Options */
.exq-options {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.exq-option,
.exq-card .exq-option {
	text-align: left;
	padding: 1.25rem !important;
	border: 2px solid #000000 !important;
	border-radius: 1rem !important;
	background: #fff !important;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	transition: all 0.2s;
	font-family: inherit;
	font-size: 1rem !important;
	width: 100%;
}

.exq-option:hover {
	border-color: #0047BB;
	background: #eff6ff;
}

.exq-option-text {
	font-weight: 700;
	color: #334155;
	flex: 1;
}

.exq-option:hover .exq-option-text {
	color: #0f172a;
}

.exq-option-radio,
.exq-card .exq-option-radio {
	width: 2rem;
	height: 2rem;
	border-radius: 50% !important;
	border: 2px solid #000000 !important;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff !important;
	flex-shrink: 0;
	transition: border-color 0.2s;
}

.exq-option:hover .exq-option-radio {
	border-color: #0047BB;
}

.exq-option-dot {
	width: 1rem;
	height: 1rem;
	border-radius: 50%;
	background: #0047BB;
	transform: scale(0);
	transition: transform 0.15s;
}

.exq-option:hover .exq-option-dot {
	transform: scale(1);
}

/* Maturity result card */
.exq-maturity-card {
	border-radius: 1.5rem;
	padding: 2.5rem;
	text-align: center;
	border: 1px solid rgba(255,255,255,0.5);
	margin-bottom: 1.5rem;
}

.exq-maturity-icon {
	display: flex;
	justify-content: center;
	margin-bottom: 1rem;
}

.exq-maturity-label {
	font-size: 0.75rem;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: #94a3b8;
	margin-bottom: 0.5rem;
}

.exq-maturity-level {
	font-size: 2.5rem;
	font-weight: 900;
	margin-bottom: 1rem;
}

.exq-score-row {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 1rem;
}

.exq-score-big {
	font-size: 4.5rem;
	font-weight: 900;
	color: #0f172a;
	letter-spacing: -0.05em;
	line-height: 1;
}

.exq-score-max {
	font-size: 1.5rem;
	font-weight: 900;
	color: #cbd5e1;
}

/* AI section */
.exq-ai-section {
	background: linear-gradient(135deg, #0047BB 0%, #1e3a8a 100%);
	border-radius: 1.5rem;
	padding: 2rem;
	color: #fff;
	overflow: hidden;
	box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
	margin-bottom: 1.5rem;
}

.exq-ai-prompt {
	text-align: center;
}

.exq-ai-prompt h3 {
	font-size: 1.375rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
	color: #fff;
}

.exq-ai-prompt p {
	color: #94a3b8;
	font-weight: 500;
	max-width: 28rem;
	margin: 0 auto 1.5rem;
	font-size: 0.9375rem;
}

.exq-btn-ai {
	background: #fff;
	color: #0f172a;
	padding: 0.875rem 2.5rem;
	border-radius: 1rem;
	font-weight: 900;
	font-size: 1.0625rem;
	box-shadow: 0 10px 25px -5px rgba(0,0,0,0.3);
	transition: all 0.2s;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	border: none;
	cursor: pointer;
	font-family: inherit;
}

.exq-btn-ai:hover {
	background: #0047BB;
	color: #fff;
}

.exq-btn-ai:disabled {
	opacity: 0.7;
	cursor: wait;
}

.exq-ai-report-header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	border-bottom: 1px solid #1e293b;
	padding-bottom: 0.75rem;
	margin-bottom: 1.25rem;
}

.exq-ai-report-header h3 {
	font-size: 1.0625rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	margin: 0;
	color: #fff;
}

.exq-ai-report-text {
	color: #cbd5e1;
	font-weight: 400;
	line-height: 1.7;
	font-size: 0.9375rem;
}

.exq-ai-report-text h1,
.exq-ai-report-text h2,
.exq-ai-report-text h3,
.exq-ai-report-text h4 {
	color: #e2e8f0;
	margin: 1.25em 0 0.5em;
	line-height: 1.3;
}
.exq-ai-report-text h3 { font-size: 1.05rem; }
.exq-ai-report-text h4 { font-size: 0.95rem; }

.exq-ai-report-text p {
	margin: 0.5em 0;
}

.exq-ai-report-text ul,
.exq-ai-report-text ol {
	margin: 0.5em 0 0.5em 1.5em;
}

.exq-ai-report-text li {
	margin: 0.25em 0;
}

.exq-ai-report-text hr {
	border: none;
	border-top: 1px solid #334155;
	margin: 1em 0;
}

.exq-ai-report-text strong {
	color: #f1f5f9;
	font-weight: 600;
}

.exq-ai-report-text::-webkit-scrollbar {
	width: 6px;
}

.exq-ai-report-text::-webkit-scrollbar-thumb {
	background: #334155;
	border-radius: 3px;
}

.exq-error {
	margin-top: 1rem;
	color: #f87171;
	text-align: center;
	font-weight: 700;
	font-size: 0.875rem;
}

/* Recommendations grid */
.exq-reco-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.exq-reco-card {
	background: #fff;
	border: 1px solid #f1f5f9;
	border-radius: 1.25rem;
	padding: 1.5rem;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.exq-reco-card h4 {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 900;
	font-size: 1.125rem;
	color: #1e293b;
	margin-bottom: 0.75rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid #f8fafc;
}

.exq-reco-card p {
	color: #475569;
	font-weight: 500;
	line-height: 1.6;
	font-size: 0.9375rem;
}

.exq-contact-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 0.75rem;
}

.exq-contact-card h4 {
	font-weight: 900;
	font-size: 1.125rem;
	color: #1e293b;
	text-transform: uppercase;
	letter-spacing: -0.025em;
	border-bottom: none;
	padding-bottom: 0;
	margin-bottom: 0;
	display: block;
}

.exq-btn-contact {
	background: #0047BB;
	color: #fff;
	width: 100%;
	padding: 0.875rem;
	border-radius: 1rem;
	font-weight: 900;
	font-size: 1.0625rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border: none;
	cursor: pointer;
	transition: background 0.2s;
	font-family: inherit;
}

.exq-btn-contact:hover {
	background: #003389;
}

/* CTA banner */
.exq-cta-banner {
	background: linear-gradient(135deg, #0047BB, #1e3a8a);
	border-radius: 1.5rem;
	padding: 2.5rem;
	color: #fff;
	text-align: center;
	box-shadow: 0 20px 40px -12px rgba(0,71,187,0.3);
	margin-bottom: 1.5rem;
}

.exq-cta-banner h3 {
	font-size: 1.75rem;
	font-weight: 900;
	letter-spacing: -0.025em;
	margin-bottom: 1rem;
	color: #fff;
}

.exq-pillars {
	display: flex;
	justify-content: center;
	gap: 2rem;
	margin-bottom: 1rem;
}

.exq-pillar {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.75rem;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.15em;
}

.exq-cta-quote {
	color: #bfdbfe;
	font-size: 1.0625rem;
	font-weight: 500;
	font-style: italic;
	opacity: 0.9;
	margin-bottom: 1rem;
}

.exq-cta-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: #fff;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 6px;
	font-size: 0.875rem;
}

.exq-cta-link:hover {
	color: #bfdbfe;
}

/* Restart */
.exq-restart {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 auto;
	color: #94a3b8;
	font-weight: 900;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	background: none;
	border: none;
	cursor: pointer;
	transition: color 0.2s;
	font-family: inherit;
	padding: 0.5rem;
}

.exq-restart:hover {
	color: #0047BB;
}

.exq-restart svg {
	transition: transform 0.5s;
}

.exq-restart:hover svg {
	transform: rotate(-180deg);
}

/* Spinner */
@keyframes exq-spin {
	to { transform: rotate(360deg); }
}

.exq-spinner {
	display: inline-block;
	width: 1.25rem;
	height: 1.25rem;
	border: 3px solid rgba(255,255,255,0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: exq-spin 0.6s linear infinite;
}

/* Toast */
.exq-toast {
	position: fixed;
	top: 1.5rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 99999;
	background: #0f172a;
	color: #fff;
	padding: 0.75rem 1.5rem;
	border-radius: 1rem;
	box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
	font-size: 0.875rem;
	font-weight: 700;
	animation: exq-fade-in 0.3s ease-out;
}

.exq-toast-success { background: #166534; }
.exq-toast-error   { background: #991b1b; }

/* Contact message */
.exq-contact-msg {
	font-size: 0.8125rem;
	color: #16a34a;
	font-weight: 600;
	margin-top: 0.5rem;
}

/* GDPR consent checkbox */
.exq-hello {
	font-size: 0.9375rem;
	font-weight: 600;
	color: #475569;
	margin: 0.75rem 0 0.25rem;
	text-align: left;
	padding-left: 0.5rem;
}

.exq-consent-field {
	margin-top: 0.5rem;
}

.exq-consent-label {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.8125rem;
	font-weight: 500;
	color: #475569;
	cursor: pointer;
	line-height: 1.4;
	text-transform: none !important;
	letter-spacing: normal !important;
	padding-left: 0 !important;
}

.exq-consent-label input[type="checkbox"] {
	margin-top: 0.125rem;
	flex-shrink: 0;
	width: 1rem;
	height: 1rem;
	accent-color: #0047BB;
}

.exq-consent-label a {
	color: #0047BB;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.exq-consent-label a:hover {
	color: #003999;
}

.exq-otp-field,
.exq-card .exq-otp-field {
	margin-top: 0.75rem;
	padding: 0.9rem !important;
	border: 1px solid #000000 !important;
	background: #f8fbff !important;
	border-radius: 0.9rem !important;
}

.exq-otp-row {
	display: grid;
	grid-template-columns: 1fr 1.2fr 1fr;
	gap: 0.5rem;
	align-items: center;
}

.exq-btn-otp {
	background: #0047BB;
	color: #fff;
	border: none;
	border-radius: 0.75rem;
	padding: 0.75rem 0.9rem;
	font-weight: 700;
	font-size: 0.85rem;
	cursor: pointer;
}

.exq-btn-otp:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.exq-btn-otp-verify {
	background: #0f766e;
}

.exq-otp-input,
.exq-card .exq-otp-input {
	text-align: center;
	letter-spacing: 0.25em;
	font-size: 1.2rem !important;
	font-weight: 700;
	padding: 0.8rem 0.8rem !important;
	color: #000000 !important;
}

.exq-otp-status {
	margin-top: 0.5rem;
	font-size: 0.82rem;
	color: #334155;
}

.exq-otp-status-ok {
	color: #166534;
	font-weight: 700;
}

.exq-otp-status-err {
	color: #b91c1c;
	font-weight: 700;
}

/* Honeypot (hidden from humans, visible to bots) */
.exq-hp {
	position: absolute;
	left: -9999px;
	opacity: 0;
	height: 0;
	overflow: hidden;
}

/* Keyboard focus styles for quiz options */
.exq-option:focus-visible {
	outline: 3px solid #0047BB;
	outline-offset: 2px;
	border-color: #0047BB;
	background: #eff6ff;
}

/* Quiz back button */
.exq-btn-back {
	display: block;
	margin: 1.25rem auto 0;
	background: none;
	border: none;
	color: #64748b;
	font-weight: 700;
	font-size: 0.875rem;
	cursor: pointer;
	font-family: inherit;
	padding: 0.5rem 1rem;
	border-radius: 0.5rem;
	transition: color 0.2s;
}

.exq-btn-back:hover {
	color: #0047BB;
}

.exq-btn-back:focus-visible {
	outline: 3px solid #0047BB;
	outline-offset: 2px;
}

/* Responsive */
@media (max-width: 768px) {
	.exq-content {
		padding: 1.25rem;
	}
	.exq-title     { font-size: 1.5rem; }
	.exq-title-lg  { font-size: 1.75rem; }
	.exq-question  { font-size: 1.125rem; }
	.exq-score-big { font-size: 3rem; }
	.exq-maturity-level  { font-size: 2rem; }
	.exq-maturity-card   { padding: 1.5rem; }
	.exq-ai-section      { padding: 1.25rem; }
	.exq-reco-grid       { grid-template-columns: 1fr; }
	.exq-cta-banner      { padding: 1.5rem; }
	.exq-cta-banner h3   { font-size: 1.25rem; }
	.exq-option          { padding: 1rem; }
	.exq-btn-start       { padding: 1rem 2rem; font-size: 1.125rem; }
	.exq-otp-row         { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
	.exq-content {
		padding: 1rem;
	}
	.exq-header {
		padding: 1rem;
	}
	.exq-header-text h1 {
		font-size: 1.125rem;
	}
	.exq-pillars {
		gap: 1rem;
	}
}
