/*
 * WIP Quick Quote — styled to match the original worksnyc.org quote form:
 * labels left (16px), controls right, the theme's body text size for headings and notes,
 * the teal dot slider, pill switch, pill totals and outlined uppercase buttons.
 */

.wipqq {
	--wipqq-accent: #4ec8c2;
	--wipqq-ink: #000;
	--wipqq-muted: #555;
	--wipqq-line: #ccc;
	--wipqq-soft: #f4f6f7;
	--wipqq-label-width: 220px;
	color: var(--wipqq-ink);
	margin: 0 auto 3rem;
	max-width: 100%;
	scroll-margin-top: 2rem;
}

.wipqq *,
.wipqq *::before,
.wipqq *::after {
	box-sizing: border-box;
}

.wipqq [hidden] {
	display: none !important;
}

.wipqq a {
	color: var(--wipqq-accent);
}

/* Method switcher */
.wipqq-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 30px;
}

.wipqq-nav-item {
	border: 2px solid var(--wipqq-accent);
	border-radius: 50px;
	color: var(--wipqq-accent) !important;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: .04em;
	padding: 4px 18px;
	text-decoration: none !important;
	text-transform: uppercase;
}

.wipqq-nav-item:hover,
.wipqq-nav-item:focus-visible {
	border-color: #999;
	color: #555 !important;
}

.wipqq-nav-item.is-current {
	background: var(--wipqq-accent);
	color: #fff !important;
}

/* Rows: label left, control right */
.wipqq-row {
	align-items: start;
	display: grid;
	gap: 8px 20px;
	grid-template-columns: var(--wipqq-label-width) minmax(0, 1fr);
	margin: 0 0 30px;
}

.wipqq-label,
.wipqq-label label {
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	margin: 8px 0 0;
}

.wipqq-label label {
	display: block;
	margin: 0;
}

.wipqq-control {
	min-width: 0;
}

/* Doubled class so the theme's teal h3 style doesn't win: the original used bold body text. */
.wipqq .wipqq-heading {
	color: var(--wipqq-ink);
	font-family: inherit;
	font-size: inherit;
	font-weight: 700;
	letter-spacing: normal;
	line-height: 1.4;
	margin: 30px 0 20px;
}

.wipqq-heading:focus {
	outline: none;
}

.wipqq-note {
	margin: 0 0 30px;
}

.wipqq-note p {
	margin: 0;
}

.wipqq-help {
	color: #333;
	font-size: 16px;
	line-height: 1.5;
	margin: 8px 0 0;
}

.wipqq-small,
.wipqq-disclaimer {
	color: var(--wipqq-muted);
	font-size: 14px;
}

/* Inputs */
.wipqq input[type="text"],
.wipqq input[type="email"],
.wipqq input[type="tel"],
.wipqq input[type="date"],
.wipqq select,
.wipqq textarea {
	background: #fff;
	border: 1px solid var(--wipqq-line);
	border-radius: 2px;
	color: #000;
	font: inherit;
	font-size: 18px;
	margin: 0;
	min-height: 44px;
	padding: 8px 12px;
	transition: box-shadow 380ms ease;
	width: 100%;
}

.wipqq input:hover,
.wipqq select:hover,
.wipqq textarea:hover {
	box-shadow: 0 1px 5px rgba(0, 0, 0, .2);
}

.wipqq input:focus,
.wipqq select:focus,
.wipqq textarea:focus {
	box-shadow: 5px 0 0 var(--wipqq-accent) inset, 0 2px 10px rgba(0, 0, 0, .2);
	outline: none;
}

.wipqq input:focus-visible,
.wipqq select:focus-visible,
.wipqq textarea:focus-visible,
.wipqq summary:focus-visible,
.wipqq button:focus-visible {
	outline: 3px solid var(--wipqq-accent);
	outline-offset: 2px;
}

.wipqq input[type="file"] {
	font-size: 16px;
	margin: 8px 0 0;
	max-width: 100%;
}

/* Picture options: shared by the grid and the dropdown */
.wipqq-card {
	align-items: center;
	background: #fff;
	border: 1px solid var(--wipqq-line);
	cursor: pointer;
	display: flex;
	gap: 12px;
	margin: 0;
	position: relative;
	text-align: left;
	transition: box-shadow 380ms ease, border-color 200ms ease;
}

.wipqq-card input {
	opacity: 0;
	pointer-events: none;
	position: absolute;
}

