/**
 * SCC Surveys — frontend form styles.
 *
 * Prefixed .scc-survey to avoid collisions with any host theme. Generous
 * sizing because the typical audience is older and may be on phones.
 */

.scc-survey {
	max-width: 620px;
	margin: 2.5rem auto;
	padding: 0 1rem;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
	color: #1a3d4f;
	line-height: 1.55;
}

.scc-survey__form {
	background: #fff;
	border-radius: 14px;
	padding: 2rem 1.75rem;
	box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 8px 32px rgba(26, 61, 79, 0.08);
}

.scc-survey__question {
	font-family: Georgia, "Iowan Old Style", serif;
	font-size: clamp(1.4rem, 3vw + 0.5rem, 1.85rem);
	font-weight: 500;
	line-height: 1.25;
	margin: 0 0 1.5rem;
	color: #1a3d4f;
}

.scc-survey__options {
	border: 0;
	padding: 0;
	margin: 0 0 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.scc-survey__option {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border: 1px solid #d8dde0;
	border-radius: 10px;
	cursor: pointer;
	background: #fbf8f2;
	transition: border-color 0.15s ease, background 0.15s ease;
	font-size: 1.05rem;
	user-select: none;
}
.scc-survey__option:hover { background: #f2e8d5; }
.scc-survey__option:focus-within { border-color: #4a99ae; }
.scc-survey__option input[type="radio"] { width: 20px; height: 20px; cursor: pointer; accent-color: #4a99ae; flex-shrink: 0; }
.scc-survey__option input[type="radio"]:checked + .scc-survey__option-label { font-weight: 600; }
.scc-survey__option:has(input:checked) { border-color: #4a99ae; background: #e9f3f6; }

.scc-survey__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 1.1rem;
}
.scc-survey__field label {
	font-size: 0.85rem;
	letter-spacing: 0.02em;
	color: #5a7280;
	font-weight: 500;
}
.scc-survey__field input {
	padding: 12px 14px;
	border: 1px solid #d8dde0;
	border-radius: 10px;
	font-size: 1.05rem;
	background: #fff;
	color: #1a3d4f;
	font: inherit;
}
.scc-survey__field input:focus {
	outline: 2px solid #4a99ae;
	outline-offset: 1px;
	border-color: #4a99ae;
}

/* Honeypot: visually hidden, still focusable in case a real user tabs through */
.scc-survey__hp {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.scc-survey__actions { margin-top: 1.25rem; }
.scc-survey__btn {
	display: inline-block;
	padding: 14px 28px;
	border-radius: 100px;
	border: 1px solid transparent;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
	font: inherit;
	font-weight: 600;
}
.scc-survey__btn--primary { background: #e07856; color: #fff; }
.scc-survey__btn--primary:hover { background: #b85838; }
.scc-survey__btn--ghost { background: transparent; color: #1a3d4f; border-color: #d8dde0; margin-left: 8px; }
.scc-survey__btn--ghost:hover { background: #f2e8d5; }

.scc-survey__confirm {
	margin-top: 1.25rem;
	padding: 1.25rem;
	border-radius: 10px;
	background: #fbf8f2;
	border: 1px solid #e8dcc2;
}
.scc-survey__confirm-text {
	font-family: Georgia, "Iowan Old Style", serif;
	font-size: 1.15rem;
	margin: 0 0 1rem;
}
.scc-survey__confirm-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.scc-survey__panel {
	padding: 1.75rem;
	border-radius: 14px;
	font-size: 1.1rem;
	line-height: 1.55;
}
.scc-survey__panel--success { background: #e9f3f6; border-left: 4px solid #4a99ae; color: #1a3d4f; }
.scc-survey__panel--notice  { background: #fbf8f2; border-left: 4px solid #8a9ca7; color: #1a3d4f; }
.scc-survey__panel--error   { background: #fcebec; border-left: 4px solid #d63638; color: #4a1818; }
.scc-survey__panel p:first-child { margin-top: 0; }
.scc-survey__panel p:last-child  { margin-bottom: 0; }

.scc-survey__error {
	background: #fcebec;
	border-left: 4px solid #d63638;
	color: #4a1818;
	padding: 12px 14px;
	margin-bottom: 1.25rem;
	border-radius: 6px;
	font-size: 0.95rem;
}

.scc-survey__sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0);
	white-space: nowrap; border: 0;
}

@media (max-width: 480px) {
	.scc-survey__form { padding: 1.5rem 1.25rem; border-radius: 10px; }
	.scc-survey__btn--ghost { margin-left: 0; margin-top: 8px; display: block; width: 100%; }
	.scc-survey__btn--primary { display: block; width: 100%; }
	.scc-survey__confirm-actions { flex-direction: column; }
}
