/* T&T Graphics - Request Print Quote page redesign */

.ttgq {
	--q-indigo: #3b4684;
	--q-indigo-deep: #272f5e;
	--q-blue: #0370af;
	--q-blue-dark: #024f7c;
	--q-sky: #0a8fd8;
	--q-orange: #e26835;
	--q-amber: #f4a940;
	--q-ink: #1a2733;
	--q-muted: #5b6b7a;
	--q-bg-alt: #f4f7fa;
	--q-line: #e3eaf1;
	--q-radius: 16px;
	--q-shadow-sm: 0 2px 10px rgba(3, 40, 66, .08);
	--q-shadow-md: 0 20px 50px -12px rgba(3, 40, 66, .22);
	font-family: inherit;
	color: var(--q-ink);
	background: #fff;
	overflow-x: hidden;
}

.ttgq-wrap {
	max-width: 1160px;
	width: 100%;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

.ttgq h1, .ttgq h2, .ttgq h3 { color: var(--q-ink); }
.ttgq h1.ttgq-h1 { color: #fff; }
.ttgq p { margin: 0; }

/* ---------- Eyebrow ---------- */
.ttgq-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 2.2px;
	text-transform: uppercase;
	color: var(--q-blue);
	margin: 0 0 14px;
}
.ttgq-eyebrow-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--q-orange);
	box-shadow: 0 0 0 0 rgba(226, 104, 53, .55);
	animation: ttgq-pulse 2.2s ease-out infinite;
}
@keyframes ttgq-pulse {
	0% { box-shadow: 0 0 0 0 rgba(226, 104, 53, .55); }
	70% { box-shadow: 0 0 0 9px rgba(226, 104, 53, 0); }
	100% { box-shadow: 0 0 0 0 rgba(226, 104, 53, 0); }
}
.ttgq-eyebrow-light { color: #fff; }

/* ==================================================================
   HERO
   ================================================================== */
.ttgq-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(115deg, var(--q-indigo-deep) 0%, var(--q-indigo) 42%, var(--q-blue) 82%, var(--q-sky) 100%);
	color: #fff;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
	padding-bottom: 40px;
}
.ttgq-blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(70px);
	pointer-events: none;
	animation: ttgq-blobfloat 13s ease-in-out infinite;
}
.ttgq-blob-a { width: 460px; height: 460px; background: var(--q-sky); opacity: .30; top: -140px; right: -100px; }
.ttgq-blob-b { width: 380px; height: 380px; background: var(--q-orange); opacity: .20; bottom: -180px; left: -120px; animation-delay: -6.5s; }
.ttgq-blob-c { width: 280px; height: 280px; background: #7ea6ff; opacity: .16; top: 30%; left: 34%; animation-delay: -3s; }
@keyframes ttgq-blobfloat {
	0%, 100% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(28px, -22px) scale(1.07); }
}

.ttgq-hero-grid {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 40px;
	padding-top: 52px;
	padding-bottom: 58px;
	min-height: 0;
}
.ttgq-hero-copy { flex: 1 1 56%; }
.ttgq-hero-copy .ttgq-eyebrow { color: rgba(255, 255, 255, .9); }

