/* 2Fifty Quote
 *
 * Every colour, font and size is a CSS variable. Where they come from, highest priority first:
 *   1. The Elementor widget's Style tab
 *   2. The accent colour in 2Fifty Quote → Settings (if set)
 *   3. The site's Elementor Global Colors / Global Fonts
 *   4. Neutral fallbacks below
 */
.tfq {
	--tfq-accent: var(--tfq-accent-custom, var(--e-global-color-accent, #111111));
	--tfq-accent-text: #ffffff;
	--tfq-text: var(--e-global-color-text, #1b1b1f);
	--tfq-heading: var(--e-global-color-primary, var(--tfq-text));
	--tfq-muted: color-mix(in srgb, var(--tfq-text) 65%, transparent);
	--tfq-line: color-mix(in srgb, var(--tfq-text) 15%, transparent);
	--tfq-bg: #ffffff;
	--tfq-soft: color-mix(in srgb, var(--tfq-accent) 7%, var(--tfq-bg));
	--tfq-panel: color-mix(in srgb, var(--tfq-text) 4%, var(--tfq-bg));
	--tfq-field-bg: var(--tfq-bg);
	--tfq-card-border: var(--tfq-line);
	--tfq-card-border-width: 1px;
	--tfq-radius: 14px;
	--tfq-radius-sm: 10px;
	--tfq-btn-radius: var(--tfq-radius-sm);
	--tfq-max: 640px;

	--tfq-font-heading: var(--e-global-typography-primary-font-family, inherit);
	--tfq-weight-heading: var(--e-global-typography-primary-font-weight, 700);
	--tfq-font-label: var(--e-global-typography-secondary-font-family, inherit);
	--tfq-font-text: var(--e-global-typography-text-font-family, inherit);
	--tfq-font-button: var(--e-global-typography-accent-font-family, inherit);

	color: var(--tfq-text);
	font-family: var(--tfq-font-text);
	line-height: 1.5;
	max-width: var(--tfq-max);
	margin-left: auto;
	margin-right: auto;
}
.tfq *, .tfq *::before, .tfq *::after { box-sizing: border-box; }

/* Card */
.tfq .tfq-card {
	background: var(--tfq-bg);
	border: var(--tfq-card-border-width) solid var(--tfq-card-border);
	border-radius: var(--tfq-radius);
	padding: clamp(20px, 4vw, 36px);
	box-shadow: 0 10px 30px -18px rgba(20, 20, 40, .25);
}
/* "Show card" switched off in Elementor: sits flat in the section. */
.elementor-widget-tfq_quote:not(.tfq-card-yes) .tfq .tfq-card {
	background: transparent; border: 0; box-shadow: none; padding: 0; border-radius: 0;
}

.tfq .tfq-head { margin-bottom: 26px; }
.tfq .tfq-title {
	margin: 0 0 6px; padding: 0;
	font-family: var(--tfq-font-heading); font-weight: var(--tfq-weight-heading);
	font-size: clamp(1.35rem, 3vw, 1.7rem); line-height: 1.2; color: var(--tfq-heading);
}
.tfq .tfq-intro { margin: 0; color: var(--tfq-muted); }

/* Steps */
.tfq .tfq-step { margin-bottom: 26px; }
.tfq .tfq-step-label {
	display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
	font-family: var(--tfq-font-label); font-weight: 600; color: var(--tfq-heading);
}
.tfq .tfq-num {
	flex: none; display: inline-grid; place-items: center;
	width: 24px; height: 24px; border-radius: 50%;
	background: var(--tfq-accent); color: var(--tfq-accent-text);
	font-family: var(--tfq-font-text); font-size: .8rem; font-weight: 700;
}
.tfq .tfq-help { margin: -4px 0 12px 34px; color: var(--tfq-muted); font-size: .92rem; }
.tfq .tfq-muted { color: var(--tfq-muted); font-size: .9rem; font-weight: 400; }

/* Option tiles */
.tfq .tfq-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.tfq .tfq-tile { position: relative; display: block; cursor: pointer; margin: 0; padding: 0; }
.tfq .tfq-tile input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; margin: 0; }
.tfq .tfq-tile-body {
	display: flex; flex-direction: column; gap: 2px; height: 100%;
	padding: 14px 16px; background: var(--tfq-bg);
	border: 1.5px solid var(--tfq-line); border-radius: var(--tfq-radius-sm);
	transition: border-color .15s, box-shadow .15s, background .15s;
}
.tfq .tfq-tile:hover .tfq-tile-body { border-color: color-mix(in srgb, var(--tfq-accent) 45%, var(--tfq-line)); }
.tfq .tfq-tile input:checked + .tfq-tile-body {
	border-color: var(--tfq-accent);
	box-shadow: 0 0 0 1px var(--tfq-accent);
	background: var(--tfq-soft);
}
.tfq .tfq-tile input:focus-visible + .tfq-tile-body { outline: 2px solid var(--tfq-accent); outline-offset: 2px; }
.tfq .tfq-tile-title { font-weight: 600; color: var(--tfq-text); }
.tfq .tfq-tile-sub { color: var(--tfq-muted); font-size: .9rem; font-weight: 400; line-height: 1.4; }

.tfq .tfq-tile input[type="checkbox"] + .tfq-tile-body { padding-left: 42px; position: relative; }
.tfq .tfq-tile input[type="checkbox"] + .tfq-tile-body::before {
	content: ""; position: absolute; left: 16px; top: 16px; width: 16px; height: 16px;
	border: 1.5px solid var(--tfq-muted); border-radius: 4px; background: var(--tfq-bg);
}
.tfq .tfq-tile input[type="checkbox"]:checked + .tfq-tile-body::before {
	background: var(--tfq-accent); border-color: var(--tfq-accent);
	box-shadow: inset 0 0 0 3px var(--tfq-bg);
}

/* Quantity stepper */
.tfq .tfq-stepper {
	display: inline-flex; align-items: center; background: var(--tfq-bg);
	border: 1.5px solid var(--tfq-line); border-radius: 999px; overflow: hidden;
}
.tfq .tfq-stepper button {
	all: unset; cursor: pointer; width: 42px; height: 42px;
	display: grid; place-items: center; font-size: 1.25rem; line-height: 1; color: var(--tfq-text);
}
.tfq .tfq-stepper button:hover:not(:disabled) { background: var(--tfq-soft); }
.tfq .tfq-stepper button:disabled { opacity: .3; cursor: default; }
.tfq .tfq-stepper button:focus-visible { outline: 2px solid var(--tfq-accent); outline-offset: -2px; }
.tfq .tfq-stepper output { min-width: 34px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Contact fields */
.tfq .tfq-fields { display: grid; gap: 12px; }
.tfq .tfq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .tfq .tfq-row { grid-template-columns: 1fr; } }
.tfq .tfq-fields label { display: grid; gap: 4px; margin: 0; font-size: .9rem; font-weight: 600; color: var(--tfq-text); }
.tfq .tfq-fields input,
.tfq .tfq-fields textarea {
	width: 100%; margin: 0; padding: 11px 12px;
	background: var(--tfq-field-bg); color: var(--tfq-text);
	border: 1.5px solid var(--tfq-line); border-radius: var(--tfq-radius-sm);
	font: inherit; font-weight: 400; box-shadow: none;
}
.tfq .tfq-fields input:focus,
.tfq .tfq-fields textarea:focus { outline: none; border-color: var(--tfq-accent); }
.tfq .tfq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Button */
.tfq .tfq-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 100%; margin: 0; padding: 14px 20px;
	background: var(--tfq-btn-bg, var(--tfq-accent));
	color: var(--tfq-btn-text, var(--tfq-accent-text));
	border: 0; border-radius: var(--tfq-btn-radius);
	font-family: var(--tfq-font-button); font-size: 1rem; font-weight: 600; line-height: 1.2;
	text-decoration: none; text-transform: none; letter-spacing: normal; box-shadow: none;
	cursor: pointer; transition: background .15s, color .15s, opacity .15s, transform .15s;
}
.tfq .tfq-btn:hover,
.tfq .tfq-btn:focus-visible {
	background: var(--tfq-btn-bg-hover, var(--tfq-btn-bg, var(--tfq-accent)));
	color: var(--tfq-btn-text-hover, var(--tfq-btn-text, var(--tfq-accent-text)));
	opacity: var(--tfq-btn-hover-opacity, .9);
}
.tfq .tfq-btn:active { transform: translateY(1px); }
.tfq .tfq-btn:disabled { opacity: .6; cursor: default; }
.tfq .tfq-status { margin: 10px 0 0; font-size: .9rem; min-height: 1em; }
.tfq .tfq-error { color: #b42318; }

/* Estimate */
.tfq .tfq-result, .tfq .tfq-form { outline: none; }
.tfq .tfq-result[hidden], .tfq .tfq-form[hidden] { display: none; }
.tfq .tfq-result { background: var(--tfq-panel); border-radius: var(--tfq-radius-sm); padding: 22px; }
.tfq .tfq-success {
	margin: 0 0 18px; padding: 14px; font-weight: 600;
	background: var(--tfq-bg); border: 1.5px solid var(--tfq-accent); border-radius: var(--tfq-radius-sm);
}
.tfq .tfq-result-label { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 700; color: var(--tfq-muted); }
.tfq .tfq-range {
	margin: 4px 0 12px; color: var(--tfq-heading);
	font-family: var(--tfq-font-heading); font-size: clamp(1.8rem, 5vw, 2.4rem); font-weight: 800; line-height: 1.15;
	font-variant-numeric: tabular-nums;
}
.tfq .tfq-breakdown { list-style: none; margin: 0 0 12px; padding: 0; border-top: 1px solid var(--tfq-line); }
.tfq .tfq-breakdown li { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 8px 0; border-bottom: 1px solid var(--tfq-line); font-size: .95rem; }
.tfq .tfq-monthly {
	margin: 4px 0 12px; padding: 14px 16px;
	background: var(--tfq-bg); border: 1px solid var(--tfq-line); border-radius: var(--tfq-radius-sm);
}
.tfq .tfq-monthly-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; }
.tfq .tfq-monthly .tfq-muted { margin: 4px 0 0; }
.tfq .tfq-note { margin: 0; color: var(--tfq-muted); font-size: .9rem; }

/* Number box (quantity steps with big numbers) */
.tfq .tfq-number { display: inline-flex; align-items: center; gap: 10px; }
.tfq .tfq-number input {
	width: 140px; margin: 0; padding: 10px 12px;
	background: var(--tfq-field-bg); color: var(--tfq-text);
	border: 1.5px solid var(--tfq-line); border-radius: var(--tfq-radius-sm);
	font: inherit; font-weight: 600; box-shadow: none;
}
.tfq .tfq-number input:focus { outline: none; border-color: var(--tfq-accent); }
.tfq .tfq-number span { color: var(--tfq-muted); }
.tfq .tfq-monthly-total { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--tfq-line); }

/* Live estimate (forms set to show the price straight away) */
.tfq .tfq-live { background: var(--tfq-panel); border-radius: var(--tfq-radius-sm); padding: 22px; margin-bottom: 26px; }
.tfq .tfq-live > .tfq-muted { margin: 0; }
