/*
 * The enquiry form, in the site's own clothes (forms/form-enquiry-crm.php, js/enquiry-form.js).
 *
 * It used to be an iframe, which meant a form set in the CRM's font sitting inside a page set in
 * ours. Nothing here declares a font family on purpose: the form inherits the page's, which is
 * the whole point of bringing it in.
 *
 * Brand colours only — #FE415F for anything active, #231F20 for text — and the same blush tints
 * the navigation uses, so a tinted panel here reads as part of the same site rather than as a
 * third palette.
 */

.sc-enquiry {
	--sc-f-red: #FE415F;
	--sc-f-ink: #231F20;
	--sc-f-muted: #6b6466;
	--sc-f-line: #e4dedf;
	--sc-f-blush: #FFF1F4;
	--sc-f-blush-deep: #FFE4EA;
	--sc-f-warn: #a15c00;
	--sc-f-warn-bg: #FFF8E7;
	--sc-f-warn-line: #FFD980;
	/* No max-width: the form fills the column it is given, which is the page's content width.
	   It used to sit in a white rounded card inside a narrow column, which read as a widget
	   dropped onto the page rather than part of it. */
	margin-inline: auto;
	color: var(--sc-f-ink);
	text-align: left;
}

.sc-enquiry-heading {
	margin-bottom: 2rem;
}

/* Standing on the section's own background now, so the boxes are what carry the white. */
.sc-enquiry .sc-input,
.sc-enquiry .sc-choice {
	background: #fff;
}

/* ── The grid ────────────────────────────────────────────────────────────────────────────────
   Two columns, and almost everything spans both. Only the short pairs — name and email, phone
   and date — take one each, which is why they are the only fields that carry a width. */
.sc-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem 1rem;
	align-items: start;
}

.sc-fields > * {
	grid-column: 1 / -1;
	min-width: 0;
}

.sc-field--half {
	grid-column: span 1;
}

@media (max-width: 575.98px) {
	.sc-field--half {
		grid-column: 1 / -1;
	}
}

/* ── Labels and inputs ───────────────────────────────────────────────────────────────────── */

.sc-label {
	display: block;
	margin-bottom: .4rem;
	font-size: .95rem;
	font-weight: 600;
	line-height: 1.3;
}

.sc-req {
	color: var(--sc-f-red);
}

.sc-hint {
	color: var(--sc-f-muted);
	font-weight: 400;
}

.sc-input {
	display: block;
	width: 100%;
	padding: .75rem 1rem;
	border: 1px solid var(--sc-f-line);
	border-radius: .75rem;
	background: #fff;
	color: var(--sc-f-ink);
	font-size: 1rem;
	font-family: inherit;
	line-height: 1.4;
	transition: border-color .15s ease, box-shadow .15s ease;
	/* 16px or larger, so iOS does not zoom the page when the box is tapped. */
}

.sc-input:focus {
	outline: none;
	border-color: var(--sc-f-red);
	box-shadow: 0 0 0 3px rgba(254, 65, 95, .15);
}

.sc-input::placeholder {
	color: #a9a2a4;
}

.sc-select {
	cursor: pointer;
	/* The browser's own arrow, kept, but room made for it so a long class name never runs under it. */
	padding-right: 2.5rem;
}

.sc-textarea {
	resize: vertical;
	min-height: 6rem;
}

.sc-field.has-error .sc-input {
	border-color: var(--sc-f-red);
}

/* ── The field somebody has just been scrolled to ─────────────────────────────────────────────
   Added for a moment and taken away again, so the scroll has something to arrive at. It carries
   the work that putting the cursor in the field used to do: on a phone that opened the keyboard,
   which shoved the page up while the person was looking at the thing it had scrolled to. See
   reveal() in js/enquiry-form.js.

   A ring rather than a background, so it reads on a field that already has a red border, and
   outline rather than box-shadow so it follows the border's own shape with nothing to lay out. */
.sc-field.is-looking .sc-input,
.sc-field.is-looking .sc-choices,
.sc-field.is-looking .sc-checkbox {
	outline: 3px solid color-mix(in srgb, var(--sc-f-red) 35%, transparent);
	outline-offset: 2px;
	border-radius: 12px;
}

@media (prefers-reduced-motion: reduce) {
	/* The ring is the point; it just appears rather than easing in. */
	.sc-field.is-looking .sc-input,
	.sc-field.is-looking .sc-choices,
	.sc-field.is-looking .sc-checkbox {
		transition: none;
	}
}

.sc-error {
	margin: .35rem 0 0;
	color: var(--sc-f-red);
	font-size: .85rem;
}

