/* =========================================================
   Technolize Migration Estimator — Front-end styles
   Scoped under .tme-wrap so it never leaks into the theme.
   ========================================================= */

.tme-wrap {
	--tme-navy: #0b1f3a;
	--tme-navy-2: #0f2847;
	--tme-blue: #2563eb;
	--tme-blue-light: #eaf1ff;
	--tme-green: #16a34a;
	--tme-orange: #ea580c;
	--tme-purple: #7c3aed;
	--tme-grey-50: #f7f9fc;
	--tme-grey-100: #eef1f6;
	--tme-grey-300: #d7dee8;
	--tme-grey-500: #64748b;
	--tme-grey-700: #334155;
	--tme-radius-lg: 20px;
	--tme-radius-md: 14px;
	--tme-radius-sm: 10px;
	--tme-shadow: 0 10px 30px rgba(15, 40, 71, 0.08);
	--tme-shadow-lg: 0 24px 60px rgba(15, 40, 71, 0.16);

	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
	color: var(--tme-navy);
	background: var(--tme-grey-50);
	padding: 64px 20px;
}

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

.tme-container {
	max-width: 1200px;
	margin: 0 auto;
}

/* ---------- Header ---------- */
.tme-header {
	text-align: center;
	max-width: 720px;
	margin: 0 auto 40px;
}

.tme-eyebrow {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--tme-blue);
	margin-bottom: 14px;
}

.tme-title {
	font-size: 40px;
	line-height: 1.2;
	font-weight: 800;
	margin: 0 0 16px;
	letter-spacing: -0.02em;
}

.tme-title-accent {
	color: var(--tme-blue);
}

.tme-subtitle {
	font-size: 17px;
	color: var(--tme-grey-500);
	margin: 0;
}

/* ---------- Grid layout ---------- */
.tme-grid {
	display: grid;
	grid-template-columns: 63% 37%;
	gap: 24px;
	align-items: stretch;
}

@media (max-width: 1180px) {
	.tme-grid {
		grid-template-columns: 58% 42%;
	}
}

@media (max-width: 782px) {
	.tme-grid {
		grid-template-columns: 1fr;
	}
}

.tme-card {
	border-radius: var(--tme-radius-lg);
	box-shadow: var(--tme-shadow);
	animation: tme-fade-up 0.5s ease both;
}

/* ---------- Left calculator card ---------- */
.tme-calc-card {
	background: #ffffff;
	border: 1px solid var(--tme-grey-100);
	padding: 32px;
}

.tme-questions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px 28px;
}

@media (max-width: 560px) {
	.tme-questions {
		grid-template-columns: 1fr;
	}
}

.tme-question {
	border-bottom: 1px solid var(--tme-grey-100);
	padding-bottom: 18px;
}

.tme-q-label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--tme-navy);
	margin-bottom: 12px;
}

.tme-q-icon {
	width: 22px;
	height: 22px;
	flex: 0 0 22px;
	border-radius: 6px;
	background: var(--tme-blue);
	display: inline-block;
}

