/**
 * Contact-page quote request form (`[tsc_quote_request]`, 2026-11-11).
 * Builds on the booking form's tokens and field styles (tokens.css,
 * components.css), so both forms look like one site; only the layout of
 * this short, single-page form is defined here.
 */

.tscq-app {
	max-width: 44rem;
	margin-inline: auto;
}

.tscq {
	display: grid;
	gap: var(--tscb-space-5, 1.5rem);
	padding: clamp(1.25rem, 4vw, 2.25rem);
	background: var(--tscb-color-background);
	border: 1px solid var(--tscb-color-border);
	border-radius: var(--tscb-radius-lg, 12px);
}

.tscq[hidden] {
	display: none;
}

.tscq__head {
	display: grid;
	gap: 0.375rem;
}

.tscq__title {
	margin: 0;
	font-family: var(--tscb-font-heading);
	font-size: var(--tscb-font-size-xl);
	line-height: 1.25;
	color: var(--tscb-color-text);
}

.tscq__lead {
	margin: 0;
	color: var(--tscb-color-text-muted);
}

.tscq__group {
	display: grid;
	gap: var(--tscb-space-4, 1rem);
	min-width: 0; /* fieldsets otherwise refuse to shrink, and inputs overflow on phones */
	margin: 0;
	padding: 0;
	border: 0;
}

.tscq__legend {
	padding: 0 0 0.25rem;
	margin-bottom: 0.25rem;
	font-weight: 600;
	font-size: var(--tscb-font-size-lg);
	color: var(--tscb-color-text);
}

.tscq__row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
	gap: var(--tscb-space-4, 1rem);
}

.tscq__row[hidden],
.tscq .tscb-field[hidden] {
	display: none;
}

.tscq .tscb-field {
	min-width: 0;
	margin: 0;
}

.tscq .tscb-field__control {
	width: 100%;
	box-sizing: border-box;
}

.tscq__narrow-control {
	max-width: 14rem;
}

.tscq__optional {
	font-weight: 400;
	color: var(--tscb-color-text-muted);
}

.tscq__photos {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.tscq__photos:not(:empty) {
	margin-bottom: 0.5rem;
}

.tscq__photo {
	position: relative;
	margin: 0;
}

.tscq__photo img {
	display: block;
	width: 96px;
	height: 96px;
	object-fit: cover;
	border-radius: var(--tscb-radius-md, 8px);
	border: 1px solid var(--tscb-color-border);
}

.tscq__photo-remove {
	position: absolute;
	top: -0.5rem;
	right: -0.5rem;
	width: 1.75rem;
	height: 1.75rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--tscb-color-text);
	color: var(--tscb-color-background);
	font-size: 1.125rem;
	line-height: 1;
	cursor: pointer;
}

.tscq__photo-remove:focus-visible,
.tscq__photo-add:focus-within {
	outline: 3px solid var(--tscb-color-focus-ring);
	outline-offset: 2px;
}

.tscq__photo-add {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	cursor: pointer;
}

.tscq__photo-add[hidden] {
	display: none;
}

/* Bots fill every field; people never see this one. */
.tscq__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.tscq__send {
	display: grid;
	gap: 0.5rem;
}

.tscq__send .tscb-button--submit {
	width: 100%;
}

.tscq__promise,
.tscq__privacy,
.tscq__contact {
	margin: 0;
	font-size: var(--tscb-font-size-sm);
	color: var(--tscb-color-text-muted);
	text-align: center;
}

.tscq__contact {
	margin-top: var(--tscb-space-4, 1rem);
}

.tscq__done {
	display: grid;
	gap: 0.5rem;
	padding: clamp(1.25rem, 4vw, 2rem);
}

.tscq__done[hidden] {
	display: none;
}

.tscq__done p {
	margin: 0;
}

/* Anything the script hides stays hidden, whatever display the shared notice/field styles give it. */
.tscq-app [hidden] {
	display: none !important;
}