.wipqq-card img,
.wipqq-card-noimg {
	flex: none;
	height: 56px;
	object-fit: contain;
	width: 56px;
}

.wipqq-card-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.wipqq-card-title {
	color: #000;
	font-size: 21px;
	line-height: 1.2;
}

.wipqq-card-desc {
	color: var(--wipqq-muted);
	font-size: 12px;
	line-height: 1.5;
}

.wipqq-card:hover {
	box-shadow: 0 1px 5px rgba(0, 0, 0, .2);
}

.wipqq-card:has(input:focus-visible) {
	outline: 3px solid var(--wipqq-accent);
	outline-offset: 2px;
}

/* Grid style */
.wipqq-card-grid {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.wipqq-card-grid .wipqq-card {
	border-radius: 2px;
	flex-direction: column;
	height: 100%;
	padding: 12px 10px;
	text-align: center;
}

.wipqq-card-grid .wipqq-card img,
.wipqq-card-grid .wipqq-card-noimg {
	height: 90px;
	width: 100%;
}

.wipqq-card-grid .wipqq-card-title {
	font-size: 18px;
}

.wipqq-card-grid .wipqq-card.is-checked,
.wipqq-card-grid .wipqq-card:has(input:checked) {
	border-color: var(--wipqq-accent);
	box-shadow: 0 0 0 2px var(--wipqq-accent) inset;
}

/* Dropdown style (as on the original site) */
.wipqq-dd {
	position: relative;
}

.wipqq-dd-toggle {
	align-items: center;
	background: #fff;
	border: 1px solid var(--wipqq-line);
	border-radius: 2px;
	color: inherit;
	cursor: pointer;
	display: flex;
	font: inherit;
	letter-spacing: normal;
	min-height: 76px;
	padding: 8px 40px 8px 12px;
	position: relative;
	text-align: left;
	text-transform: none;
	transition: box-shadow 380ms ease;
	width: 100%;
}

.wipqq-dd-toggle:hover {
	box-shadow: 0 1px 5px rgba(0, 0, 0, .2);
}

.wipqq-dd.is-open .wipqq-dd-toggle {
	border-color: #999;
	box-shadow: 5px 0 0 var(--wipqq-accent) inset, 0 2px 10px rgba(0, 0, 0, .2);
}

.wipqq-dd-current {
	align-items: center;
	display: flex;
	gap: 12px;
	min-width: 0;
}

.wipqq-dd-current img,
.wipqq-dd-current .wipqq-card-noimg {
	flex: none;
	height: 56px;
	object-fit: contain;
	width: 56px;
}

.wipqq-dd-caret {
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 7px solid #bbb;
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
}

.wipqq-dd.is-open .wipqq-dd-caret {
	transform: translateY(-50%) rotate(180deg);
}

.wipqq-dd-list {
	background: #fff;
	border: 1px solid #999;
	border-top: 0;
	box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
	left: 0;
	max-height: 420px;
	overflow-y: auto;
	position: absolute;
	right: 0;
	top: 100%;
	z-index: 20;
}

.wipqq-dd-list .wipqq-card {
	border: 0;
	border-bottom: 1px solid #eee;
	padding: 8px 12px;
}

.wipqq-dd-list .wipqq-card:hover,
.wipqq-dd-list .wipqq-card.is-checked,
.wipqq-dd-list .wipqq-card:has(input:checked) {
	background: #f2fbfa;
	box-shadow: 5px 0 0 var(--wipqq-accent) inset;
}

.wipqq-garment.is-disabled {
	opacity: .45;
}

/* Buttons (radio pills) */
.wipqq-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.wipqq-pill {
	margin: 0;
	position: relative;
}

.wipqq-pill input {
	opacity: 0;
	pointer-events: none;
	position: absolute;
}

.wipqq-pill span {
	border: 1px solid var(--wipqq-line);
	border-radius: 50px;
	cursor: pointer;
	display: inline-block;
	font-size: 16px;
	line-height: 1.5;
	padding: 7px 18px;
	transition: box-shadow 380ms ease;
}

.wipqq-pill:hover span {
	box-shadow: 0 1px 5px rgba(0, 0, 0, .2);
}

.wipqq-pill input:checked + span {
	background: var(--wipqq-accent);
	border-color: var(--wipqq-accent);
	color: #fff;
	font-weight: 700;
}

.wipqq-pill input:focus-visible + span {
	outline: 3px solid var(--wipqq-accent);
	outline-offset: 2px;
}

/* Switch (original: 76×38 pill, grey knob that turns teal) */
.wipqq-switch {
	display: inline-block;
	height: 38px;
	position: relative;
	width: 76px;
}

.wipqq-switch input {
	cursor: pointer;
	height: 100%;
	left: 0;
	margin: 0;
	opacity: 0;
	position: absolute;
	top: 0;
	width: 100%;
	z-index: 1;
}

.wipqq-switch-track {
	border: 1px solid var(--wipqq-line);
	border-radius: 38px;
	display: block;
	height: 38px;
	padding: 5px;
	transition: box-shadow 380ms ease;
	width: 76px;
}

.wipqq-switch-track::after {
	background: var(--wipqq-line);
	border-radius: 50%;
	content: "";
	display: block;
	height: 26px;
	transition: all 190ms ease;
	width: 26px;
}

.wipqq-switch:hover .wipqq-switch-track {
	box-shadow: 0 1px 5px rgba(0, 0, 0, .2);
}

.wipqq-switch input:checked + .wipqq-switch-track::after {
	background: var(--wipqq-accent);
	margin-left: 38px;
}

.wipqq-switch input:focus-visible + .wipqq-switch-track {
	outline: 3px solid var(--wipqq-accent);
	outline-offset: 2px;
}

/* Slider (original: soft 20px track, 38px teal dot with the value inside) */
.wipqq-slider {
	--wipqq-thumb: 38px;
	align-items: center;
	display: flex;
	gap: 12px;
	min-height: 38px;
}

.wipqq-slider.is-wide {
	--wipqq-thumb: 64px;
}

.wipqq-slider-end {
	color: var(--wipqq-muted);
	flex: none;
	font-size: 14px;
	font-weight: 700;
	min-width: 1.5em;
	text-align: center;
}

.wipqq-slider-track {
	flex: 1;
	min-width: 0;
	position: relative;
}

.wipqq-slider input[type="range"] {
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	cursor: pointer;
	display: block;
	height: 38px;
	margin: 0;
	padding: 0;
	width: 100%;
}

.wipqq-slider input[type="range"]::-webkit-slider-runnable-track {
	background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, .05), rgba(0, 0, 0, 0));
	border: 1px solid var(--wipqq-line);
	border-radius: 20px;
	height: 20px;
}