.tme-pill-group {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.tme-pill {
	appearance: none;
	background: var(--tme-blue-light);
	border: 1.5px solid #d3e2fd;
	color: var(--tme-blue);
	font-size: 14px;
	font-weight: 600;
	padding: 11px 20px;
	border-radius: 999px;
	cursor: pointer;
	transition: all 0.15s ease;
	white-space: nowrap;
}

.tme-pill:hover {
	border-color: var(--tme-blue);
	background: #dde9ff;
}

.tme-pill.is-active {
	background: var(--tme-blue);
	border-color: var(--tme-blue);
	color: #fff;
	box-shadow: 0 6px 14px rgba(37, 99, 235, 0.3);
}

.tme-hp {
	position: absolute;
	left: -9999px;
	opacity: 0;
	height: 0;
	width: 0;
}

.tme-form-error {
	background: #fdecec;
	color: #b3261e;
	border: 1px solid #f6c8c5;
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 13.5px;
	margin-top: 18px;
}

.tme-btn {
	border: none;
	cursor: pointer;
	font-weight: 700;
	border-radius: 12px;
	font-size: 15.5px;
	transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.tme-btn:active {
	transform: translateY(1px);
}

.tme-btn-block {
	width: 100%;
}

.tme-btn-primary {
	background: linear-gradient(135deg, #2563eb, #1d4ed8);
	color: #fff;
	padding: 15px 20px;
	margin-top: 24px;
	box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.tme-btn-primary:hover {
	box-shadow: 0 14px 30px rgba(37, 99, 235, 0.36);
}

.tme-btn-primary[disabled] {
	opacity: 0.65;
	cursor: not-allowed;
}

.tme-arrow {
	transition: transform 0.15s ease;
}

.tme-btn:hover .tme-arrow {
	transform: translateX(3px);
}

.tme-secure-note {
	text-align: center;
	font-size: 12.5px;
	color: var(--tme-grey-500);
	margin: 12px 0 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.tme-lock::before {
	content: "\1F512";
}

/* ---------- Right result card ---------- */
.tme-result-card {
	background: linear-gradient(160deg, var(--tme-navy) 0%, var(--tme-navy-2) 100%);
	color: #fff;
	padding: 30px 26px;
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

.tme-result-header h3 {
	font-size: 19px;
	margin: 0 0 6px;
	font-weight: 700;
}

.tme-sample-tag {
	color: #9db4d9;
	font-weight: 500;
	font-size: 13px;
}

.tme-result-header p {
	font-size: 13px;
	color: #a9bcda;
	margin: 0 0 22px;
}

.tme-snapshot-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	margin-bottom: 26px;
}

@media (max-width: 1180px) and (min-width: 783px) {
	.tme-snapshot-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 420px) {
	.tme-snapshot-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.tme-snapshot-tile {
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--tme-radius-md);
	padding: 18px 8px;
	text-align: center;
	transition: background 0.4s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-height: 132px;
	justify-content: flex-start;
}

.tme-tile-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	font-size: 16px;
	margin-bottom: 12px;
}

.tme-tile-icon-blue { background: #2563eb; }
.tme-tile-icon-green { background: #16a34a; }
.tme-tile-icon-purple { background: #7c3aed; }
.tme-tile-icon-orange { background: #ea580c; }

.tme-tile-value {
	display: block;
	font-size: 19px;
	font-weight: 800;
	margin-bottom: 8px;
	line-height: 1.2;
	transition: opacity 0.2s ease;
}

.tme-value-complexity { color: #34d399; }
.tme-value-readiness { color: #fb923c; }

.tme-tile-label {
	font-size: 11px;
	color: #a9bcda;
	line-height: 1.5;
}

.tme-includes h4 {
	font-size: 14.5px;
	color: #cfe0ff;
	margin: 0 0 12px;
	font-weight: 700;
}

.tme-includes-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px 16px;
	margin-bottom: 22px;
}

.tme-includes ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tme-includes li {
	font-size: 12.5px;
	color: #d7e3f7;
	padding: 6px 0 6px 22px;
	position: relative;
}

.tme-includes li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 6px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: rgba(37, 99, 235, 0.35);
	color: #93c5fd;
	font-size: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tme-cta-strip {
	margin-top: auto;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--tme-radius-md);
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

@media (min-width: 481px) and (max-width: 1024px) {
	.tme-cta-strip { flex-direction: column; }
}

.tme-cta-text {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.tme-cta-icon {
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
	background: #2563eb;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tme-cta-text strong {
	font-size: 13.5px;
	display: block;
	margin-bottom: 2px;
}

.tme-cta-text p {
	font-size: 12px;
	color: #a9bcda;
	margin: 0;
}

.tme-btn-light {
	background: #fff;
	color: var(--tme-navy);
	padding: 12px 16px;
}

.tme-btn-light:hover {
	background: #eef3fc;
}

/* ---------- Trust bar ---------- */
.tme-trust-bar {
	margin-top: 28px;
	background: #fff;
	border: 1px solid var(--tme-grey-100);
	border-radius: var(--tme-radius-lg);
	box-shadow: var(--tme-shadow);
	padding: 24px;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 20px;
}

@media (max-width: 900px) {
	.tme-trust-bar { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
	.tme-trust-bar { grid-template-columns: 1fr; }
}

.tme-trust-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.tme-trust-icon {
	width: 38px;
	height: 38px;
	flex: 0 0 38px;
	border-radius: 10px;
	background: var(--tme-blue-light);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 17px;
}

.tme-trust-item strong {
	display: block;
	font-size: 13.5px;
	margin-bottom: 2px;
}

.tme-trust-item p {
	font-size: 12px;
	color: var(--tme-grey-500);
	margin: 0;
}

/* ---------- Inline quote panel (no overlay, expands in place) ---------- */
.tme-inline-quote {
	margin-top: 14px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--tme-radius-md);
	padding: 16px;
	animation: tme-fade-up 0.25s ease both;
}

.tme-inline-quote-label {
	display: block;
	font-size: 12.5px;
	color: #cfe0ff;
	font-weight: 600;
	margin-bottom: 8px;
}

.tme-inline-quote-form {
	display: flex;
	gap: 8px;
}

.tme-inline-quote-note {
	font-size: 11px;
	color: #93a8cc;
	margin: 8px 0 0;
	line-height: 1.4;
}

.tme-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-top: 12px;
	cursor: pointer;
}

.tme-consent input[type="checkbox"] {
	margin-top: 2px;
	width: 15px;
	height: 15px;
	flex: 0 0 15px;
	accent-color: var(--tme-blue);
	cursor: pointer;
}

.tme-consent span {
	font-size: 11.5px;
	color: #cfe0ff;
	line-height: 1.4;
}

.tme-inline-quote-form input {
	flex: 1;
	padding: 11px 14px;
	border-radius: 10px;
	border: 1.5px solid rgba(255, 255, 255, 0.25);
	background: rgba(255, 255, 255, 0.95);
	font-size: 13.5px;
	color: var(--tme-navy);
}

.tme-inline-quote-form input:focus {
	outline: none;
	border-color: var(--tme-blue);
	background: #fff;
}

.tme-inline-quote-form .tme-btn-primary {
	margin-top: 0;
	padding: 11px 20px;
	white-space: nowrap;
	box-shadow: none;
}

.tme-lead-success-inline {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13.5px;
	color: #d7e3f7;
}

.tme-success-icon-sm {
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
	border-radius: 50%;
	background: #16a34a;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
}

/* ---------- Animations ---------- */
@keyframes tme-fade-up {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes tme-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes tme-slide-up {
	from { opacity: 0; transform: translateY(24px) scale(0.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.tme-pulse {
	animation: tme-pulse 0.4s ease;
}

@keyframes tme-pulse {
	0% { transform: scale(1); }
	40% { transform: scale(1.06); }
	100% { transform: scale(1); }
}