.ttgq-h1 {
	font-size: clamp(34px, 4.6vw, 58px);
	line-height: 1.08;
	font-weight: 900;
	letter-spacing: -.5px;
	margin: 0 0 20px;
	color: #fff;
}
.ttgq-h1-w { display: inline-block; }
.ttgq-h1 em {
	font-style: italic;
	font-weight: 900;
	background: linear-gradient(100deg, var(--q-amber), var(--q-orange));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.ttgq-lead {
	font-size: 18.5px;
	line-height: 1.66;
	color: rgba(255, 255, 255, .94);
	max-width: 560px;
	margin-bottom: 0;
}

/* --- Hero art (line-drawn printer) --- */
.ttgq-hero-art {
	flex: 0 1 420px;
	display: flex;
	justify-content: center;
	--ttgq-art-speed: .8;
}
.ttgq-hero-art svg { width: 100%; max-width: 420px; height: auto; }
.ttgq-art-float { animation: ttgq-artfloat 9s ease-in-out calc(3.2s * var(--ttgq-art-speed, 1)) infinite; }
@keyframes ttgq-artfloat {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}
.ttgq-hero-art .ttgq-draw {
	stroke-dasharray: var(--dash, 1200);
	stroke-dashoffset: var(--dash, 1200);
	animation: ttgq-draw calc(var(--dur, 1.2s) * var(--ttgq-art-speed)) cubic-bezier(.5, 0, .2, 1) calc(var(--d, 0s) * var(--ttgq-art-speed)) forwards;
}
@keyframes ttgq-draw { to { stroke-dashoffset: 0; } }
.ttgq-hero-art .ttgq-fillin {
	fill-opacity: 0;
	animation: ttgq-fillin calc(.7s * var(--ttgq-art-speed)) ease calc(var(--fd, 1s) * var(--ttgq-art-speed)) forwards;
}
/* dual-class elements need both animations combined (animation doesn't merge) */
.ttgq-hero-art .ttgq-draw.ttgq-fillin {
	animation:
		ttgq-draw calc(var(--dur, 1.2s) * var(--ttgq-art-speed)) cubic-bezier(.5, 0, .2, 1) calc(var(--d, 0s) * var(--ttgq-art-speed)) forwards,
		ttgq-fillin calc(.7s * var(--ttgq-art-speed)) ease calc(var(--fd, 1s) * var(--ttgq-art-speed)) forwards;
}
@keyframes ttgq-fillin { to { fill-opacity: 1; } }
.ttgq-hero-art .ttgq-pop {
	opacity: 0;
	transform: scale(.4);
	transform-box: fill-box;
	transform-origin: center;
	animation: ttgq-pop calc(.55s * var(--ttgq-art-speed)) cubic-bezier(.34, 1.56, .64, 1) calc(var(--d, .8s) * var(--ttgq-art-speed)) forwards;
}
@keyframes ttgq-pop { to { opacity: 1; transform: scale(1); } }
.ttgq-hero-art .ttgq-march {
	opacity: 0;
	animation: ttgq-marchfade .5s ease calc(1.6s * var(--ttgq-art-speed)) forwards, ttgq-march 1.5s linear infinite;
}
@keyframes ttgq-marchfade { to { opacity: 1; } }
@keyframes ttgq-march { to { stroke-dashoffset: -14; } }

/* ==================================================================
   MAIN (form + aside)
   ================================================================== */
.ttgq-main {
	background: #fff;
	padding: 64px 0 96px;
	scroll-margin-top: 96px;
}
.ttgq-main-grid {
	display: grid;
	grid-template-columns: 400px minmax(0, 1fr);
	gap: 40px;
	align-items: start;
}

/* --- aside cards --- */
.ttgq-aside {
	position: sticky;
	top: 112px;
	display: grid;
	gap: 22px;
}
.ttgq-sidecard {
	position: relative;
	background: #fff;
	border: 1px solid var(--q-line);
	border-radius: 18px;
	padding: 34px 28px 30px;
	box-shadow: var(--q-shadow-sm);
	overflow: hidden;
}
.ttgq-sidecard::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--q-indigo), var(--q-blue) 55%, var(--q-orange));
}
.ttgq-sidecard-icon {
	width: 46px;
	height: 46px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, rgba(3, 112, 175, .12), rgba(59, 70, 132, .12));
	margin-bottom: 16px;
}
.ttgq-sidecard-icon svg { width: 23px; height: 23px; color: var(--q-blue); }
.ttgq-sidecard h3 { font-size: 20px; font-weight: 800; margin: 0 0 12px; }
.ttgq-side-lead { font-size: 15px; color: var(--q-muted); margin-bottom: 22px; }
.ttgq-sidecard-soft { background: #fbfcfe; }
.ttgq-sidecard-soft p { font-size: 15px; line-height: 1.65; color: var(--q-muted); }
.ttgq-sidecard-soft a {
	color: var(--q-blue);
	font-weight: 700;
	text-decoration: none;
	transition: color .2s ease;
}
.ttgq-sidecard-soft a:hover { color: var(--q-orange); text-decoration: underline; }

.ttgq-promises {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 14px;
}
.ttgq-promises li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 15px;
	line-height: 1.55;
	color: var(--q-ink);
}
.ttgq-promises svg {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	padding: 4px;
	box-sizing: border-box;
	border-radius: 50%;
	background: rgba(226, 104, 53, .14);
	color: var(--q-orange);
	margin-top: 1px;
}