/* ── The pill choices (venue, tables and chairs, parking) ─────────────────────────────────── */

.sc-choices {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
}

.sc-choice {
	flex: 1 1 10rem;
	padding: .7rem 1rem;
	border: 2px solid var(--sc-f-line);
	border-radius: .75rem;
	background: #fff;
	color: var(--sc-f-ink);
	font-size: .95rem;
	font-family: inherit;
	font-weight: 500;
	line-height: 1.3;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}

/* A yes/no pair should not stretch across the whole form like a choice between two venues —
   but the venue question IS that choice, so it is named out of this rather than left to out-rank
   it. A :has() selector beats a plain attribute one on specificity, which is how the two venue
   buttons ended up sized like a yes and a no. */
.sc-field--choice:not([data-field="is_mobile"]) .sc-choices:has(.sc-choice:nth-child(2):last-child) .sc-choice {
	flex: 0 1 auto;
	min-width: 6rem;
}

.sc-field[data-field="is_mobile"] .sc-choice {
	flex: 1 1 12rem;
}

.sc-choice.is-on {
	border-color: var(--sc-f-red);
	background: var(--sc-f-blush);
	font-weight: 700;
}

@media (hover: hover) {
	.sc-choice:hover {
		border-color: var(--sc-f-red);
	}
}

.sc-choice:focus-visible {
	outline: 2px solid var(--sc-f-red);
	outline-offset: 2px;
}

/* ── Tick boxes ──────────────────────────────────────────────────────────────────────────── */

.sc-checkbox,
.sc-tick {
	display: flex;
	align-items: flex-start;
	gap: .6rem;
	font-size: .95rem;
	line-height: 1.45;
	cursor: pointer;
}

.sc-checkbox input,
.sc-tick input {
	flex: none;
	width: 1.05rem;
	height: 1.05rem;
	margin-top: .15rem;
	accent-color: var(--sc-f-red);
	cursor: pointer;
}

.sc-tick.is-disabled,
.sc-tick.is-disabled input {
	color: var(--sc-f-muted);
	cursor: default;
}

/* ── THE OTHER-ACTIVITY TICKBOXES, LAID OUT ──────────────────────────────────────────────────
   Eight of them in one narrow column left the right half of step two empty on a desktop and made
   the step look like it was still loading. In columns they read as a set of options, which is
   what they are, and the step fills its own width. One column on a phone, where a second would
   make each label too narrow to read in one line. Sophie, 21 November 2026. */
.sc-extra-classes {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: .5rem 1.5rem;
}

