/* The A.I. readiness check ([nam_ai_check]). Loaded only on the page that shows it. */

.nam-aic { display: flex; justify-content: center; padding: clamp(1rem, 4vw, 2.5rem); border-radius: 28px; scroll-margin-top: 90px; }
.nam-aic-card {
	position: relative; overflow: hidden; width: 100%; max-width: 42rem;
	padding: clamp(1.5rem, 4vw, 2.25rem);
	background: rgba(15, 23, 42, 0.95);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 24px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
	transition: border-color .5s;
}
.nam-aic-card:hover { border-color: rgba(168, 85, 247, 0.2); }

/* Steps rise and fade in (A7) */
.nam-aic-step[hidden] { display: none; }
.nam-aic-step { animation: nam-aic-in .4s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes nam-aic-in { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: none; } }
.nam-aic-step[data-step="0"], .nam-aic-result { text-align: center; }
.nam-aic-step > * + * { margin-top: 1.5rem; }

.nam-aic-title { font-size: clamp(1.75rem, 4vw, 2.25rem); line-height: 1.2; margin: .5rem 0 0; }
.nam-aic-sub { color: var(--wp--preset--color--muted); max-width: 28rem; margin-left: auto; margin-right: auto; font-size: .9375rem; }
.nam-aic-q { font-size: clamp(1.25rem, 3vw, 1.5rem); font-weight: 600; line-height: 1.35; color: #f1f5f9; margin: 0; }

/* Progress (A8) */
.nam-aic-progress { margin-bottom: 2rem; }
.nam-aic-progress[hidden] { display: none; }
.nam-aic-progress-text { display: flex; justify-content: space-between; font-size: .75rem; color: var(--wp--preset--color--muted); margin-bottom: .5rem; }
.nam-aic-track { height: 6px; border-radius: 99px; background: #1e293b; overflow: hidden; }
.nam-aic-bar { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #a855f7, #6366f1, #06b6d4); transition: width .5s ease-out; }

/* Buttons (A5) */
.nam-aic-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem; cursor: pointer;
	border: 0; border-radius: 16px; padding: .9rem 2rem; font: inherit; font-weight: 600; color: #fff;
	background: linear-gradient(90deg, #9333ea, #4f46e5);
	box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
	transition: transform .3s, box-shadow .3s, filter .3s;
}
.nam-aic-btn svg { width: 20px; height: 20px; transition: transform .3s; }
.nam-aic-btn:hover { transform: scale(1.01); filter: brightness(1.12); box-shadow: 0 0 28px rgba(168, 85, 247, 0.45); }
.nam-aic-btn:hover svg { transform: translateX(4px); }
.nam-aic-btn-wide { width: 100%; border-radius: 12px; padding: .8rem 1.5rem; background: linear-gradient(90deg, #9333ea, #4f46e5, #06b6d4); }
.nam-aic-btn-wide:hover svg { transform: translateY(2px); }
.nam-aic-btn[disabled] { opacity: .6; cursor: progress; }

/* Answer cards (A10): each question has its own colour */
.nam-aic-options { display: grid; gap: 1rem; --c: 168, 85, 247; --c-text: #d8b4fe; }
.nam-aic-options.is-cyan { --c: 6, 182, 212; --c-text: #67e8f9; }
.nam-aic-options.is-indigo { --c: 99, 102, 241; --c-text: #a5b4fc; }
.nam-aic-option {
	display: flex; align-items: flex-start; gap: 1rem; width: 100%; text-align: left; cursor: pointer;
	padding: 1rem; border-radius: 12px; font: inherit; color: inherit;
	background: rgba(15, 23, 42, 0.4); border: 1px solid #1e293b;
	transition: background-color .2s, border-color .2s;
}
.nam-aic-option:hover, .nam-aic-option:focus-visible { background: rgba(var(--c), 0.05); border-color: rgba(var(--c), 0.4); }
.nam-aic-letter {
	flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 8px;
	background: #1e293b; color: #cbd5e1; font-size: .875rem; font-weight: 600;
	transition: background-color .2s, color .2s;
}
.nam-aic-option:hover .nam-aic-letter { background: rgba(var(--c), 0.2); color: var(--c-text); }
.nam-aic-option > span:last-child { flex: 1; min-width: 0; }
.nam-aic-opt-title { display: block; font-weight: 500; color: #e2e8f0; }
.nam-aic-opt-desc { display: block; margin-top: .25rem; font-size: .75rem; color: var(--wp--preset--color--faint); }

/* Score gauge (A9) */
.nam-aic-gauge { position: relative; width: 9rem; height: 9rem; margin: 1rem auto; }
.nam-aic-gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.nam-aic-gauge circle { fill: none; stroke-width: 8; }
.nam-aic-gauge-bg { stroke: rgba(255, 255, 255, 0.05); }
.nam-aic-gauge-fill { stroke: url(#nam-aic-grad); stroke-linecap: round; stroke-dasharray: 264; stroke-dashoffset: 264; transition: stroke-dashoffset 1s ease-out; }
.nam-aic-gauge-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.nam-aic-gauge-label span { font-size: 1.875rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; line-height: 1; }
.nam-aic-gauge-label small { margin-top: .25rem; font-size: .625rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--wp--preset--color--muted); }

.nam-aic-level { max-width: 28rem; margin-left: auto; margin-right: auto; padding: 1rem; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); font-size: .875rem; }
.nam-aic-level p { margin: 0; }
.nam-aic-level-title { font-weight: 700; color: #e2e8f0; }
.nam-aic-level-desc { margin-top: .5rem !important; font-size: .75rem; line-height: 1.6; color: var(--wp--preset--color--muted); }

/* Lead form (A11) */
.nam-aic-form { max-width: 28rem; margin-left: auto; margin-right: auto; text-align: left; padding-top: 1rem; display: grid; gap: 1rem; }
.nam-aic-fields { display: grid; gap: .75rem; }
@media (min-width: 640px) { .nam-aic-fields { grid-template-columns: 1fr 1fr; } }
.nam-aic-fields label { display: grid; gap: .25rem; font-size: .625rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.nam-aic-fields input { width: 100%; box-sizing: border-box; font-size: .875rem; text-transform: none; letter-spacing: 0; border-radius: 12px; background: rgba(15, 23, 42, 0.6); border-color: #1e293b; }
.nam-aic-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.nam-aic-status { margin: 0; min-height: 1.25em; font-size: .8125rem; text-align: center; color: var(--wp--preset--color--cyan-light); }
.nam-aic-status.is-error { color: #f87171; }
