/* TaxSort Quote Calculator – Frontend
   Brand: Navy #0b2239 | Gold #C9B17C | Cream #EEE8DB
*/

:root {
	--tsqc-navy: #0b2239;
	--tsqc-gold: #C9B17C;
	--tsqc-cream: #EEE8DB;
	--tsqc-white: #ffffff;
	--tsqc-bg: #fafaf7;
	--tsqc-text: #1a1a1a;
	--tsqc-muted: #5a6570;
	--tsqc-border: #e2ddd3;
	--tsqc-radius: 10px;
	--tsqc-shadow: 0 8px 30px rgba(11, 34, 57, 0.08);
	--tsqc-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--tsqc-pad-top: 0px;
	--tsqc-pad-bottom: 0px;
	--tsqc-pad-left: 0px;
	--tsqc-pad-right: 0px;
}

#tsqc-calculator,
#tsqc-calculator * {
	box-sizing: border-box;
}

/* Outer wrapper so the page background can be controlled */
.tsqc-wrap {
	background: var(--tsqc-bg);
	padding: var(--tsqc-pad-top) var(--tsqc-pad-right) var(--tsqc-pad-bottom) var(--tsqc-pad-left);
}

#tsqc-calculator {
	font-family: var(--tsqc-font);
	color: var(--tsqc-text);
	line-height: 1.5;
	max-width: 1100px;
	margin: 0 auto;
	background: var(--tsqc-white);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: var(--tsqc-shadow);
	border: 1px solid var(--tsqc-border);
}

.tsqc-layout {
	display: grid;
	grid-template-columns: 260px 1fr;
	min-height: 560px;
}

/* Progress sidebar */
.tsqc-progress {
	background: var(--tsqc-navy);
	color: var(--tsqc-cream);
	padding: 2rem 1.5rem;
	display: flex;
	flex-direction: column;
}

.tsqc-brand {
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	color: var(--tsqc-gold);
	margin-bottom: 2.5rem;
}

.tsqc-steps {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	flex: 1;
}

.tsqc-step {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	opacity: 0.45;
	transition: opacity 0.25s ease;
}

.tsqc-step.is-active,
.tsqc-step.is-done {
	opacity: 1;
}
.tsqc-step.is-active .tsqc-step-label {
	font-weight: 700;
	color: var(--tsqc-cream);
}

.tsqc-step-num {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--tsqc-gold);
	min-width: 1.6rem;
}

.tsqc-step-label {
	font-size: 0.9rem;
	font-weight: 500;
}

.tsqc-progress-mobile {
	display: none;
}

/* Main panel */
.tsqc-main {
	background: var(--tsqc-white);
	padding: 2.5rem 2.75rem;
	display: flex;
	flex-direction: column;
}

.tsqc-panel {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.tsqc-screen {
	display: none;
	animation: tsqcFade 0.3s ease;
}

.tsqc-screen-active {
	display: block;
}

@keyframes tsqcFade {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

.tsqc-eyebrow {
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tsqc-gold);
	margin: 0 0 0.5rem;
}

.tsqc-title {
	font-size: 1.65rem;
	font-weight: 700;
	color: var(--tsqc-navy);
	margin: 0 0 0.6rem;
	line-height: 1.25;
}

.tsqc-desc {
	color: var(--tsqc-muted);
	margin: 0 0 1.75rem;
	font-size: 1rem;
}

/* Options */
.tsqc-options {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 2rem;
}

.tsqc-option {
	display: block;
	width: 100%;
	text-align: left;
	background: var(--tsqc-white);
	border: 1.5px solid var(--tsqc-border);
	border-radius: var(--tsqc-radius);
	padding: 1rem 1.25rem;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
	font-family: inherit;
	color: inherit;
}

.tsqc-option:hover {
	border-color: var(--tsqc-gold);
	background: #faf8f3;
}

.tsqc-option.is-selected {
	border-color: var(--tsqc-navy);
	background: linear-gradient(135deg, #f7f4ec 0%, #fff 100%);
	box-shadow: 0 0 0 1px var(--tsqc-navy);
}

.tsqc-option-title {
	display: block;
	font-weight: 600;
	font-size: 1.05rem;
	color: var(--tsqc-navy);
	margin-bottom: 0.2rem;
}

.tsqc-option-desc {
	display: block;
	font-size: 0.9rem;
	color: var(--tsqc-muted);
}

/* Actions */
.tsqc-actions {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	margin-top: auto;
	padding-top: 1rem;
}

.tsqc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	padding: 0.85rem 1.5rem;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	transition: background 0.2s, transform 0.15s, opacity 0.2s;
}

.tsqc-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.tsqc-btn-primary {
	background: var(--tsqc-navy);
	color: var(--tsqc-cream);
}

.tsqc-btn-primary:hover:not(:disabled) {
	background: #0e2d4a;
	color: var(--tsqc-cream);
}

.tsqc-btn-secondary {
	background: var(--tsqc-white);
	color: var(--tsqc-navy) !important;
	border: 1.5px solid var(--tsqc-navy);
}

.tsqc-btn-secondary:hover:not(:disabled) {
	background: var(--tsqc-cream);
	border-color: var(--tsqc-navy);
	color: var(--tsqc-navy) !important;
}

/* Form fields */
.tsqc-field {
	margin-bottom: 1.25rem;
}

.tsqc-field label {
	display: block;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--tsqc-navy);
	margin-bottom: 0.4rem;
}

