/* AI Growth Partners Guidance — scoped styles.
   All rules are namespaced under .aigp-guidance-root so they inherit the
   host theme's fonts/colors by default while staying visually self-contained. */

.aigp-guidance-root {
	--aigp-accent: #2455a3;
	--aigp-accent-hover: #1c447f;
	--aigp-ink: #1c2430;
	--aigp-muted: #5b6572;
	--aigp-border: #dde2e8;
	--aigp-surface: #ffffff;
	--aigp-surface-subtle: #f6f8fa;
	--aigp-danger: #b3261e;
	--aigp-danger-bg: #fdecea;
	--aigp-radius: 10px;

	box-sizing: border-box;
	max-width: 720px;
	margin: 0 auto;
	color: var(--aigp-ink);
	font-size: 16px;
	line-height: 1.55;
}

.aigp-guidance-root *,
.aigp-guidance-root *::before,
.aigp-guidance-root *::after {
	box-sizing: inherit;
}

.aigp-card {
	background: var(--aigp-surface);
	border: 1px solid var(--aigp-border);
	border-radius: var(--aigp-radius);
	padding: 28px;
}

.aigp-title {
	margin: 0 0 18px;
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--aigp-ink);
}

.aigp-heading {
	margin: 0 0 14px;
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--aigp-ink);
}

/* Step indicator */
.aigp-steps {
	display: flex;
	gap: 8px;
	margin-bottom: 22px;
}

.aigp-step-dot {
	flex: 1;
	height: 4px;
	border-radius: 2px;
	background: var(--aigp-border);
}

.aigp-step-dot.is-active {
	background: var(--aigp-accent);
}

.aigp-step-dot.is-done {
	background: var(--aigp-accent);
	opacity: 0.5;
}

/* Application choice cards */
.aigp-app-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	margin-bottom: 20px;
}

.aigp-app-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	text-align: left;
	background: var(--aigp-surface);
	border: 1px solid var(--aigp-border);
	border-radius: var(--aigp-radius);
	padding: 14px 16px;
	cursor: pointer;
	font-family: inherit;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.aigp-app-card:hover {
	border-color: var(--aigp-accent);
}

.aigp-app-card.is-selected {
	border-color: var(--aigp-accent);
	background: var(--aigp-surface-subtle);
	box-shadow: 0 0 0 1px var(--aigp-accent) inset;
}

.aigp-app-name {
	font-weight: 600;
	color: var(--aigp-ink);
}

.aigp-app-desc {
	font-size: 0.9rem;
	color: var(--aigp-muted);
}

/* Form fields */
.aigp-field-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 16px;
	margin-bottom: 22px;
}

.aigp-field-grid-single {
	grid-template-columns: 1fr;
}

.aigp-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.aigp-field-label {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--aigp-ink);
}

.aigp-field-hint {
	font-size: 0.8rem;
	color: var(--aigp-muted);
}

.aigp-required {
	color: var(--aigp-danger);
}

.aigp-field input[type="text"],
.aigp-field textarea {
	font-family: inherit;
	font-size: 0.95rem;
	padding: 10px 12px;
	border: 1px solid var(--aigp-border);
	border-radius: 8px;
	background: var(--aigp-surface);
	color: var(--aigp-ink);
	resize: vertical;
}

.aigp-field input[type="text"]:focus,
.aigp-field textarea:focus {
	outline: 2px solid var(--aigp-accent);
	outline-offset: 1px;
	border-color: var(--aigp-accent);
}

.aigp-field .is-invalid {
	border-color: var(--aigp-danger);
}

@media (max-width: 560px) {
	.aigp-field-grid {
		grid-template-columns: 1fr;
	}
}

/* Buttons */
.aigp-btn {
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	padding: 11px 20px;
	border-radius: 8px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.aigp-btn-primary {
	background: var(--aigp-accent);
	color: #fff;
}

.aigp-btn-primary:hover {
	background: var(--aigp-accent-hover);
}

.aigp-btn-secondary {
	background: transparent;
	color: var(--aigp-ink);
	border-color: var(--aigp-border);
}

.aigp-btn-secondary:hover {
	border-color: var(--aigp-accent);
	color: var(--aigp-accent);
}

.aigp-btn-block {
	display: block;
	width: 100%;
}

.aigp-actions {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

/* Loading state */
.aigp-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 40px 10px;
	color: var(--aigp-muted);
	text-align: center;
}

.aigp-spinner {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 3px solid var(--aigp-border);
	border-top-color: var(--aigp-accent);
	animation: aigp-spin 0.8s linear infinite;
}

@keyframes aigp-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Errors */
.aigp-error-inline {
	color: var(--aigp-danger);
	font-size: 0.9rem;
	margin: -6px 0 16px;
}

.aigp-error-block {
	background: var(--aigp-danger-bg);
	border: 1px solid var(--aigp-danger);
	border-radius: var(--aigp-radius);
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	align-items: flex-start;
}

.aigp-error-block p {
	margin: 0;
	color: var(--aigp-danger);
}

/* Results */
.aigp-result-section {
	padding: 16px 0;
	border-bottom: 1px solid var(--aigp-border);
}

.aigp-result-section:last-of-type {
	border-bottom: none;
}

.aigp-result-title {
	margin: 0 0 8px;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--aigp-accent);
}

.aigp-result-content {
	font-size: 0.97rem;
	color: var(--aigp-ink);
}

.aigp-result-content p {
	margin: 0 0 12px;
}

.aigp-result-content ul,
.aigp-result-content ol {
	margin: 0 0 12px;
	padding-left: 22px;
}

.aigp-result-content h1,
.aigp-result-content h2,
.aigp-result-content h3 {
	font-size: 1rem;
	margin: 16px 0 8px;
}

.aigp-results .aigp-btn {
	margin-top: 10px;
}
