.ca-widget {
	--ca-brand: #d1402f;
	max-width: 560px;
	margin: 1.5rem auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.ca-form {
	background: #fff;
	border: 1px solid #e6e8ec;
	border-radius: 14px;
	padding: 28px;
	box-shadow: 0 6px 24px rgba(16, 24, 40, 0.06);
}

.ca-title {
	margin: 0 0 6px;
	font-size: 1.4rem;
	line-height: 1.25;
	color: #000426;
}

.ca-subtitle {
	margin: 0 0 18px;
	color: #6e5b55;
	font-size: 0.95rem;
}

.ca-field {
	margin-bottom: 14px;
}

.ca-field label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	color: #2a211e;
	margin-bottom: 6px;
}

.ca-field input[type="url"],
.ca-field input[type="email"] {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid #d4d8e0;
	border-radius: 9px;
	font-size: 1rem;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.ca-field input:focus {
	outline: none;
	border-color: var(--ca-brand);
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.ca-consent label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-weight: 400;
	font-size: 0.85rem;
	color: #6e5b55;
	cursor: pointer;
}

.ca-consent input {
	margin-top: 2px;
}

/* Honeypot. */
.ca-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ca-submit {
	width: 100%;
	padding: 13px 18px;
	background: var(--ca-brand);
	color: #fff;
	border: none;
	border-radius: 9px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: filter 0.15s;
}

.ca-submit:hover {
	filter: brightness(0.92);
}

.ca-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.ca-status {
	margin-top: 14px;
	font-size: 0.9rem;
	color: #6e5b55;
	min-height: 1.2em;
}

.ca-status.ca-err {
	color: #b91c1c;
}

.ca-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(0, 0, 0, 0.18);
	border-top-color: var(--ca-brand);
	border-radius: 50%;
	animation: ca-spin 0.7s linear infinite;
	vertical-align: middle;
	margin-right: 8px;
}

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

/* ---------- confirmation ---------- */

.ca-results {
	margin-top: 18px;
}

.ca-confirm {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	background: #ecfdf3;
	border: 1px solid #b7ebc6;
	border-radius: 12px;
	padding: 16px 18px;
	margin-bottom: 14px;
}

.ca-confirm .ca-check {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #16a34a;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ca-confirm .ca-check svg {
	width: 16px;
	height: 16px;
}

.ca-confirm h4 {
	margin: 0 0 2px;
	font-size: 1rem;
	color: #0f5132;
}

.ca-confirm p {
	margin: 0;
	font-size: 0.88rem;
	color: #2f6b4a;
	line-height: 1.4;
}

.ca-confirm .ca-email {
	font-weight: 600;
}

.ca-overall {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 18px 20px;
	border-radius: 14px;
	color: #fff;
	margin-bottom: 14px;
}

.ca-ring {
	flex: 0 0 auto;
	width: 82px;
	height: 82px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.16);
	border: 3px solid rgba(255, 255, 255, 0.55);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.ca-ring .ca-num {
	font-size: 1.9rem;
	font-weight: 800;
	line-height: 1;
}

.ca-ring .ca-num small {
	font-size: 0.78rem;
	font-weight: 600;
	opacity: 0.85;
}

.ca-overall .ca-meta h4 {
	margin: 0 0 3px;
	font-size: 1.1rem;
}

.ca-overall .ca-meta p {
	margin: 0;
	font-size: 0.88rem;
	opacity: 0.92;
}

.ca-cat {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 11px 14px;
	border: 1px solid #e6e8ec;
	border-radius: 9px;
	margin-bottom: 8px;
}

.ca-cat-label {
	font-size: 0.92rem;
	color: #2a211e;
}

.ca-badge {
	font-weight: 700;
	font-size: 0.9rem;
	padding: 3px 10px;
	border-radius: 999px;
	color: #fff;
}

.ca-cta {
	margin-top: 18px;
	background: #fbfaf8;
	border: 1px solid #ead9d4;
	border-radius: 14px;
	padding: 22px;
	text-align: center;
}

.ca-cta h4 {
	margin: 0 0 6px;
	font-size: 1.1rem;
	color: #000426;
}

.ca-cta p {
	margin: 0 0 16px;
	font-size: 0.92rem;
	color: #6e5b55;
	line-height: 1.45;
}

.ca-cta-btn {
	display: inline-block;
	background: var(--ca-brand);
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	font-size: 0.98rem;
	padding: 13px 26px;
	border-radius: 10px;
}

.ca-cta-btn:hover {
	filter: brightness(0.92);
}

.ca-cta-secondary {
	display: inline-block;
	margin-top: 12px;
	font-size: 0.85rem;
	color: var(--ca-brand);
	background: none;
	border: none;
	cursor: pointer;
	font-weight: 600;
	text-decoration: none;
}

.ca-cta-secondary:hover {
	text-decoration: underline;
}