.tsqc-field input[type="text"],
.tsqc-field input[type="email"],
.tsqc-field input[type="tel"],
.tsqc-field textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1.5px solid var(--tsqc-border);
	border-radius: 8px;
	font-family: inherit;
	font-size: 1rem;
	transition: border-color 0.2s;
}

.tsqc-field input:focus,
.tsqc-field textarea:focus {
	outline: none;
	border-color: var(--tsqc-navy);
}

.tsqc-field .tsqc-error {
	color: #b33;
	font-size: 0.85rem;
	margin-top: 0.3rem;
}

/* Results */
.tsqc-result-card {
	background: linear-gradient(145deg, #f9f6ef 0%, #fff 100%);
	border: 1.5px solid var(--tsqc-border);
	border-radius: 12px;
	padding: 1.75rem;
	margin-bottom: 1.5rem;
}

.tsqc-result-label {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--tsqc-gold);
	margin-bottom: 0.5rem;
}

.tsqc-result-package {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--tsqc-navy);
	margin: 0 0 0.35rem;
}

.tsqc-result-price {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--tsqc-navy);
	margin: 0 0 0.25rem;
}

.tsqc-result-sub {
	font-size: 0.9rem;
	color: var(--tsqc-muted);
	margin: 0 0 1rem;
}

.tsqc-result-includes {
	list-style: none;
	padding: 0;
	margin: 0 0 1rem;
}

.tsqc-result-includes li {
	position: relative;
	padding-left: 1.3rem;
	margin-bottom: 0.35rem;
	font-size: 0.95rem;
}

.tsqc-result-includes li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--tsqc-gold);
	font-weight: 700;
}

.tsqc-result-note {
	font-size: 0.9rem;
	color: var(--tsqc-muted);
	border-top: 1px solid var(--tsqc-border);
	padding-top: 1rem;
	margin-top: 0.5rem;
}

.tsqc-badge-review {
	display: inline-block;
	background: #f5e6c8;
	color: #7a5c1e;
	font-size: 0.8rem;
	font-weight: 600;
	padding: 0.25rem 0.6rem;
	border-radius: 4px;
	margin-bottom: 0.75rem;
}

/* Success */
.tsqc-success {
	text-align: center;
	padding: 2rem 1rem;
}

.tsqc-success-icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--tsqc-navy);
	color: var(--tsqc-gold);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	margin: 0 auto 1.25rem;
}

/* Helper text */
.tsqc-helper {
	font-size: 0.85rem;
	color: var(--tsqc-muted);
	margin-top: 0.5rem;
}

/* Links row on result */
.tsqc-contact-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1rem;
}

.tsqc-contact-links a {
	color: var(--tsqc-navy);
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
	border-bottom: 1px solid var(--tsqc-gold);
}

.tsqc-contact-links a:hover {
	color: var(--tsqc-gold);
}