/* ==================================================================
   FORM CARD + wp2print form restyle
   ================================================================== */
.ttgq-formcard {
	background: #fff;
	border: 1px solid var(--q-line);
	border-radius: 24px;
	box-shadow: var(--q-shadow-md);
	overflow: hidden;
}
.ttgq-formcard::before { /* brand gradient strip */
	content: "";
	display: block;
	height: 5px;
	background: linear-gradient(90deg, var(--q-indigo) 0%, var(--q-blue) 55%, var(--q-orange) 100%);
}
.ttgq-formcard-head { padding: 34px 40px 0; }
.ttgq-formcard-head h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 900; letter-spacing: -.3px; margin: 0 0 6px; }
.ttgq-formcard-head p { font-size: 14px; font-weight: 600; letter-spacing: .2px; color: #8fa1b3; }
.ttgq-form { padding: 26px 40px 40px; }

/* hide the plugin's own (empty) form title */
.ttgq-form .wp2print-info-form h2.form-title { display: none; }

/* the plugin caps the form at 470px - let it fill our card */
.ttgq-form form.wp2print-info-form {
	width: 100%;
	max-width: none;
}
/* Theme hides native selects that opt out of select2 (kt-no-select2). Keep
   regular fields visible, then let the JS-owned state classes/hidden
   attributes decide which state control is active. */
.ttgq-form .wp2print-info-form select.kt-no-select2:not(.wif-state) { display: block !important; }
.ttgq-form .wp2print-info-form .state-row select.wif-state[hidden],
.ttgq-form .wp2print-info-form .state-row input.wif-state-text[hidden] { display: none !important; }
.ttgq-form .wp2print-info-form .state-row.ttgq-state-list-active select.kt-no-select2.wif-state { display: block !important; }
.ttgq-form .wp2print-info-form .state-row.ttgq-state-list-active input.wif-state-text { display: none !important; }
.ttgq-form .wp2print-info-form .state-row.ttgq-state-text-active select.kt-no-select2.wif-state { display: none !important; }
.ttgq-form .wp2print-info-form .state-row.ttgq-state-text-active input.wif-state-text { display: block !important; }

/* honeypot - never visible */
.ttgq-form .wp2print-info-form .name-fld { display: none !important; }

/* error banner */
.ttgq-form .iform-error {
	grid-column: 1 / -1;
	background: #fdeeee;
	border: 1px solid #f3c6c6;
	border-radius: 12px;
	color: #b23a3a;
	font-weight: 600;
	font-size: 15px;
	padding: 14px 18px;
	margin-bottom: 4px;
}
.ttgq-form .iform-error:focus {
	outline: 3px solid rgba(178, 58, 58, .3);
	outline-offset: 3px;
}

/* --- field grid --- */
.ttgq-form .wp2print-info-form .fields-box {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}
.ttgq-form .field-row { margin: 0; }

/* JS assigns these span classes by field name */
.ttgq-form .ttgq-span2 { grid-column: 1 / -1; }

/* --- controls --- */
.ttgq-form .wp2print-info-form input[type="text"],
.ttgq-form .wp2print-info-form select,
.ttgq-form .wp2print-info-form textarea {
	width: 100%;
	box-sizing: border-box;
	height: auto;
	min-height: 58px; /* beat the theme's fixed 35px input height */
	background: #f8fafc;
	border: 1.5px solid #dbe4ee;
	border-radius: 14px;
	color: var(--q-ink);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.4;
	padding: 24px 18px 9px;
	box-shadow: none;
	transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.ttgq-form .wp2print-info-form select {
	height: auto;
	min-height: 58px;
	line-height: 1.4;
	-webkit-appearance: none !important;
	appearance: none !important;
}
.ttgq-form .wp2print-info-form input[type="text"]:focus,
.ttgq-form .wp2print-info-form select:focus,
.ttgq-form .wp2print-info-form textarea:focus {
	outline: none;
	background: #fff;
	border-color: var(--q-blue);
	box-shadow: 0 0 0 4px rgba(3, 112, 175, .13);
}
.ttgq-form .wp2print-info-form textarea {
	min-height: 132px;
	resize: vertical;
	overflow-y: hidden;
	max-height: none;
}
.ttgq-form .label-note {
	display: block;
	font-size: 12.5px;
	color: #93a4b7;
	margin-top: 7px;
}

/* --- floating labels (JS moves label after the control) --- */
.ttgq-form .ttgq-fl { position: relative; }
.ttgq-form .ttgq-fl label {
	position: absolute;
	left: 19px;
	top: 15px;
	max-width: calc(100% - 38px);
	font-size: 15.5px;
	font-weight: 600;
	color: #7d8fa3;
	pointer-events: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: top .16s ease, font-size .16s ease, color .16s ease, letter-spacing .16s ease;
}
.ttgq-form .ttgq-fl label .ttgq-field-optional {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .4px;
	color: #8a9aaa;
	text-transform: none;
}
.ttgq-form .ttgq-fl input:focus ~ label,
.ttgq-form .ttgq-fl input:not(:placeholder-shown) ~ label,
.ttgq-form .ttgq-fl textarea:focus ~ label,
.ttgq-form .ttgq-fl textarea:not(:placeholder-shown) ~ label {
	top: 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--q-blue);
}
.ttgq-form .ttgq-fl textarea ~ label { top: 17px; }
.ttgq-form .ttgq-fl textarea:focus ~ label,
.ttgq-form .ttgq-fl textarea:not(:placeholder-shown) ~ label { top: 8px; }

/* select rows: label pinned small, chevron on the right */
.ttgq-form .ttgq-fl select {
	padding-right: 46px;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b4684' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 17px;
}
.ttgq-form .ttgq-fl.ttgq-select label {
	top: 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--q-blue);
}
.ttgq-form .wp2print-info-form .wif-state-text { padding-top: 24px; }

