/* Brandlogee SEO Audit — form widget */

.bsa-widget {
	max-width: 520px;
	margin: 2rem auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #1f2937;
}

.bsa-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	background: #fff;
	padding: 1.75rem;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(15, 23, 42, 0.04);
}

.bsa-step {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.bsa-step[hidden] {
	display: none;
}

.bsa-label {
	font-size: 0.875rem;
	font-weight: 600;
	color: #374151;
}

.bsa-form input[type="url"],
.bsa-form input[type="email"],
.bsa-form input[type="text"] {
	width: 100%;
	box-sizing: border-box;
	padding: 0.65rem 0.85rem;
	font-size: 1rem;
	color: #111827;
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	transition: border-color 120ms, box-shadow 120ms;
}

.bsa-form input:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.bsa-consent {
	display: flex;
	gap: 0.5rem;
	align-items: flex-start;
	font-size: 0.85rem;
	color: #4b5563;
	line-height: 1.45;
}

.bsa-consent input {
	margin-top: 3px;
}

.bsa-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.7rem 1.1rem;
	font-size: 0.95rem;
	font-weight: 600;
	border-radius: 8px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background-color 120ms, transform 80ms;
}

.bsa-btn:active {
	transform: translateY(1px);
}

.bsa-btn-primary {
	background: #2563eb;
	color: #fff;
}

.bsa-btn-primary:hover {
	background: #1d4ed8;
}

.bsa-btn-primary:disabled {
	background: #93c5fd;
	cursor: not-allowed;
}

.bsa-btn-link {
	background: transparent;
	color: #2563eb;
	border-color: transparent;
	padding: 0.5rem 0.25rem;
}

.bsa-btn-link:disabled {
	color: #9ca3af;
	cursor: not-allowed;
}

.bsa-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.bsa-fineprint {
	font-size: 0.75rem;
	color: #6b7280;
	margin: 0;
	line-height: 1.5;
}

.bsa-fineprint a {
	color: #2563eb;
}

.bsa-prompt {
	margin: 0;
	font-size: 0.95rem;
	color: #374151;
}

.bsa-cooldown {
	font-size: 0.8rem;
	color: #6b7280;
}

.bsa-error {
	margin: 0;
	font-size: 0.875rem;
	color: #b91c1c;
	background: #fef2f2;
	border: 1px solid #fecaca;
	padding: 0.6rem 0.85rem;
	border-radius: 8px;
}

.bsa-status {
	margin: 0;
	font-size: 0.95rem;
	color: #374151;
	text-align: center;
}

.bsa-spinner {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 3px solid #e5e7eb;
	border-top-color: #2563eb;
	margin: 0.5rem auto;
	animation: bsa-spin 0.9s linear infinite;
}

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