/* ========== Mobile ========== */
@media (max-width: 768px) {
	.tsqc-layout {
		grid-template-columns: 1fr;
	}

	.tsqc-progress {
		padding: 1rem 1.25rem;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
	}

	.tsqc-brand {
		margin-bottom: 0;
		font-size: 0.75rem;
	}

	.tsqc-steps {
		display: none;
	}

	.tsqc-progress-mobile {
		display: flex;
		flex-direction: column;
		align-items: flex-end;
		gap: 0.35rem;
		flex: 1;
	}

	.tsqc-progress-bar {
		width: 120px;
		height: 4px;
		background: rgba(255,255,255,0.2);
		border-radius: 2px;
		overflow: hidden;
	}

	.tsqc-progress-fill {
		height: 100%;
		background: var(--tsqc-gold);
		width: 20%;
		transition: width 0.3s ease;
	}

	.tsqc-progress-text {
		font-size: 0.75rem;
		opacity: 0.85;
	}

	.tsqc-main {
		padding: 1.5rem 1.25rem 2rem;
	}

	.tsqc-title {
		font-size: 1.35rem;
	}

	.tsqc-actions {
		flex-direction: column-reverse;
		align-items: stretch;
	}

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

/* ===== Premium enhancements ===== */

/* Active question title – underlined gold accent */
.tsqc-title-active {
	/* title highlight without underline */
	color: var(--tsqc-navy);
}

/* Active progress step gold accent bar */
.tsqc-step {
	position: relative;
	padding-left: 0.35rem;
}
.tsqc-step.is-active::before {
	content: "";
	position: absolute;
	left: -0.75rem;
	top: 0;
	bottom: 0;
	width: 3px;
	background: var(--tsqc-gold);
	border-radius: 2px;
}

/* Option icons on first screen */
.tsqc-option-icon {
	display: block;
	font-size: 1.25rem;
	margin-bottom: 0.35rem;
}

/* I'm not sure helper */
.tsqc-not-sure-helper {
	display: none;
	margin-top: 0.75rem;
	padding: 0.75rem 1rem;
	background: #f7f3e9;
	border-left: 3px solid var(--tsqc-gold);
	border-radius: 0 8px 8px 0;
	font-size: 0.9rem;
	color: var(--tsqc-muted);
}
.tsqc-not-sure-helper.is-visible {
	display: block;
	animation: tsqcFade 0.25s ease;
}

/* Prefer to talk */
.tsqc-prefer-talk {
	font-size: 0.9rem;
	color: var(--tsqc-muted);
	margin: 0.5rem 0 1rem;
}
.tsqc-prefer-talk a {
	color: var(--tsqc-navy);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid var(--tsqc-gold);
}
.tsqc-prefer-talk a:hover {
	color: var(--tsqc-gold);
}

/* Calculating state */
.tsqc-calculating {
	text-align: center;
	padding: 3rem 1rem;
}
.tsqc-calc-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid var(--tsqc-border);
	border-top-color: var(--tsqc-gold);
	border-radius: 50%;
	margin: 0 auto 1.5rem;
	animation: tsqcSpin 0.8s linear infinite;
}
@keyframes tsqcSpin {
	to { transform: rotate(360deg); }
}

/* Assumptions & next steps */
.tsqc-assumptions,
.tsqc-next-steps {
	background: #faf8f3;
	border: 1px solid var(--tsqc-border);
	border-radius: 10px;
	padding: 1rem 1.25rem;
	margin-bottom: 1rem;
}
.tsqc-assumptions-title {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--tsqc-navy);
	margin: 0 0 0.5rem;
}
.tsqc-assumptions ul,
.tsqc-next-steps ol {
	margin: 0;
	padding-left: 1.2rem;
	font-size: 0.9rem;
	color: var(--tsqc-muted);
}
.tsqc-assumptions li,
.tsqc-next-steps li {
	margin-bottom: 0.3rem;
}

/* Link buttons on results */
.tsqc-link-btn {
	display: inline-block;
	padding: 0.5rem 1rem;
	border: 1.5px solid var(--tsqc-navy);
	border-radius: 8px;
	color: var(--tsqc-navy);
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}
.tsqc-link-btn:hover {
	background: var(--tsqc-navy);
	color: var(--tsqc-cream);
}

.tsqc-contact-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 1rem 0;
}

