.awegene-container {
	max-width: 860px;
	margin: 0 auto;
	padding: 28px 20px 64px;
	box-sizing: border-box;
	width: 100%;
}

.awegene-page-header h1 {
	font-size: 3rem;
	font-weight: 700;
	margin-bottom: 6px;
	line-height: 1.2;
}

.awegene-page-header p {
	color: #5f6b7a;
	margin-top: 0;
	font-size: 1.25rem;
}

/* Anonymity notice, shown right below the page header before the form —
   "no real identity required" reassurance, see assessment-form.php. */
.awegene-privacy-note {
	background: #eef6f2;
	border: 1px solid #cdeedb;
	border-radius: 10px;
	padding: 14px 18px;
	font-size: 1.1rem;
	color: #1c7a44;
	margin: 0 0 20px;
}

.awegene-form fieldset.awegene-section {
	border: 1px solid #e3e7ec;
	border-radius: 10px;
	padding: 24px;
	margin-bottom: 20px;
	background: #fff;
	box-sizing: border-box;
}

.awegene-form legend {
	font-weight: 700;
	padding: 0 8px;
	color: #1a2b3c;
	font-size: 2.25rem;
}

.awegene-form label {
	display: block;
	margin-top: 16px;
	margin-bottom: 7px;
	font-size: 1.25rem;
	color: #33404d;
	line-height: 1.45;
}

.awegene-form input,
.awegene-form select {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #d3d9e0;
	border-radius: 8px;
	font-size: 1.4rem;
	box-sizing: border-box;
	background: #fafbfc;
}

.awegene-form input:focus,
.awegene-form select:focus {
	outline: none;
	border-color: #2f9e7d;
	box-shadow: 0 0 0 3px rgba(47, 158, 125, 0.15);
}

.awegene-form input[type="range"] {
	padding: 0;
	accent-color: #2f9e7d;
}

/* Live value readout next to slider labels */
.awegene-range-value {
	display: inline-block;
	min-width: 28px;
	padding: 2px 9px;
	margin-left: 8px;
	border-radius: 999px;
	background: #eaf6f1;
	color: #227a61;
	font-weight: 700;
	font-size: 1.15rem;
	text-align: center;
	vertical-align: middle;
}

/* Metric/imperial unit toggle button, inline with its label */
.awegene-unit-toggle {
	display: inline-block;
	margin-left: 8px;
	padding: 3px 12px;
	border: 1px solid #2f9e7d;
	border-radius: 999px;
	background: #fff;
	color: #227a61;
	font-size: 1.05rem;
	font-weight: 700;
	cursor: pointer;
	vertical-align: middle;
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.awegene-unit-toggle:hover,
.awegene-unit-toggle:focus {
	background: #227a61;
	color: #fff;
	transform: scale( 1.04 );
}

/* Hint text with the "average value" reference, shown right under a field */
.awegene-hint {
	display: block;
	margin-top: 6px;
	font-size: 1.15rem;
	color: #7a8593;
	font-style: italic;
	line-height: 1.5;
}

.awegene-form-actions {
	margin-top: 24px;
	text-align: center;
}

.awegene-btn {
	display: inline-block;
	border: none;
	border-radius: 999px;
	padding: 13px 30px;
	font-size: 1.4rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.awegene-btn-primary {
	background: linear-gradient(135deg, #2f9e7d, #227a61);
	color: #fff !important;
}

/* Keep the label white on hover (themes often darken link/button text,
   which made it disappear against the green fill) and use a slight
   scale-up as the hover cue instead. */
.awegene-btn-primary:hover,
.awegene-btn-primary:focus {
	color: #fff !important;
	transform: scale( 1.04 );
	box-shadow: 0 6px 16px rgba(34, 122, 97, 0.3);
}

.awegene-btn-small {
	padding: 6px 14px;
	font-size: 1.15rem;
	background: #eef2f0;
	color: #227a61;
}

.awegene-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.awegene-form-error {
	background: #fdeceb;
	color: #b3261e;
	border: 1px solid #f6c6c2;
	border-radius: 8px;
	padding: 10px 14px;
	margin-bottom: 14px;
	font-size: 1.15rem;
}

.awegene-form-success {
	color: #227a61;
	font-weight: 600;
	margin-left: 12px;
}

.awegene-disclaimer {
	font-size: 1.05rem;
	color: #8a95a1;
	text-align: center;
	margin-top: 20px;
}

/* Accessibility: visible focus ring everywhere, min touch target 44px */
.awegene-btn,
.awegene-form input,
.awegene-form select {
	min-height: 46px;
}

/* --- Label-left / input-right layout (desktop and tablet) ---
 *
 * The form markup is a flat sequence inside each fieldset:
 *   <label> , <input|select> , optional <span class="awegene-hint">
 * ...so rather than restructuring every field in the template, each
 * fieldset becomes a 2-column grid and each child is pinned to its
 * column explicitly: labels left, inputs right, and a field's hint
 * directly under its own input (also right column).
 *
 * Grid auto-placement is sparse, so after a hint lands in column 2 the
 * cursor never moves backwards — the next label correctly starts a new
 * row in column 1 instead of trying to squeeze into the current one.
 */
@media (min-width: 720px) {
	.awegene-form .awegene-section {
		display: grid;
		grid-template-columns: minmax( 0, 1fr ) minmax( 0, 1fr );
		column-gap: 24px;
		row-gap: 0;
		align-items: center;
	}

	.awegene-form .awegene-section legend {
		grid-column: 1 / -1;
	}

	.awegene-form .awegene-section > label {
		grid-column: 1;
		margin-top: 0;
		margin-bottom: 0;
		padding: 14px 0;
	}

	.awegene-form .awegene-section > input,
	.awegene-form .awegene-section > select {
		grid-column: 2;
		margin: 8px 0;
	}

	.awegene-form .awegene-section > .awegene-hint {
		grid-column: 2;
		margin-top: 0;
		margin-bottom: 10px;
	}

	/* A range slider reads better filling its own row's right column with
	   a bit more breathing room than a text input. */
	.awegene-form .awegene-section > input[type="range"] {
		margin: 14px 0;
	}
}

/* Below 720px the two columns leave neither side usable, so fall back to
   the stacked label-above-input layout. */
@media (max-width: 719px) {
	.awegene-container {
		padding: 20px 14px 48px;
	}

	.awegene-page-header h1 {
		font-size: 2.2rem;
	}

	.awegene-form legend {
		font-size: 1.8rem;
	}

	.awegene-form fieldset.awegene-section {
		padding: 16px;
	}
}