/* safety net: if the theme's select2 conversion slips through, keep our
   native (styled) select visible and hide the replacement widget (JS
   prevents/destroys it; this covers any race) */
.ttgq-form .wp2print-info-form .select2-container { display: none !important; }
.ttgq-form .wp2print-info-form select.select2-hidden-accessible {
	position: static !important;
	width: 100% !important;
	height: auto !important;
	min-height: 58px;
	padding: 24px 46px 9px 18px !important;
	margin: 0 !important;
	overflow: visible !important;
	clip: auto !important;
	-webkit-clip-path: none !important;
	white-space: normal !important;
	border: 1.5px solid #dbe4ee !important;
}
.ttgq-form .wp2print-info-form .state-row.ttgq-state-text-active select.select2-hidden-accessible.wif-state,
.ttgq-form .wp2print-info-form select.select2-hidden-accessible.wif-state[hidden] {
	display: none !important;
}
.ttgq-form .wp2print-info-form .state-row.ttgq-state-list-active select.select2-hidden-accessible.wif-state {
	display: block !important;
}

/* the asterisk inside labels */
.ttgq-form .ttgq-fl label font.red,
.ttgq-form .uploads-box label font.red { color: var(--q-orange); }

/* --- "Delivery address" divider row --- */
.ttgq-form .ttgq-divider {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 12px 0 -4px;
}
.ttgq-form .ttgq-divider .row-title {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	color: var(--q-indigo);
}
.ttgq-form .ttgq-divider::after {
	content: "";
	flex: 1;
	border-top: 1px solid var(--q-line);
}
.ttgq-form .ttgq-divider .row-title svg { width: 17px; height: 17px; color: var(--q-orange); }

