/* Sweet Home 101 Survey — mobile-first, plain accessible styling. */

.sh101-survey {
	max-width: 46rem;
	margin: 0 auto;
	font-size: 1rem;
	line-height: 1.55;
}

.sh101-survey-intro {
	margin-bottom: 1.5rem;
}

.sh101-survey-title {
	font-size: 1.4rem;
	line-height: 1.3;
	margin: 0 0 0.5rem;
}

.sh101-survey-promo {
	font-size: 1.3rem;
	letter-spacing: 0.02em;
}

.sh101-survey-form fieldset,
.sh101-draw-block {
	border: 1px solid #e3ddd2;
	border-radius: 10px;
	padding: 1rem 1.1rem 1.2rem;
	margin: 0 0 1.1rem;
	background: #fffdf9;
}

.sh101-survey-form legend {
	font-weight: 700;
	padding: 0 0.15rem;
	margin-bottom: 0.4rem;
}

.sh101-choices {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	margin-top: 0.25rem;
}

.sh101-choices label {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	cursor: pointer;
	padding: 0.35rem 0.4rem;
	border-radius: 6px;
}

.sh101-choices label:hover {
	background: #f5f1e8;
}

.sh101-choices input {
	margin-top: 0.28rem;
	flex-shrink: 0;
}

.sh101-choices-checks input {
	margin-top: 0.3rem;
}

.sh101-choices-row {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0.35rem 0.9rem;
}

.sh101-conditional,
.sh101-optional {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	margin-top: 0.6rem;
	font-weight: 600;
	font-size: 0.95rem;
}

.sh101-conditional input {
	font-weight: 400;
}

.sh101-conditional[hidden] {
	display: none;
}

.sh101-paragraph {
	display: block;
	margin-top: 0.25rem;
}

.sh101-paragraph textarea,
.sh101-optional textarea,
.sh101-conditional input,
.sh101-draw-form input {
	width: 100%;
	box-sizing: border-box;
	padding: 0.5rem 0.6rem;
	border: 1px solid #cfc7b8;
	border-radius: 6px;
	font: inherit;
	background: #fff;
}

.sh101-q6 {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
	margin-top: 0.4rem;
}

.sh101-q6-item {
	border-top: 1px dashed #e3ddd2;
	padding-top: 0.6rem;
}

.sh101-q6-label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.3rem;
}

.sh101-hint {
	color: #6b6355;
	font-size: 0.9rem;
	margin: 0.25rem 0 0;
}

.sh101-optional-inline {
	font-weight: 400;
	color: #6b6355;
}

.sh101-turnstile {
	min-height: 65px;
	margin: 0.8rem 0 0.4rem;
}

.sh101-submit-status {
	min-height: 1.2em;
	margin: 0.4rem 0;
	font-weight: 600;
}

.sh101-submit-status[data-state="error"] {
	color: #9b2c2c;
}

.sh101-submit-status[data-state="success"] {
	color: #22543d;
}

.sh101-survey-submit {
	display: inline-block;
	background: #b48a2f;
	color: #fff;
	border: 0;
	border-radius: 8px;
	padding: 0.7rem 1.4rem;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.sh101-survey-submit:disabled {
	opacity: 0.6;
	cursor: default;
}

.sh101-privacy-note {
	font-size: 0.85rem;
	color: #6b6355;
	margin-top: 0.8rem;
}

/* Optional drawing entry — revealed after the survey is submitted. */
.sh101-draw-block {
	background: #f7f3ea;
	border-color: #b48a2f;
}

.sh101-draw-block[hidden] {
	display: none;
}

.sh101-draw-block h2 {
	margin: 0 0 0.5rem;
	font-size: 1.2rem;
}

.sh101-draw-consent {
	font-size: 0.95rem;
	font-weight: 600;
}

.sh101-draw-form {
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	margin-top: 0.8rem;
}

.sh101-draw-form label {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	font-weight: 600;
}

@media (min-width: 640px) {
	.sh101-survey-form fieldset,
	.sh101-draw-block {
		padding: 1.2rem 1.5rem 1.4rem;
	}
}
