/* Custom 3D Print Request form. Colours, sizes and radii come from the theme's theme.json tokens. */
.threedh-quote {
	--tq-error: #ff7a88;
	--tq-ok: #8fd9ab;
	--tq-line: var(--wp--preset--color--accent-6, #3a3a3a);
	--tq-muted: var(--wp--preset--color--accent-4, #a8a29a);
	--tq-focus: var(--wp--custom--focus-ring, #e6ddcf);
	--tq-radius: var(--wp--preset--border-radius--sm, 6px);
	display: grid;
	gap: 1.25rem;
	color: var(--wp--preset--color--contrast, #f4f1ea);
	/* After the redirect the page jumps to #custom-request-form; keep the banner clear of the sticky header. */
	scroll-margin-top: calc(var(--wp--custom--header-height, 72px) + 1rem);
}
.threedh-quote__form {
	display: grid;
	gap: 1.25rem;
	margin: 0;
	padding: clamp(1.25rem, 4vw, 2.25rem);
	background: var(--wp--preset--color--accent-3, #1a1a1a);
	border: 1px solid var(--wp--custom--card-border, #262626);
	border-radius: var(--wp--preset--border-radius--md, 12px);
}
.threedh-quote__note,
.threedh-quote__hint,
.threedh-quote__opt { color: var(--tq-muted); font-size: var(--wp--preset--font-size--small, 0.875rem); font-weight: 500; }
.threedh-quote__note { margin: 0; }
.threedh-quote__req { color: var(--wp--preset--color--accent-1, #d72638); font-weight: 800; }

.threedh-quote__group {
	display: grid;
	gap: 1.25rem;
	min-width: 0;
	margin: 0;
	padding: 1.25rem 0 0;
	border: 0;
	border-top: 1px solid var(--tq-line);
}
.threedh-quote__group legend {
	float: left;
	width: 100%;
	margin: 0 0 0.25rem;
	padding: 0;
	color: var(--wp--preset--color--accent-2, #e6ddcf);
	font-size: var(--wp--preset--font-size--x-small, 0.75rem);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.threedh-quote__group legend + * { clear: both; }
.threedh-quote__row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) {
	.threedh-quote__row { grid-template-columns: 1fr 1fr; }
}
.threedh-quote__field { display: flex; flex-direction: column; gap: 0.375rem; min-width: 0; }
.threedh-quote__field > label { font-size: var(--wp--preset--font-size--small, 0.875rem); font-weight: 700; line-height: 1.3; }
.threedh-quote__hint { line-height: 1.45; }

.threedh-quote input[type="text"],
.threedh-quote input[type="email"],
.threedh-quote input[type="tel"],
.threedh-quote input[type="url"],
.threedh-quote select,
.threedh-quote textarea,
.threedh-quote input[type="file"] {
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
	padding: 0.75rem 0.875rem;
	background: var(--wp--preset--color--base, #0d0d0d);
	color: inherit;
	border: 1px solid var(--tq-line);
	border-radius: var(--tq-radius);
	font: inherit;
	font-size: 1rem; /* 16px stops iOS zoom on focus */
	line-height: 1.4;
}
.threedh-quote textarea { min-height: 8rem; resize: vertical; }
.threedh-quote select { appearance: auto; cursor: pointer; }
.threedh-quote input[type="file"] { padding: 0.5rem; border-style: dashed; border-color: var(--tq-muted); color: var(--wp--preset--color--accent-2, #e6ddcf); cursor: pointer; }
.threedh-quote input[type="file"]::file-selector-button {
	min-height: 44px;
	margin-right: 0.75rem;
	padding: 0 1rem;
	background: var(--wp--preset--color--accent-5, #262626);
	color: var(--wp--preset--color--contrast, #f4f1ea);
	border: 1px solid var(--tq-line);
	border-radius: var(--tq-radius);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.threedh-quote input:hover,
.threedh-quote textarea:hover,
.threedh-quote select:hover { border-color: var(--tq-muted); }
.threedh-quote :is(input, select, textarea, button):focus-visible {
	outline: 2px solid var(--tq-focus);
	outline-offset: 2px;
	border-color: var(--tq-focus);
}

.threedh-quote__consent label { display: flex; align-items: flex-start; gap: 0.625rem; color: var(--wp--preset--color--accent-2, #e6ddcf); font-weight: 500; font-size: 1rem; line-height: 1.45; cursor: pointer; }
.threedh-quote__consent a { color: inherit; text-decoration: underline; }
/* Checkboxes are drawn here, so they belong to the dark form instead of showing as a white system box. */
.threedh-quote__consent input[type="checkbox"] {
	-webkit-appearance: none;
	appearance: none;
	flex: none;
	box-sizing: border-box;
	width: 1.25rem;
	height: 1.25rem;
	margin: 0.125rem 0 0;
	padding: 0;
	background: var(--wp--preset--color--base, #0d0d0d) center / 0.75rem no-repeat;
	border: 2px solid var(--tq-muted);
	border-radius: 4px;
	cursor: pointer;
}
.threedh-quote__consent input[type="checkbox"]:hover { border-color: var(--wp--preset--color--contrast, #f4f1ea); }
.threedh-quote__consent input[type="checkbox"]:checked {
	background-color: #d92638;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.2 6.3l2.5 2.5 5.1-5.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	border-color: #d92638;
}
.threedh-quote__consent input[type="checkbox"]:focus-visible { outline: 2px solid var(--tq-focus); outline-offset: 2px; }
.threedh-quote__field--error.threedh-quote__consent input[type="checkbox"]:not(:checked) { border-color: var(--tq-error); }
@media (forced-colors: active) {
	.threedh-quote__consent input[type="checkbox"] { -webkit-appearance: auto; appearance: auto; }
}

.threedh-quote__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.threedh-quote__submit {
	min-height: 48px;
	padding: 0.875rem 1.5rem;
	background: var(--wp--preset--color--accent-1, #d72638);
	color: var(--wp--preset--color--white, #fff);
	border: 0;
	border-radius: var(--tq-radius);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--small, 0.875rem);
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.25;
	text-transform: uppercase;
	cursor: pointer;
}
.threedh-quote__submit:hover { background: var(--wp--preset--color--accent-7, #b81f2f); }
@media (max-width: 599px) {
	.threedh-quote__submit { width: 100%; }
}

.threedh-quote__field--error :is(input, select, textarea) { border-color: var(--tq-error); }
.threedh-quote__error { color: var(--tq-error); font-size: var(--wp--preset--font-size--small, 0.875rem); font-weight: 600; line-height: 1.4; }
.threedh-quote__error::before { content: "\26A0\FE0E\00a0"; }

.threedh-quote__banner {
	padding: 0.875rem 1rem;
	background: var(--wp--preset--color--base, #0d0d0d);
	border: 1px solid var(--tq-line);
	border-left: 4px solid var(--tq-error);
	border-radius: var(--tq-radius);
	font-weight: 600;
	line-height: 1.45;
}
.threedh-quote__banner p { margin: 0; }
.threedh-quote__banner ul { margin: 0.5rem 0 0; padding-left: 1.25rem; font-weight: 500; }
.threedh-quote__banner a { color: inherit; }
.threedh-quote__banner--ok { border-left-color: var(--tq-ok); }
.threedh-quote__banner--ok p::before { content: "\2713\00a0"; color: var(--tq-ok); }

/* Honeypot: off-screen for people, still in the markup for bots. */
.threedh-quote__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

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