.wipqq-slider input[type="range"]::-moz-range-track {
	background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, .05), rgba(0, 0, 0, 0));
	border: 1px solid var(--wipqq-line);
	border-radius: 20px;
	height: 20px;
}

/* The real thumb is invisible; the bubble below is drawn in its place. */
.wipqq-slider input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	cursor: grab;
	height: 38px;
	margin-top: -10px;
	opacity: 0;
	width: var(--wipqq-thumb);
}

.wipqq-slider input[type="range"]::-moz-range-thumb {
	border: 0;
	cursor: grab;
	height: 38px;
	opacity: 0;
	width: var(--wipqq-thumb);
}

.wipqq-slider-bubble {
	background: var(--wipqq-accent);
	border-radius: 38px;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	height: 38px;
	left: 0;
	line-height: 38px;
	pointer-events: none;
	position: absolute;
	text-align: center;
	top: 0;
	white-space: nowrap;
	width: var(--wipqq-thumb);
}

.wipqq-slider.is-wide .wipqq-slider-bubble {
	font-size: 13px;
}

.wipqq-slider:hover .wipqq-slider-bubble {
	box-shadow: 0 0 0 3px rgba(0, 0, 0, .2) inset;
}

.wipqq-slider input[type="range"]:active + .wipqq-slider-bubble {
	box-shadow: 0 2px 10px rgba(0, 0, 0, .5), 0 0 0 3px rgba(0, 0, 0, .2) inset;
}

.wipqq-slider input[type="range"]:focus-visible + .wipqq-slider-bubble {
	outline: 3px solid var(--wipqq-ink);
	outline-offset: 2px;
}

.wipqq-slider input[type="range"]:focus {
	outline: none;
}

.wipqq-slider-caption {
	font-size: 16px;
	margin: 6px 0 0;
	text-align: center;
}

.wipqq-over,
.wipqq-minnote {
	background: var(--wipqq-soft);
	border-left: 4px solid var(--wipqq-accent);
	font-size: 16px;
	margin: 12px 0 0;
	padding: 8px 12px;
}

