/* Booking form. Deliberately low-specificity so the Rey theme still sets the
   page frame; only the form's own internals are styled here. */

.ssc-booking {
	/* Without an explicit width the form collapses to its content when the
	   theme drops it into a flex row, which is what an Elementor container is. */
	width: 100%;
	--ssc-ink: #121212;
	--ssc-muted: #6b6b6b;
	--ssc-line: #d8d8d8;
	--ssc-accent: #121212;
	--ssc-bad: #c4262e;
	--ssc-radius: 4px;
	max-width: 760px;
	margin: 0 auto;
	color: var(--ssc-ink);
	font-size: 15px;
	line-height: 1.5;
}

/* Our own display rules outrank the UA style for [hidden], so state it once
   here rather than remembering it on every component. */
.ssc-booking [hidden] { display: none !important; }

/* Themes set box-sizing inconsistently; inside the form we want one rule. */
.ssc-booking,
.ssc-booking *,
.ssc-booking *::before,
.ssc-booking *::after { box-sizing: border-box; }

/* progress */
.ssc-booking .ssc-steps {
	display: flex;
	gap: 8px;
	list-style: none;
	margin: 0 0 32px;
	padding: 0;
	counter-reset: none;
}
.ssc-booking .ssc-steps > li::marker { content: none; }
.ssc-step-dot {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
	align-items: center;
	text-align: center;
	font-size: 12px;
	color: var(--ssc-muted);
	border-top: 3px solid var(--ssc-line);
	padding-top: 10px;
}
.ssc-step-dot.is-current,
.ssc-step-dot.is-done { color: var(--ssc-ink); border-top-color: var(--ssc-accent); }
.ssc-step-num {
	width: 22px; height: 22px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--ssc-line); color: #fff; font-size: 12px; font-weight: 700;
}
.ssc-step-dot.is-current .ssc-step-num,
.ssc-step-dot.is-done .ssc-step-num { background: var(--ssc-accent); }
.ssc-step-name { letter-spacing: .02em; }

.ssc-booking .ssc-panel-title {
	margin: 0 0 20px;
	font-size: 20px;
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: normal;
	text-transform: none;
	color: inherit;
}

/* fields */
.ssc-field { margin: 0 0 20px; }
.ssc-booking .ssc-label {
	display: block;
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-transform: none;
	letter-spacing: normal;
	color: inherit;
}
.ssc-req { color: var(--ssc-bad); }
.ssc-desc,
.ssc-hint { margin: 4px 0 8px; font-size: 13px; color: var(--ssc-muted); }

.ssc-booking .ssc-field input[type="text"],
.ssc-booking .ssc-field input[type="email"],
.ssc-booking .ssc-field input[type="tel"],
.ssc-booking .ssc-field input[type="date"],
.ssc-booking .ssc-field input[type="time"],
.ssc-booking .ssc-field select,
.ssc-booking .ssc-field textarea {
	display: block;
	width: 100%;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 11px 12px;
	border: 1px solid var(--ssc-line);
	border-radius: var(--ssc-radius);
	background-color: #fff;
	background-image: none;
	color: inherit;
	font: inherit;
	line-height: 1.4;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

/* the arrow that appearance:none removes */
.ssc-booking .ssc-field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23121212' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
}

.ssc-booking .ssc-field textarea { resize: vertical; min-height: 96px; }
.ssc-booking .ssc-field input:focus-visible,
.ssc-booking .ssc-field select:focus-visible,
.ssc-booking .ssc-field textarea:focus-visible {
	outline: 2px solid var(--ssc-accent);
	outline-offset: 1px;
	border-color: var(--ssc-accent);
}

.ssc-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ssc-address > * + * { margin-top: 10px; }

/* choices */
.ssc-choices { display: grid; gap: 8px; }
.ssc-choice {
	display: flex; align-items: flex-start; gap: 10px;
	padding: 12px; border: 1px solid var(--ssc-line); border-radius: var(--ssc-radius);
	cursor: pointer;
}
.ssc-choice:hover { border-color: var(--ssc-accent); }
.ssc-choice input { margin-top: 2px; flex: none; }
.ssc-choice:has(input:checked) { border-color: var(--ssc-accent); box-shadow: inset 0 0 0 1px var(--ssc-accent); }

/* errors */
.ssc-err { margin: 6px 0 0; font-size: 13px; color: var(--ssc-bad); }
.ssc-field.has-error input,
.ssc-field.has-error select,
.ssc-field.has-error textarea { border-color: var(--ssc-bad); }
.ssc-error-summary {
	margin: 0 0 16px; padding: 12px 14px;
	border: 1px solid var(--ssc-bad); border-radius: var(--ssc-radius);
	background: #fdf3f3; color: var(--ssc-bad); font-size: 14px;
}