/* Selected option stronger treatment */
.tsqc-option.is-selected {
	border-color: var(--tsqc-navy);
	background: linear-gradient(135deg, #f7f4ec 0%, #fff 100%);
	box-shadow: 0 0 0 1px var(--tsqc-navy);
	position: relative;
}
.tsqc-option.is-selected::after {
	content: "✓";
	position: absolute;
	top: 0.75rem;
	right: 1rem;
	color: var(--tsqc-gold);
	font-weight: 700;
	font-size: 0.95rem;
}

/* Smoother option hover */
.tsqc-option {
	transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.tsqc-option:hover {
	transform: translateY(-1px);
}

/* ===== v1.2 Premium upgrades ===== */

/* Selected option – gold ring + scale */
.tsqc-option.is-selected {
	transform: scale(1.01);
	box-shadow: 0 0 0 2px var(--tsqc-gold), 0 4px 14px rgba(11,34,57,0.08);
}
.tsqc-option.is-selected::after {
	content: "✓";
	position: absolute;
	top: 0.75rem;
	right: 1rem;
	color: var(--tsqc-gold);
	font-weight: 700;
}

/* Sticky mobile action bar */
@media (max-width: 768px) {
	.tsqc-actions {
		position: sticky;
		bottom: 0;
		background: linear-gradient(to top, #fff 70%, rgba(255,255,255,0));
		padding: 1rem 0 0.5rem;
		margin-top: 1.5rem;
		z-index: 20;
	}
	.tsqc-btn {
		min-height: 48px;
		font-size: 1rem;
	}
	.tsqc-option {
		padding: 1.1rem 1.15rem;
	}
}

/* Progress percentage text */
.tsqc-progress-meta {
	font-size: 0.75rem;
	opacity: 0.8;
	margin-top: 0.25rem;
}

/* Trust signals */
.tsqc-trust {
	font-size: 0.85rem;
	color: var(--tsqc-muted);
	margin: 0.75rem 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
}
.tsqc-trust span::before {
	content: "✓ ";
	color: var(--tsqc-gold);
	font-weight: 700;
}

/* Route intro card */
.tsqc-intro-card {
	background: linear-gradient(145deg, #f9f6ef, #fff);
	border: 1.5px solid var(--tsqc-border);
	border-radius: 12px;
	padding: 1.5rem;
	margin-bottom: 1.5rem;
	text-align: center;
}
.tsqc-intro-card .tsqc-intro-icon {
	font-size: 2rem;
	margin-bottom: 0.5rem;
}
.tsqc-intro-card h3 {
	margin: 0 0 0.35rem;
	color: var(--tsqc-navy);
	font-size: 1.2rem;
}
.tsqc-intro-card p {
	margin: 0;
	color: var(--tsqc-muted);
	font-size: 0.95rem;
}

/* Package comparison grid */
.tsqc-compare {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 0.85rem;
	margin: 1.25rem 0;
}
.tsqc-compare-card {
	border: 1.5px solid var(--tsqc-border);
	border-radius: 12px;
	padding: 1.1rem;
	background: #fff;
	position: relative;
	transition: box-shadow 0.2s, border-color 0.2s;
}
.tsqc-compare-card.is-recommended {
	border-color: var(--tsqc-navy);
	box-shadow: 0 0 0 1px var(--tsqc-navy), 0 8px 24px rgba(11,34,57,0.08);
	background: linear-gradient(160deg, #f7f4ec, #fff);
}
.tsqc-compare-badge {
	position: absolute;
	top: -0.55rem;
	left: 50%;
	transform: translateX(-50%);
	background: var(--tsqc-navy);
	color: var(--tsqc-cream);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 0.2rem 0.6rem;
	border-radius: 4px;
	white-space: nowrap;
}
.tsqc-compare-name {
	font-weight: 700;
	color: var(--tsqc-navy);
	margin: 0.4rem 0 0.2rem;
	font-size: 1.05rem;
}
.tsqc-compare-price {
	font-weight: 600;
	color: var(--tsqc-navy);
	margin: 0 0 0.5rem;
}
.tsqc-compare-includes {
	list-style: none;
	padding: 0;
	margin: 0;
	font-size: 0.8rem;
	color: var(--tsqc-muted);
}
.tsqc-compare-includes li {
	padding-left: 1rem;
	position: relative;
	margin-bottom: 0.25rem;
}
.tsqc-compare-includes li::before {
	content: "·";
	position: absolute;
	left: 0.25rem;
	color: var(--tsqc-gold);
	font-weight: 700;
}

/* Confirmable assumptions */
.tsqc-confirm-list {
	list-style: none;
	padding: 0;
	margin: 0.5rem 0 0;
}
.tsqc-confirm-list li {
	margin-bottom: 0.45rem;
}
.tsqc-confirm-list label {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.9rem;
	color: var(--tsqc-muted);
	cursor: pointer;
}
.tsqc-confirm-list input {
	margin-top: 0.2rem;
}

/* Why this package */
.tsqc-why {
	background: #f7f3e9;
	border-left: 3px solid var(--tsqc-gold);
	padding: 0.85rem 1rem;
	border-radius: 0 8px 8px 0;
	font-size: 0.92rem;
	color: var(--tsqc-muted);
	margin: 1rem 0;
}

/* Soft upsell */
.tsqc-upsell {
	border: 1px dashed var(--tsqc-border);
	border-radius: 10px;
	padding: 0.9rem 1.1rem;
	margin: 1rem 0;
	font-size: 0.9rem;
	color: var(--tsqc-muted);
}
.tsqc-upsell strong {
	color: var(--tsqc-navy);
}

/* Save & continue */
.tsqc-save-later {
	font-size: 0.88rem;
	margin: 0.75rem 0;
}
.tsqc-save-later button,
.tsqc-btn-save-later {
	background: none !important;
	border: none !important;
	color: var(--tsqc-navy) !important;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
	padding: 0;
	font-family: inherit;
	font-size: inherit;
}
.tsqc-save-later button:hover,
.tsqc-btn-save-later:hover {
	color: var(--tsqc-gold) !important;
	background: none !important;
}

/* Success confetti-ish pulse */
.tsqc-success-icon {
	animation: tsqcPop 0.45s ease;
}
@keyframes tsqcPop {
	0% { transform: scale(0.6); opacity: 0; }
	70% { transform: scale(1.08); }
	100% { transform: scale(1); opacity: 1; }
}

/* Results card entrance */
.tsqc-result-card {
	animation: tsqcFade 0.4s ease;
}

/* Progress gold fill smoother */
.tsqc-progress-fill {
	transition: width 0.4s ease;
}
.tsqc-step.is-active::before {
	animation: tsqcFade 0.3s ease;
}

/* WhatsApp buttons */
.tsqc-btn-whatsapp {
	background: #25D366 !important;
	color: #fff !important;
	border: none !important;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 600;
}
.tsqc-btn-whatsapp:hover {
	background: #1ebe57 !important;
	color: #fff !important;
}
.tsqc-btn-whatsapp-lg {
	padding: 0.95rem 1.6rem;
	font-size: 1rem;
	border-radius: 10px;
}
.tsqc-wa-icon {
	font-size: 1.1em;
	line-height: 1;
}
.tsqc-actions-row {
	flex-wrap: wrap;
	gap: 0.65rem;
}
.tsqc-btn-wa-inline {
	white-space: nowrap;
}
.tsqc-wa-cta {
	margin: 1.5rem auto 0.5rem;
	max-width: 360px;
	text-align: center;
	padding: 1.25rem;
	background: #f0faf4;
	border: 1px solid #c6ebd5;
	border-radius: 12px;
}
.tsqc-wa-cta-text {
	margin: 0 0 0.75rem;
	font-weight: 600;
	color: var(--tsqc-navy);
	font-size: 0.95rem;
}

.tsqc-addons {
	margin: 1rem 0;
	padding: 1rem 1.15rem;
	background: #faf8f3;
	border: 1px solid var(--tsqc-border, #e2ddd3);
	border-radius: 10px;
}
.tsqc-addons-list {
	list-style: none;
	padding: 0;
	margin: 0.5rem 0;
}
.tsqc-addons-list li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.4rem 0;
	border-bottom: 1px solid #eee;
	font-size: 0.95rem;
}
.tsqc-addons-list li:last-child {
	border-bottom: none;
}
.tsqc-addon-label {
	color: var(--tsqc-navy, #0b2239);
	font-weight: 600;
}
.tsqc-addon-price {
	color: var(--tsqc-muted, #5a6570);
	white-space: nowrap;
}