@media (min-width: 576px) {
	.sc-extra-classes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 992px) {
	.sc-extra-classes {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* ── The tinted box of mobile-event questions ────────────────────────────────────────────── */

.sc-group {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 1.25rem;
	border: 1px solid var(--sc-f-blush-deep);
	border-radius: 1rem;
	background: var(--sc-f-blush);
}

/* ── Notes ───────────────────────────────────────────────────────────────────────────────── */

.sc-note p {
	margin: 0;
}

.sc-note p + p {
	margin-top: .5rem;
}

.sc-note--info {
	color: var(--sc-f-muted);
	font-size: .9rem;
	line-height: 1.5;
}

/* A warning about the group size or the room: it is advice, not an error, so it is warm rather
   than red — red is reserved for something the person has to fix before they can send. */
.sc-note--warn {
	margin-top: -.6rem;
	color: var(--sc-f-warn);
	font-size: .9rem;
	line-height: 1.5;
}

.sc-note--safety {
	margin-top: -.4rem;
	padding: 1rem 1.1rem;
	border: 1.5px solid var(--sc-f-warn-line);
	border-radius: .9rem;
	background: var(--sc-f-warn-bg);
	color: #664400;
	font-size: .9rem;
	line-height: 1.55;
}

.sc-note-title {
	margin-bottom: .35rem !important;
	color: #996600;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.sc-slot-note {
	margin: .35rem 0 0;
	color: var(--sc-f-warn);
	font-size: .85rem;
}

/* ── Sending ─────────────────────────────────────────────────────────────────────────────── */

.sc-submit {
	margin-top: 1.75rem;
	min-width: 14rem;
}

.sc-submit[disabled] {
	opacity: .6;
	cursor: progress;
}

/* ── Sent ──
   The button IS the confirmation, because that is where the thumb already is. The page used to
   scroll a thank-you into view and on a long form that threw the reader to the footer.

   Green rather than the brand pink: pink is what the button looked like a moment ago, and a
   confirmation that looks like the control it replaced is one people press again. Full opacity
   and a default cursor override the disabled rule above — this is finished, not in progress. */
.sc-privacy {
	margin: .75rem 0 0;
	color: var(--sc-f-muted);
	font-size: .85rem;
}

.sc-form-error {
	margin: 1.25rem 0 0;
	padding: .85rem 1rem;
	border: 1px solid var(--sc-f-red);
	border-radius: .75rem;
	background: var(--sc-f-blush);
	color: var(--sc-f-red);
	font-size: .9rem;
}

/* ── Sent ──────────────────────────────────────────────────────────────────────────────────
   The form is hidden and this takes its place: the circle logo, the thank-you, and the three
   things somebody wants to know next. The Send button used to turn green and say "Enquiry Sent"
   with the emptied form still under it — green is not one of our colours, and a blank form under
   a sent message reads as though it did not go. Sophie, 21 November 2026.

   It is as tall as what it says. It was held to the height the form had, so the page below could
   not jump up when the form disappeared, and that left a hand's width of empty pink above the
   logo on a phone. What stops the jump now is the scroll: the panel goes to the top of the
   screen, so there is nothing above it to be thrown about. Sophie, 22 November 2026. */

.sc-sent {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 2.5rem 1.5rem;
	border-radius: 1rem;
	background: var(--sc-f-blush);
	text-align: center;
}

/* The mark is already a circle on a transparent ground, so it needs no ring cut around it —
   the site icon it replaced was a square picture, which did. */
.sc-sent-logo {
	display: block;
	width: 88px;
	height: 88px;
	margin-bottom: 1.25rem;
}

.sc-sent-tick {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	margin-bottom: 1rem;
	border-radius: 50%;
	background: var(--sc-f-red);
	color: #fff;
	font-size: 1.5rem;
}

.sc-sent h3 {
	margin-bottom: .5rem;
}

.sc-sent-detail {
	margin: 0 0 1.5rem;
	max-width: 34rem;
	color: var(--sc-f-ink, #231F20);
	font-weight: 600;
}

/* What happens next. Left-aligned inside a centred block: three sentences centred one under
   another are a poster, and this is a list of facts. */
.sc-sent-next {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: .6rem;
	text-align: left;
	max-width: 30rem;
	color: var(--sc-f-muted);
	font-size: .95rem;
}

.sc-sent-next li {
	display: flex;
	align-items: flex-start;
	gap: .6rem;
}

.sc-sent-next .bi {
	color: var(--sc-f-red);
	margin-top: .15em;
}

/* !important because style.min.css sets a colour on every link inside a paragraph with one of
   its own — the same fight the gift-card link had. See brand.css. */
.sc-sent-next a,
.sc-sent-next a:hover,
.sc-sent-next a:visited,
.sc-sent-next a:focus-visible {
	color: var(--sc-f-red) !important;
	font-weight: 700;
	text-decoration: underline !important;
	text-underline-offset: 3px;
}

.sc-enquiry-down {
	padding: 2rem 1.5rem;
	border-radius: 1rem;
	background: var(--sc-f-blush);
}

/* ── THE THREE STEPS ─────────────────────────────────────────────────────────────────────────── */

/* The bar is decoration over the step names: a bar alone says how far through you are without
   saying what is left, and three words say both. */
.sc-steps-bar {
	height: 4px;
	margin: 0 0 .75rem;
	border-radius: 2px;
	background: rgba(35, 31, 32, .1);
	overflow: hidden;
}

.sc-steps-bar-fill {
	height: 100%;
	border-radius: 2px;
	background: var(--sc-f-red, #FE415F);
	transition: width .35s ease;
}

@media (prefers-reduced-motion: reduce) {
	.sc-steps-bar-fill { transition: none; }
}








/* Said for a screen reader, which gets the change the eye gets from the bar. */
/* "Step 1 of 3", above the bar. It was visually hidden and the three named steps above it were
   what you read; on a phone the pair of them pushed the Next button off the bottom of the
   screen, which is the one control a step exists for. Sophie, 22 November 2026: four words and
   a bar. It is still the live region, so the screen and a screen reader cannot disagree. */
.sc-steps-say {
	margin: 0 0 .35rem;
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--sc-f-muted);
}

/* ── Back / Next / Send ───────────────────────────────────────────────────────────────────────
   One row, so Back and the forward action are never stacked on top of each other on a phone.
   Back is a quiet link-weight button: it is the way out, not an equal choice. */
.sc-step-nav {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: 1.5rem;
}

.sc-step-nav .sc-back {
	padding: 0;
	border: 0;
	background: none;
	color: #6B7280;
	font-size: .9rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.sc-step-nav .sc-next,
.sc-step-nav .sc-submit {
	margin-left: auto;
}

/* On a phone the forward action is full width and Back sits under it, so the thumb lands on the
   thing that moves you on. */
@media (max-width: 575.98px) {
	.sc-step-nav {
		flex-direction: column-reverse;
		align-items: stretch;
		gap: .75rem;
	}

	.sc-step-nav .sc-next,
	.sc-step-nav .sc-submit {
		margin-left: 0;
		width: 100%;
	}

}

/* ── OTHER ACTIVITIES ─────────────────────────────────────────────────────────────────────────
   The list is simply there, under the question that asks for it. It was behind a "+ Add another
   activity to the quote" link for a day, to keep step two short; Sophie, 21 November 2026: the
   link was one more thing to read in front of the thing it was hiding. */
.sc-extra-wrap {
	margin-top: .5rem;
}

/* ── THE VENUE'S TWO BUTTONS, SIDE BY SIDE ON A PHONE TOO ─────────────────────────────────────
   They are two halves of one question — at the studio, or we come to you — and stacked they read
   as a list of options with the second one looking like an afterthought. Sophie, 21 November
   2026. They are already a row on desktop; this is the override that stopped them stacking at
   the narrow end.

   The rule that made them full width keys off .sc-field--choice having exactly two children; the
   venue is excluded from it by name there, and this makes the pair share the row. */
.sc-field[data-field="is_mobile"] .sc-choices {
	display: flex;
	flex-direction: row;
	gap: .5rem;
}

.sc-field[data-field="is_mobile"] .sc-choice {
	flex: 1 1 0;
	min-width: 0;
	padding-inline: .5rem;
	font-size: .9rem;
	text-align: center;
}

@media (max-width: 420px) {
	.sc-field[data-field="is_mobile"] .sc-choice {
		font-size: .82rem;
		line-height: 1.25;
	}
}

/* ── THE TWO FLEXIBILITY TICKBOXES ON ONE LINE ────────────────────────────────────────────────
   They are a pair and they are short; two full-width rows for eight words is the form taking up
   space it has not earned. They carry width: half from the CRM's own question list, which the
   form already pairs into a row — this only stops the tickbox and its words from wrapping
   inside that half. */
.sc-field--checkbox .sc-checkbox {
	align-items: center;
	gap: .5rem;
}

.sc-field--checkbox .sc-checkbox span {
	font-size: .92rem;
	line-height: 1.3;
}

/* ── DATE AND TIME STAY SIDE BY SIDE ON A PHONE ──────────────────────────────────────────────
   Every half-width field goes full width below 576px, which is right for a long dropdown and
   wrong for these four: Date and Time Slot are short, and stacking them with a tickbox under
   each pushed the Next button a screen and a half down. Sophie, 22 November 2026.

   Named rather than applied to every half-width field, because the rule is about these
   questions being short, not about the breakpoint. */
@media (max-width: 575.98px) {
	.sc-field--half[data-field="event_date"],
	.sc-field--half[data-field="time_slot"],
	.sc-field--half[data-field="date_flexible"],
	.sc-field--half[data-field="time_flexible"] {
		grid-column: span 1;
	}

	/* Four words beside a tickbox in half a phone's width: small enough to fit on two lines
	   without the label wrapping mid-word. */
	.sc-field--checkbox .sc-checkbox span {
		font-size: .82rem;
	}

	/* The native date field decides its own text, so all that can be given is room: no inner
	   padding to spare and a size that lets the browser's longest rendering through. The time
	   dropdown beside it takes the same size so the pair match. */
	.sc-field[data-field="event_date"] .sc-input,
	.sc-field[data-field="time_slot"] .sc-input {
		padding-inline: .6rem;
		font-size: .9rem;
	}

	.sc-field[data-field="time_slot"] .sc-select {
		padding-right: 1.9rem;
	}
}

/* ── A CHOICE WITH A SECOND LINE ──────────────────────────────────────────────────────────────
   "At the Studio" over "Redfern". Both on one line made two buttons that each wrapped to three
   lines on a 390px phone; the choice reads at a glance now and the detail is still there.
   Sophie, 21 November 2026. */
.sc-choice-main {
	display: block;
}

.sc-choice-sub {
	display: block;
	margin-top: .1rem;
	font-size: .78rem;
	font-weight: 400;
	opacity: .7;
}

.sc-field[data-field="is_mobile"] .sc-choice {
	padding-block: .6rem;
	line-height: 1.25;
}

/* ── Message starts at three lines ──────────────────────────────────────────────────────────
   Three lines of text plus the padding, and no less: a box sitting in a step that has not been
   shown yet measures zero, and the script's own sizing would leave it a slot. min-height wins
   over an inline height, so this is the floor whatever the script works out. It grows from here
   as somebody types — js/enquiry-form.js, growTextareas(). */
.sc-field--textarea textarea {
	min-height: 5.25rem;
	resize: vertical;
	overflow-y: hidden;
}

/* ── THE ACTIVITY, AS CARDS ──────────────────────────────────────────────────────────────────
   One choice, laid out like the other-activities tickboxes under it, so step two reads as one
   question and then an optional one rather than a closed dropdown and a list. The dropdown is
   still the answer underneath — see js/enquiry-form.js — and is hidden rather than removed, so
   the form still works with no JavaScript. Sophie, 22 November 2026. */
.sc-field--cards .sc-select {
	/* Not display:none: it is still the control being read, and a form control that is
	   display:none is one a browser may decline to submit or validate. Out of sight, out of the
	   tab order (tabindex is set in the script), still there. */
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.sc-pick-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: .5rem;
}

@media (min-width: 576px) {
	.sc-pick-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: .6rem;
	}
}

@media (min-width: 992px) {
	.sc-pick-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* A tick, the name, and the detail pushed to the far end: "Bracelet Making" on the left and
   "2 hrs · $80pp" on the right, one row per card. The two used to be stacked, which made each
   card two lines tall and the list of nine a screen and a half. Sophie, 22 November 2026. */
.sc-pick-grid .sc-choice {
	display: flex;
	align-items: center;
	gap: .6rem;
	width: 100%;
	padding-block: .65rem;
	line-height: 1.25;
	text-align: left;
	cursor: pointer;
}

.sc-pick-grid .sc-pick-text {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: .5rem;
	width: 100%;
}

.sc-pick-grid .sc-choice-main,
.sc-pick-grid .sc-choice-sub {
	display: inline;
	margin-top: 0;
}

.sc-pick-grid .sc-choice-sub {
	flex: 0 0 auto;
	white-space: nowrap;
	font-size: .82rem;
}

.sc-pick-grid .sc-choice.is-disabled {
	opacity: .45;
	cursor: default;
}

.sc-pick-box {
	flex: 0 0 auto;
	width: 1.05rem;
	height: 1.05rem;
	margin: 0;
	accent-color: var(--sc-f-red, #FE415F);
}

.sc-pick-text {
	min-width: 0;
}

/* An error on this question has to point at the cards, which is where the question now is. */
.sc-field--cards.has-error .sc-pick-grid .sc-choice {
	border-color: var(--sc-f-red);
}

/* ── THE VENUE'S DETAIL, INLINE ON A DESKTOP ─────────────────────────────────────────────────
   "At the Studio" over "Redfern" was for a 390px phone, where both on one line wrapped each
   button to three. On a wide screen there is room for the whole thing on one line, and the
   bracket is what makes the second half read as the aside it is. Sophie, 22 November 2026. */
@media (min-width: 576px) {
	.sc-field[data-field="is_mobile"] .sc-choice-main,
	.sc-field[data-field="is_mobile"] .sc-choice-sub {
		display: inline;
	}

	.sc-field[data-field="is_mobile"] .sc-choice-sub {
		margin-top: 0;
	}

	/* The two spans are adjacent in the markup with no space between them, so the space lives
	   here with the bracket rather than as a stray character in the PHP. */
	.sc-field[data-field="is_mobile"] .sc-choice-sub::before {
		content: " (";
	}

	.sc-field[data-field="is_mobile"] .sc-choice-sub::after {
		content: ")";
	}
}

/* ── WHILE IT IS SENDING ─────────────────────────────────────────────────────────────────────
   Three or four seconds pass between the tap and the thank-you — a reCAPTCHA token, this site's
   proxy, and the CRM — and for all of it the only sign anything was happening was the button's
   words changing. Sophie, 22 November 2026: it has to look pressed.

   A spinner rather than only a dimming, because dimming alone reads as "this control is off"
   and the whole point is that something IS happening. */
.sc-submit.is-sending {
	position: relative;
	opacity: 1;
	cursor: progress;
	padding-left: 2.6rem;
}

.sc-submit.is-sending::before {
	content: "";
	position: absolute;
	left: 1.25rem;
	top: 50%;
	width: 1rem;
	height: 1rem;
	margin-top: -.5rem;
	border: 2px solid rgba(255, 255, 255, .45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: sc-spin .7s linear infinite;
}

@keyframes sc-spin {
	to { transform: rotate(360deg); }
}

/* Somebody who has asked for less movement gets the state without the spin. */
@media (prefers-reduced-motion: reduce) {
	.sc-submit.is-sending::before {
		animation: none;
		border-top-color: rgba(255, 255, 255, .45);
	}
}