/* Advanced options (under the product picker) */
.wipqq-row-advanced {
	margin-top: -18px;
}

.wipqq-advanced summary {
	color: var(--wipqq-accent);
	cursor: pointer;
	font-size: 16px;
	font-weight: 700;
}

.wipqq-advanced-body {
	margin: 10px 0 0;
}

.wipqq-advanced-body label {
	display: block;
	font-size: 16px;
	margin: 0 0 6px;
}

/* Totals (original: teal pills, amount in a darker pill) */
.wipqq-summary {
	display: grid;
	gap: 20px 30px;
	grid-template-columns: 1fr 1fr;
	margin: 30px 0 10px;
}

.wipqq-figure {
	align-items: center;
	background: var(--wipqq-accent);
	border-radius: 50px;
	color: #fff;
	display: flex;
	font-weight: 700;
	justify-content: flex-end;
	line-height: 1.8;
	overflow: hidden;
}

.wipqq-figure-label {
	font-size: 18px;
	margin-right: 1em;
}

.wipqq-figure strong {
	background: rgba(0, 0, 0, .25);
	border-radius: 50px;
	font-size: 22px;
	font-variant-numeric: tabular-nums;
	padding: 2px 20px;
	white-space: nowrap;
}

.wipqq-msg {
	background: #fff8e1;
	border-left: 4px solid #e0a800;
	font-size: 16px;
	margin: 10px 0;
	padding: 8px 12px;
}

/* Buttons (original: outlined uppercase pill) */
.wipqq-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: flex-end;
	margin: 30px 0 0;
}

.wipqq-btn {
	background: var(--wipqq-accent);
	border: 2px solid var(--wipqq-accent);
	border-radius: 50px;
	color: #fff;
	cursor: pointer;
	font-family: inherit;
	font-size: 20px;
	font-weight: 900;
	letter-spacing: .033em;
	line-height: 2.25;
	padding: 0 30px;
	text-transform: uppercase;
	transition: box-shadow 200ms ease, border-color 200ms ease, color 200ms ease;
}

.wipqq-btn-outline {
	background: transparent;
	color: var(--wipqq-accent);
}

.wipqq-btn:hover {
	box-shadow: 0 0 10px #ccc inset, 0 2px 10px rgba(0, 0, 0, .2);
	text-decoration: none;
}

.wipqq-btn-outline:hover {
	border-color: #999;
	color: #555;
}

.wipqq-btn:disabled {
	cursor: wait;
	opacity: .6;
}

/* Contact step: name full width, email/phone/date half width */
.wipqq-grid {
	display: grid;
	gap: 0 20px;
	grid-template-columns: 1fr 1fr;
}

.wipqq-grid .wipqq-field {
	margin: 0 0 20px;
}

.wipqq-full {
	grid-column: 1 / -1;
}

.wipqq-grid label {
	display: block;
	font-size: 16px;
	margin: 0 0 6px;
}

.wipqq-grid .wipqq-help {
	margin: 0 0 4px;
}

.wipqq-recap {
	font-weight: 700;
	margin: 0 0 20px;
}

.wipqq-status:not(:empty) {
	font-size: 16px;
	margin: 12px 0 0;
	text-align: right;
}

.wipqq-done {
	background: var(--wipqq-soft);
	border-left: 4px solid var(--wipqq-accent);
	padding: 16px 20px;
}

.wipqq-done:focus {
	outline: none;
}

.wipqq-req {
	color: #b3261e;
}

.wipqq-field.is-invalid input,
.wipqq-field.is-invalid textarea {
	border-color: #b3261e;
	box-shadow: 0 0 0 1px #b3261e inset;
}