/* --- "Add delivery address" collapsible (optional) --- */
.ttgq-form .ttgq-delivery-toggle {
	justify-content: center;
	margin: 6px 0 0;
	padding: 13px 20px;
	border: 1.5px dashed #b8cfe4;
	border-radius: 14px;
	background: #f8fafc;
	cursor: pointer;
	transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.ttgq-form .ttgq-delivery-toggle::after { display: none; } /* drop the old divider line */
.ttgq-form .ttgq-delivery-toggle:hover { border-color: var(--q-blue); background: #eef5fc; }
.ttgq-form .ttgq-delivery-toggle:focus-visible {
	outline: none;
	border-color: var(--q-blue);
	box-shadow: 0 0 0 4px rgba(3, 112, 175, .13);
}
.ttgq-form .ttgq-delivery-toggle strong.row-title {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
	color: var(--q-ink);
}
.ttgq-form .ttgq-delivery-toggle strong.row-title svg { width: 18px; height: 18px; color: var(--q-blue); }
.ttgq-form .ttgq-opt-chip {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--q-blue);
	background: rgba(3, 112, 175, .10);
	border-radius: 40px;
	padding: 4px 10px;
}
.ttgq-form .ttgq-delivery-chev {
	width: 18px;
	height: 18px;
	color: #7d8fa3;
	margin-left: 4px;
	transition: transform .3s ease, color .3s ease;
}
.ttgq-form .ttgq-delivery-toggle.ttgq-open .ttgq-delivery-chev { transform: rotate(180deg); color: var(--q-blue); }
.ttgq-form .ttgq-delivery {
	display: none;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	padding-top: 18px;
}
.ttgq-form .ttgq-delivery.ttgq-open { display: grid; }
.ttgq-form .ttgq-delivery-help {
	grid-column: 1 / -1;
	margin: 0;
	padding: 10px 14px;
	border-radius: 10px;
	background: #f5f8fb;
	color: #6e8092;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
}

/* --- validation shake --- */
.ttgq-form .ttgq-err input[type="text"],
.ttgq-form .ttgq-err select,
.ttgq-form .ttgq-err textarea {
	border-color: #d64545;
	background: #fff8f8;
	animation: ttgq-shake .32s ease;
}
@keyframes ttgq-shake {
	0%, 100% { transform: translateX(0); }
	30% { transform: translateX(-5px); }
	60% { transform: translateX(5px); }
}

/* ==================================================================
   Upload zone
   ================================================================== */
.ttgq-form .uploads-box {
	position: relative;
	grid-column: 1 / -1;
	margin-top: 22px;
	background: #f4f8fc;
	border: 2px dashed #b8cfe4;
	border-radius: 18px;
	padding: 32px 26px 26px;
	text-align: center;
	transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.ttgq-form .uploads-box:hover { border-color: var(--q-blue); background: #eef5fc; }
.ttgq-form .uploads-box.ttgq-drag {
	border-color: var(--q-orange);
	background: #fdf3ec;
	box-shadow: 0 0 0 5px rgba(226, 104, 53, .14);
}
.ttgq-form .uploads-box > label {
	display: block;
	font-size: 17px;
	font-weight: 800;
	color: var(--q-ink);
	margin-bottom: 4px;
}
.ttgq-form .uploads-box .ttgq-up-sub {
	font-size: 14px;
	color: #7d8fa3;
	margin-bottom: 18px;
}
/* the plugin's inner fields wrapper renders as a fixed gray box - melt it
   into the drop zone so only our dashed frame shows */
.ttgq-form .wp2print-info-form .uploads-box .uploads-fields {
	width: auto;
	max-width: 100%;
	height: auto;
	border: none;
	padding: 0;
	overflow: visible;
	background: transparent;
}
.ttgq-form .wp2print-info-form .uploads-box .upload-buttons {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	flex-wrap: wrap;
	margin: 0;
}
.ttgq-form .wp2print-info-form #selectfiles,
.ttgq-form .wp2print-info-form #uploadfiles {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: var(--q-blue);
	border-radius: 40px;
	padding: 12px 26px;
	font-size: 15px;
	font-weight: 700;
	color: #fff !important;
	text-decoration: none;
	transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}
/* The "Upload files" anchor is only ever clicked programmatically (the
   skip/upload flow triggers it) - the plugin hides it with visibility:hidden,
   which still occupies layout space and un-centers "Browse files". */
.ttgq-form .wp2print-info-form #uploadfiles { display: none; }
.ttgq-form #selectfiles::before {
	content: "";
	width: 17px;
	height: 17px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='17 8 12 3 7 8'/%3E%3Cline x1='12' y1='3' x2='12' y2='15'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='17 8 12 3 7 8'/%3E%3Cline x1='12' y1='3' x2='12' y2='15'/%3E%3C/svg%3E") center/contain no-repeat;
}
.ttgq-form #selectfiles:hover {
	background: var(--q-blue-dark);
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(3, 112, 175, .32);
}
.ttgq-form .upload-loading { display: inline-block; margin: 0; vertical-align: middle; }