/* honeypot stays in the layout for bots but out of sight for people */
.ssc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* actions */
.ssc-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 28px; }
.ssc-booking .ssc-btn {
	display: inline-block;
	width: auto;
	min-height: 0;
	margin: 0;
	padding: 12px 28px;
	border: 1px solid var(--ssc-accent);
	border-radius: 100px;
	background: #fff;
	color: var(--ssc-accent);
	font: inherit;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: normal;
	text-transform: none;
	box-shadow: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.ssc-booking .ssc-btn.ssc-primary { background: var(--ssc-accent); color: #fff; }
.ssc-booking .ssc-btn:disabled { opacity: .55; cursor: default; }
.ssc-booking .ssc-btn:focus-visible { outline: 2px solid var(--ssc-accent); outline-offset: 2px; }

.ssc-done { text-align: center; padding: 36px 0; }
.ssc-booking .ssc-done h2 { margin: 0 0 10px; font-size: 22px; line-height: 1.3; }

@media (max-width: 600px) {
	.ssc-grid-2 { grid-template-columns: 1fr; }
	.ssc-step-name { display: none; }
	.ssc-actions { flex-direction: column-reverse; }
	.ssc-booking .ssc-btn { width: 100%; }
}

/* ---------- device lookup ---------- */

.ssc-verify-row { display: flex; gap: 8px; align-items: stretch; }
.ssc-verify-row > :first-child { flex: 1; min-width: 0; }

.ssc-booking .ssc-verify-btn {
	flex: none;
	min-width: 86px;
	padding: 0 16px;
	border: 1px solid var(--ssc-accent);
	border-radius: var(--ssc-radius);
	background: #fff;
	color: var(--ssc-accent);
	font: inherit;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.ssc-booking .ssc-verify-btn:hover { background: var(--ssc-accent); color: #fff; }
.ssc-booking .ssc-verify-btn[disabled] { opacity: .55; cursor: default; background: #fff; color: var(--ssc-accent); }
.ssc-booking .ssc-verify-btn:focus-visible { outline: 2px solid var(--ssc-accent); outline-offset: 2px; }

.ssc-verify-msg {
	margin-top: 8px;
	padding: 10px 12px;
	border-radius: var(--ssc-radius);
	font-size: 13px;
	line-height: 1.45;
}
.ssc-verify-msg.is-ok   { background: #e7f4ea; border: 1px solid #b7dfc1; color: #14562a; }
.ssc-verify-msg.is-bad  { background: #fdf3f3; border: 1px solid #f0c4c4; color: var(--ssc-bad); }

.ssc-override {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	padding: 10px 12px;
	border: 1px solid #e8d9a8;
	border-radius: var(--ssc-radius);
	background: #fdf8e8;
	font-size: 13px;
	cursor: pointer;
}
.ssc-override input { flex: none; margin: 0; }

.ssc-field.is-verified .ssc-verify-btn { border-color: #b7dfc1; color: #14562a; }

@media (max-width: 600px) {
	.ssc-verify-row { flex-direction: column; }
	.ssc-booking .ssc-verify-btn { width: 100%; padding: 11px 16px; }
}

/* ---------- static copy blocks ---------- */

.ssc-content { margin: 0 0 20px; }
.ssc-content[hidden] { display: none !important; }

.ssc-booking .ssc-h {
	margin: 28px 0 12px;
	font-size: 17px;
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: normal;
	text-transform: none;
	color: inherit;
}
.ssc-content:first-child .ssc-h { margin-top: 0; }
.ssc-booking .ssc-content p { margin: 0 0 8px; font-size: 14px; }
.ssc-booking .ssc-content a { color: inherit; text-decoration: underline; }

.ssc-dropoff {
	padding: 18px;
	border: 1px solid var(--ssc-line);
	border-radius: var(--ssc-radius);
	background: #fafafa;
}
.ssc-dropoff .ssc-h { margin-top: 0; }
.ssc-dropoff-name { font-weight: 700; }
.ssc-booking .ssc-dropoff address { margin: 0 0 10px; font-style: normal; font-size: 14px; line-height: 1.6; }
.ssc-hours { color: var(--ssc-muted); }
.ssc-map {
	display: block;
	width: 100%;
	height: 260px;
	margin-top: 14px;
	border: 0;
	border-radius: var(--ssc-radius);
}

/* Google's suggestion list renders at the end of <body>; the theme's header
   sits above it without this. */
.pac-container { z-index: 100000; }

/* ---------- attached photos ---------- */

.ssc-filelist { margin: 10px 0 0; padding: 0; list-style: none; }
.ssc-filelist[hidden] { display: none !important; }

.ssc-fileitem {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	border: 1px solid var(--ssc-line);
	border-radius: var(--ssc-radius);
	font-size: 13px;
}
.ssc-fileitem + .ssc-fileitem { margin-top: 6px; }
.ssc-fileitem > :first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ssc-filesize { flex: none; color: var(--ssc-muted); }

.ssc-booking .ssc-fileremove {
	flex: none;
	padding: 4px 10px;
	border: 1px solid var(--ssc-line);
	border-radius: 100px;
	background: #fff;
	color: var(--ssc-muted);
	font: inherit;
	font-size: 12px;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.ssc-booking .ssc-fileremove:hover { border-color: var(--ssc-bad); color: var(--ssc-bad); }
.ssc-booking .ssc-fileremove:focus-visible { outline: 2px solid var(--ssc-accent); outline-offset: 2px; }

/* ---------- enquiry form ---------- */

.ssc-enquiry .ssc-pairs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 16px;
}
/* A field that has not asked for half width spans the row. */
.ssc-enquiry .ssc-pairs > .ssc-field { grid-column: 1 / -1; }
.ssc-enquiry .ssc-pairs > .ssc-field.ssc-half { grid-column: auto; }

.ssc-enquiry .ssc-actions { justify-content: flex-start; }

@media (max-width: 600px) {
	.ssc-enquiry .ssc-pairs { grid-template-columns: 1fr; }
	.ssc-enquiry .ssc-pairs > .ssc-field.ssc-half { grid-column: 1 / -1; }
}
