/* ==========================================================================
   Booking survey — local styles for ai/book/

   Loaded after the shared sheets; nothing here edits them. Survey chrome
   only: option cards, the question headings inside <fieldset>s, step
   errors, and the honeypot. Palette and type come from ../style.css vars.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Progress indicator
   -------------------------------------------------------------------------- */

.survey-progress {
	margin: 0 0 1.25rem;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--muted);
}

/* --------------------------------------------------------------------------
   Questions

   Radio/checkbox steps use <fieldset><legend>; the two free-text steps use
   a <label> instead. Both render as the same h2-style heading the rest of
   the site uses for section titles.
   -------------------------------------------------------------------------- */

.survey-step {
	margin: 0;
	padding: 0;
	border: 0;
}

.survey-step > legend,
.question-label {
	padding: 0;
	margin: 0 0 1.1rem;
	font-weight: 600;
	font-size: 1.15rem;
	color: var(--foreground);
	line-height: 1.35;
}

.question-label {
	display: block;
	margin: 0 0 0.15rem;
}

.step-error + .question-label {
	margin-top: 2.2rem;
}

.step-hint {
	margin: 0 0 0.9rem;
	font-size: 0.9rem;
	color: var(--muted);
}

/* --------------------------------------------------------------------------
   Option cards
   -------------------------------------------------------------------------- */

.options {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.option {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.65rem 0.9rem;
	background: var(--surface);
	border: 2px solid var(--border);
	border-radius: 0.6rem;
	cursor: pointer;
	transition:
		border-color 0.12s ease,
		background 0.12s ease;
}

.option:hover {
	background: var(--accent-wash);
	border-color: var(--primary);
	opacity: 1;
}

.option:has(input:checked) {
	background: var(--accent-wash);
	border-color: var(--primary);
}

.option input {
	accent-color: var(--primary);
	flex: none;
}

.option input:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 2px;
}

/* The "Recommended" tag beside the Yes option on the voice question. */
.recommended-tag {
	display: inline-block;
	margin-left: 0.45rem;
	padding: 0.05rem 0.4rem;
	border: 1px solid var(--border);
	border-radius: 0.35rem;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--primary);
}

/* --------------------------------------------------------------------------
   Text inputs
   -------------------------------------------------------------------------- */

.survey-step textarea,
.survey-step input[type="email"],
.survey-step input[type="tel"] {
	display: block;
	width: 100%;
	padding: 0.6rem 0.75rem;
	background: var(--surface);
	border: 2px solid var(--border);
	border-radius: 0.6rem;
	color: var(--foreground);
	font: inherit;
}

.survey-step textarea {
	resize: vertical;
	min-height: 7rem;
}

.survey-step textarea:focus-visible,
.survey-step input[type="email"]:focus-visible,
.survey-step input[type="tel"]:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 2px;
	border-color: var(--primary);
}

/* --------------------------------------------------------------------------
   Errors and inline notices

   The palette is deliberately monochrome green — the accent doubles as the
   attention color rather than importing a foreign hue.
   -------------------------------------------------------------------------- */

.step-error,
.submit-error {
	margin: 1rem 0 0;
	padding: 0.6rem 0.85rem;
	border-left: 4px solid var(--primary);
	background: var(--accent-wash);
	border-radius: 0.4rem;
	font-size: 0.95rem;
}

.step-error {
	margin-bottom: 0;
}

.step-error:empty {
	margin: 0;
	padding: 0;
	border: 0;
}

.submit-error p:first-child {
	margin-top: 0;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.survey-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-top: 1.5rem;
}

.survey-nav button {
	/* Buttons do not inherit the page font; the shared .button rules were
	   written for anchors. */
	font-family: var(--font-sans);
	font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Honeypot — offscreen, unfocusable, invisible to humans
   -------------------------------------------------------------------------- */

.hp-field {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Narrow screens — mirror the shared .resume-actions behavior
   -------------------------------------------------------------------------- */

@media (max-width: 40rem) {
	.survey-nav .button {
		flex: 1 1 auto;
		text-align: center;
	}
}