/* queued + uploaded file chips */
.ttgq-form #filelist { margin-top: 16px; }
.ttgq-form #filelist span {
	display: inline-flex;
	max-width: 100%;
	box-sizing: border-box;
	flex-wrap: wrap;
	vertical-align: top;
	align-items: center;
	background: #fff;
	border: 1px solid #d7e4f2;
	border-radius: 40px;
	padding: 8px 16px;
	margin: 0 8px 8px 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--q-ink);
	overflow-wrap: anywhere;
	box-shadow: 0 1px 4px rgba(3, 40, 66, .06);
}
.ttgq-form #filelist span b {
	margin-left: 8px;
	color: var(--q-blue);
	font-weight: 800;
}
.ttgq-form #filelist span.ttgq-upload-file-failed {
	border-color: #e3a4a4;
	background: #fff7f7;
	color: #9d3434;
}
.ttgq-form #filelist .ttgq-upload-file-status {
	display: inline-block;
	margin-left: 8px;
	font-size: 11px;
	font-style: normal;
	font-weight: 800;
	letter-spacing: .2px;
	color: #6d8194;
}
.ttgq-form #filelist .ttgq-upload-file-success .ttgq-upload-file-status { color: #20845c; }
.ttgq-form #filelist .ttgq-upload-file-failed .ttgq-upload-file-status { color: #b23a3a; }
.ttgq-form #filelist .ttgq-upload-file-remove,
.ttgq-form .ttgq-upload-retry {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 30px;
	margin-left: 8px;
	padding: 5px 10px;
	border: 1px solid #c5d5e3;
	border-radius: 999px;
	background: #fff;
	color: #49657b;
	font: inherit;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
}
.ttgq-form #filelist .ttgq-upload-file-remove:hover,
.ttgq-form .ttgq-upload-retry:hover { border-color: var(--q-blue); color: var(--q-blue); }
.ttgq-form #filelist .ttgq-upload-file-remove:focus-visible,
.ttgq-form .ttgq-upload-retry:focus-visible {
	outline: 3px solid rgba(3, 112, 175, .24);
	outline-offset: 2px;
}
.ttgq-form #filelist .ttgq-upload-file-remove[hidden],
.ttgq-form .ttgq-upload-recovery[hidden],
.ttgq-form .ttgq-upload-retry[hidden] { display: none !important; }
.ttgq-form .ttgq-upload-recovery {
	margin-top: 14px;
	padding: 12px 14px;
	border: 1px solid #efcaca;
	border-radius: 12px;
	background: #fff7f7;
	color: #8e3e3e;
	text-align: left;
}
.ttgq-form .ttgq-upload-recovery-message {
	margin: 0 0 9px;
	font-size: 13px;
	font-weight: 650;
	line-height: 1.45;
}

/* "Upload file" (secondary action after picking files) */
.ttgq-form .upload-btn-box { margin: 14px 0 4px; }
.ttgq-form .ss-upload-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(120deg, var(--q-amber), var(--q-orange));
	border: none;
	border-radius: 40px;
	padding: 13px 30px;
	font-size: 15px;
	font-weight: 800;
	color: #fff;
	cursor: pointer;
	transition: transform .25s ease, box-shadow .25s ease;
}
.ttgq-form .ss-upload-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgba(226, 104, 53, .4);
}

