/**
 * RSA Cancellation Survey
 *
 * Deliberately restrained: inherits the Divi theme's typography and colour so
 * the form reads as part of the page rather than an embedded widget. Only
 * spacing, control sizing and touch targets are styled here.
 */

.rsa-cs {
	max-width: 42rem;
	margin: 0 auto;
}

.rsa-cs__header {
	margin-bottom: 2rem;
}

.rsa-cs__title {
	margin: 0 0 0.5rem;
}

.rsa-cs__intro {
	margin: 0;
	opacity: 0.85;
}

.rsa-cs__errors {
	margin-bottom: 1.5rem;
	padding: 1rem 1.25rem;
	border-left: 4px solid #c0392b;
	background: rgba(192, 57, 43, 0.07);
}

.rsa-cs__errors p,
.rsa-cs__errors ul {
	margin: 0;
}

.rsa-cs__errors ul {
	margin-top: 0.5rem;
	padding-left: 1.25rem;
}

/* Each question is a fieldset; strip the default browser chrome. */
.rsa-cs__question {
	margin: 0 0 2.25rem;
	padding: 0;
	border: 0;
}

.rsa-cs__label {
	display: block;
	padding: 0;
	margin-bottom: 0.35rem;
	font-weight: 700;
	line-height: 1.4;
}

.rsa-cs__required {
	color: #c0392b;
}

.rsa-cs__optional {
	font-weight: 400;
	opacity: 0.6;
}

.rsa-cs__help {
	margin: 0 0 0.85rem;
	font-size: 0.9em;
	opacity: 0.75;
}

.rsa-cs__options {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rsa-cs__option {
	position: relative;
	margin: 0 0 0.6rem;
	padding: 0;
	list-style: none;
}

.rsa-cs__option input[type="checkbox"] {
	margin: 0 0.6rem 0 0;
	vertical-align: middle;
	width: 1.15rem;
	height: 1.15rem;
}

.rsa-cs__option label {
	display: inline;
	vertical-align: middle;
	cursor: pointer;
	font-weight: 400;
}

/* The "Other" write-in, revealed by survey.js. */
.rsa-cs__other {
	margin: 0.5rem 0 0.75rem 1.75rem;
}

.rsa-cs__other[hidden] {
	display: none;
}

.rsa-cs__text {
	width: 100%;
	max-width: 26rem;
	padding: 0.6rem 0.75rem;
	border: 1px solid rgba(0, 0, 0, 0.25);
	border-radius: 3px;
	font: inherit;
	background: #fff;
	color: inherit;
}

.rsa-cs__text:focus {
	outline: 2px solid rgba(0, 0, 0, 0.35);
	outline-offset: 1px;
}

/* 1-5 value scale */
.rsa-cs__scale {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem;
}

.rsa-cs__scale-end {
	font-size: 0.9em;
	opacity: 0.75;
}

.rsa-cs__scale-options {
	display: flex;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rsa-cs__scale-options li {
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: center;
}

.rsa-cs__scale-options input[type="radio"] {
	display: block;
	margin: 0 auto 0.25rem;
	width: 1.15rem;
	height: 1.15rem;
}

.rsa-cs__scale-options label {
	display: block;
	cursor: pointer;
	font-weight: 400;
}

.rsa-cs__actions {
	margin-top: 2.5rem;
}

.rsa-cs__submit {
	padding: 0.8rem 1.75rem;
	border: 0;
	border-radius: 3px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	background: #2e5c8a;
	color: #fff;
}

.rsa-cs__submit:hover,
.rsa-cs__submit:focus {
	opacity: 0.9;
}

/* Honeypot — must stay in the DOM and reachable to bots, invisible to people. */
.rsa-cs__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.screen-reader-text {
	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) {
	.rsa-cs__scale {
		gap: 0.5rem;
	}

	.rsa-cs__scale-options {
		gap: 0.5rem;
	}
}