/* Honeypot */
.wipqq-hp {
	height: 1px;
	left: -9999px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

/* Full-width product grid (3 or 4 columns): label above, larger cards */
.wipqq-row-full {
	grid-template-columns: minmax(0, 1fr);
}

.wipqq-row-full .wipqq-label {
	margin: 0 0 12px;
}

.wipqq-style-grid-3 .wipqq-row-advanced,
.wipqq-style-grid-4 .wipqq-row-advanced {
	grid-template-columns: minmax(0, 1fr);
}

.wipqq-style-grid-3 .wipqq-row-advanced .wipqq-label,
.wipqq-style-grid-4 .wipqq-row-advanced .wipqq-label {
	display: none;
}

.wipqq-card-grid.wipqq-cols-3,
.wipqq-card-grid.wipqq-cols-4 {
	gap: 20px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wipqq-card-grid.wipqq-cols-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wipqq-cols-3 .wipqq-card,
.wipqq-cols-4 .wipqq-card {
	gap: 16px;
	justify-content: flex-start;
	padding: 24px 20px;
}

.wipqq-cols-3 .wipqq-card img,
.wipqq-cols-3 .wipqq-card-noimg {
	height: 170px;
}

.wipqq-cols-4 .wipqq-card img,
.wipqq-cols-4 .wipqq-card-noimg {
	height: 130px;
}

.wipqq-cols-3 .wipqq-card-title {
	font-size: 22px;
}

.wipqq-cols-4 .wipqq-card-title {
	font-size: 18px;
}

.wipqq-cols-3 .wipqq-card-desc {
	font-size: 14px;
}

.wipqq-cols-4 .wipqq-card-desc {
	font-size: 13px;
}

.wipqq-cols-4 .wipqq-card {
	gap: 12px;
	padding: 18px 12px;
}

/* Catalogue / artwork specs / FAQ buttons, styled like the main site's */
.wipqq-pill-btn {
	background: var(--wipqq-accent);
	border-radius: 300px;
	color: #492a65 !important;
	display: inline-block;
	font-size: inherit;
	font-weight: 700;
	line-height: 1.3;
	padding: 14px 28px;
	text-align: center;
	text-decoration: none !important;
	transition: opacity 200ms ease;
}

.wipqq-pill-btn:hover,
.wipqq-pill-btn:focus-visible {
	opacity: .85;
}

.wipqq-resources {
	border-top: 1px solid var(--wipqq-line);
	margin: 50px 0 0;
	padding: 30px 0 0;
	text-align: center;
}

.wipqq-hub > .wipqq-resources {
	border: 0;
	margin: 0 0 40px;
	padding: 0;
}

.wipqq-resources-note {
	font-size: inherit;
	margin: 0 auto 20px;
	max-width: 640px;
}

.wipqq-resources-links {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: center;
}

/* Landing page: one card per method */
.wipqq-hub-grid {
	display: grid;
	gap: 30px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wipqq-hub-card {
	display: flex;
	flex-direction: column;
}

.wipqq-hub-media {
	aspect-ratio: 1;
	display: block;
	margin: 0 0 18px;
	overflow: hidden;
}

.wipqq-hub .wipqq-hub-img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

/* Title keeps the theme's own h3 style; card text uses the page's body text style. */
.wipqq .wipqq-hub-title {
	margin: 0 0 12px;
}

.wipqq-hub-title a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.wipqq-hub-card {
	font-size: inherit;
	line-height: 1.5;
}

.wipqq .wipqq-hub-tagline {
	color: inherit;
	font: inherit;
	margin: 0 0 14px;
}

.wipqq .wipqq-hub-details {
	font: inherit;
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
}

.wipqq .wipqq-hub-details li {
	font: inherit;
	margin: 0 0 10px;
}

.wipqq-hub-action {
	margin: auto 0 0;
}

@media (max-width: 1000px) {
	.wipqq-hub-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wipqq-card-grid.wipqq-cols-4 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Phones: stack labels above controls, as the original did */
@media (max-width: 700px) {
	.wipqq-row {
		grid-template-columns: 1fr;
	}

	.wipqq-label {
		margin: 0;
	}

	.wipqq-row-advanced {
		margin-top: -20px;
	}

	.wipqq-row-advanced .wipqq-label {
		display: none;
	}

	.wipqq-summary,
	.wipqq-grid {
		grid-template-columns: 1fr;
	}

	.wipqq-card-grid,
	.wipqq-card-grid.wipqq-cols-3,
	.wipqq-card-grid.wipqq-cols-4 {
		gap: 10px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wipqq-cols-3 .wipqq-card img,
	.wipqq-cols-3 .wipqq-card-noimg,
	.wipqq-cols-4 .wipqq-card img,
	.wipqq-cols-4 .wipqq-card-noimg {
		height: 110px;
	}

	.wipqq-cols-3 .wipqq-card-title,
	.wipqq-cols-4 .wipqq-card-title {
		font-size: 18px;
	}

	.wipqq-hub-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.wipqq-pill-btn {
		width: 100%;
	}

	.wipqq-btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wipqq * {
		transition: none !important;
	}
}