/* "Continue without file upload" */
.ttgq-form .skip-upload-box { text-align: center; margin: 12px 0 2px; }
.ttgq-form .skip-upload-btn {
	background: none;
	border: none;
	box-shadow: none;
	padding: 8px 12px;
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 600;
	color: #7d8fa3;
	cursor: pointer;
	text-decoration: underline;
	text-decoration-style: dotted;
	text-underline-offset: 4px;
	transition: color .2s ease;
}
.ttgq-form .skip-upload-btn:hover { color: var(--q-blue); background: none; }

/* ==================================================================
   Submit area - the legacy uploader owns its inline display state. JS
   opens it for a ready form and closes it while a file is queued/uploading.
   ================================================================== */
.ttgq-form .submit-wrap { display: block; }
.ttgq-form .skip-upload-box { display: block; }

.ttgq-form .submit-wrap { margin-top: 26px; }
.ttgq-form .g-recaptcha { margin: 0 auto 18px; display: table; }
.ttgq-form .submit-box { position: relative; }
.ttgq-form .submit-box input[type="submit"] {
	display: block;
	width: 100%;
	box-sizing: border-box;
	border: none;
	border-radius: 16px;
	padding: 19px 28px;
	font-family: inherit;
	font-size: 18px;
	font-weight: 800;
	letter-spacing: .4px;
	color: #fff;
	text-shadow: none;
	background: linear-gradient(100deg, var(--q-indigo) 0%, var(--q-blue) 55%, var(--q-sky) 100%);
	background-size: 160% 100%;
	box-shadow: 0 16px 36px -10px rgba(3, 112, 175, .55);
	cursor: pointer;
	transition: transform .25s ease, box-shadow .25s ease, background-position .35s ease;
}
.ttgq-form .submit-box input[type="submit"]:hover {
	transform: translateY(-2px);
	background-position: 100% 0;
	box-shadow: 0 20px 42px -10px rgba(3, 112, 175, .6);
}
.ttgq-form .submit-box input[type="submit"]:active { transform: translateY(0); }
/* disabled until the reCAPTCHA is ticked (wp2print's own logic) */
.ttgq-form .submit-box input[type="submit"][disabled] {
	opacity: .55;
	cursor: not-allowed;
	filter: saturate(.6);
	box-shadow: 0 8px 20px -8px rgba(3, 112, 175, .35);
}
.ttgq-form .submit-box input[type="submit"][disabled]:hover {
	transform: none;
	background-position: 0 0;
}
/* glow pulse the moment the captcha re-enables it */
.ttgq-form .ttgq-ready input[type="submit"] {
	animation: ttgq-ready-pulse 1.1s ease .05s both;
}
@keyframes ttgq-ready-pulse {
	0% { box-shadow: 0 16px 36px -10px rgba(3, 112, 175, .55); }
	35% { box-shadow: 0 0 0 10px rgba(3, 112, 175, .22), 0 16px 36px -10px rgba(3, 112, 175, .55); }
	100% { box-shadow: 0 16px 36px -10px rgba(3, 112, 175, .55); }
}
.ttgq-form .ttgq-micro {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 13.5px;
	font-weight: 600;
	color: #8fa1b3;
	margin: 0 0 16px;
	text-align: center;
}
.ttgq-form .ttgq-micro svg { flex: 0 0 auto; width: 15px; height: 15px; color: var(--q-blue); }

/* ==================================================================
   SUCCESS
   ================================================================== */
.ttgq-formcard-success {
	border-color: #a9d9bb;
	background: #f3fbf6;
}
.ttgq-formcard-success::before {
	background: linear-gradient(90deg, #167447 0%, #1f9d61 55%, #55bd7d 100%);
}
.ttgq-success-card {
	position: relative;
	min-height: 390px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: linear-gradient(145deg, #effaf3 0%, #ffffff 74%);
	padding: 52px 48px 48px;
	text-align: center;
}
.ttgq-success-card::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 4px;
	background: linear-gradient(90deg, #167447, #1f9d61 55%, #55bd7d);
}
.ttgq-success-badge { width: 88px; height: 88px; margin: 0 auto 20px; color: #16804b; }
.ttgq-success-ring {
	stroke-dasharray: 220;
	stroke-dashoffset: 220;
	animation: ttgq-draw 1s cubic-bezier(.5, 0, .2, 1) .15s forwards;
}
.ttgq-success-check {
	stroke: #16804b;
	stroke-dasharray: 48;
	stroke-dashoffset: 48;
	animation: ttgq-draw .5s cubic-bezier(.5, 0, .2, 1) .85s forwards;
}
.ttgq-eyebrow-success { color: #167447; }
.ttgq-success-card h2 {
	font-size: clamp(27px, 3.4vw, 38px);
	font-weight: 900;
	letter-spacing: -.4px;
	margin: 0 0 16px;
}
.ttgq-success-msg { font-size: 17.5px; line-height: 1.6; color: var(--q-ink); margin: 0 0 14px; overflow-wrap: anywhere; }
.ttgq-success-sub { font-size: 15.5px; line-height: 1.7; color: var(--q-muted); max-width: 540px; margin: 0 0 20px; }
.ttgq-success-followup {
	max-width: 500px;
	margin: 0;
	padding: 10px 16px;
	border-radius: 999px;
	background: rgba(31, 157, 97, .10);
	color: #167447;
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.45;
}

/* ==================================================================
   Scroll-reveal system (armed by JS; harmless without it)
   ================================================================== */
.ttgq-arm .ttgq-rv {
	opacity: 0;
	transform: translateY(28px);
}
.ttgq-arm .ttgq-rv.ttgq-in {
	opacity: 1;
	transform: none;
	transition: opacity .75s cubic-bezier(.2, .6, .2, 1), transform .75s cubic-bezier(.2, .6, .2, 1);
	transition-delay: calc(var(--i, 0) * 95ms);
}
/* hero headline gets a snappier entrance */
.ttgq-arm .ttgq-hero .ttgq-rv.ttgq-in { transition-duration: .6s; }

/* ==================================================================
   Responsive
   ================================================================== */
@media (max-width: 1080px) {
	.ttgq-main-grid { grid-template-columns: 340px minmax(0, 1fr); gap: 30px; }
}
@media (max-width: 900px) {
	.ttgq-hero-grid { flex-direction: column; text-align: center; padding-top: 42px; padding-bottom: 52px; }
	.ttgq-hero-copy .ttgq-eyebrow { justify-content: center; }
	.ttgq-hero-copy .ttgq-eyebrow-dot { display: none; }
	.ttgq-hero-copy { max-width: 640px; margin: 0 auto; }
	.ttgq-lead { margin-left: auto; margin-right: auto; }
	.ttgq-hero-art { display: none; }
	.ttgq-main-grid { grid-template-columns: 1fr; }
	.ttgq-aside { position: static; }
}
@media (max-width: 720px) {
	.ttgq-form .wp2print-info-form .fields-box,
	.ttgq-form .ttgq-delivery { grid-template-columns: 1fr; }
	.ttgq-form #filelist span { width: 100%; margin-right: 0; }
	.ttgq-form .ttgq-upload-recovery { padding: 11px 12px; }
	.ttgq-form .ttgq-upload-retry { margin-left: 0; }
	.ttgq-formcard-head { padding: 28px 24px 0; }
	.ttgq-form { padding: 22px 24px 30px; }
	.ttgq-success-card { min-height: 360px; padding: 48px 24px 40px; }
	.ttgq-main { padding: 64px 0 72px; }
}

/* ==================================================================
   Reduced motion
   ================================================================== */
@media (prefers-reduced-motion: reduce) {
	.ttgq *, .ttgq *::before, .ttgq *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		transition-delay: 0ms !important;
	}
	.ttgq-hero-art .ttgq-draw { stroke-dashoffset: 0; }
	.ttgq-hero-art .ttgq-fillin { fill-opacity: 1; }
	.ttgq-hero-art .ttgq-pop { opacity: 1; transform: none; }
	.ttgq-hero-art .ttgq-march { opacity: 1; }
	.ttgq-success-ring, .ttgq-success-check { stroke-dashoffset: 0; }
}
