/* ==========================================================================
   VE Calculator Section — price-calculator.css
   Section 04: requirements panel (left), estimate panel (right),
   "More details" comparison table, mobile total bar.
   Scoped to .ve-calculator and .ve-calc. Uses tokens from VE Landing Page.
   ========================================================================== */

/* ---------- Section: same white "sheet" as the About section ---------- */
.ve-page .e-con.ve-calculator {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
	width: 100%;
	max-width: none;
	margin: calc(-1 * clamp(1.5rem, 1rem + 2vw, 3rem)) 0 0;
	padding: var(--ve-section-y) max(var(--ve-gutter), calc((100% - var(--ve-max)) / 2));
	background-color: var(--ve-surface);
	border-radius: clamp(24px, 1rem + 2.5vw, 56px) clamp(24px, 1rem + 2.5vw, 56px) 0 0;
	box-shadow: 0 -1px 0 var(--ve-line), 0 -24px 60px -40px rgba(15, 22, 38, 0.25);
	overflow-x: clip;
}
.ve-page .ve-calculator > .elementor-element {
	width: 100%;
	max-width: none;
	margin: 0;
}

/* Heading block: label on the left, heading and intro on the right (like About) */
.ve-page .e-con.ve-calculator__head {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: clamp(1rem, 0.5rem + 1.5vw, 2rem);
	row-gap: var(--ve-space-4);
	align-items: start;
	width: 100%;
	max-width: none;
	padding: 0;
	margin: 0;
	text-align: left;
}
.ve-page .ve-calculator__head > .elementor-element {
	width: auto;
	max-width: none;
	min-width: 0;
	margin: 0;
}
.ve-page .ve-calculator__badge {
	grid-column: 1 / span 3;
	grid-row: 1 / span 2;
	padding-top: 0.9em;
}
.ve-page .ve-calculator__badge p {
	margin: 0;
	font-family: var(--ve-font-body);
	font-size: var(--ve-fs-micro);
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	line-height: 1.4;
	color: var(--ve-ink-soft);
}
.ve-page .ve-calculator__badge p::before {
	content: "";
	display: inline-block;
	width: 28px;
	height: 1.5px;
	margin-right: 0.75em;
	vertical-align: middle;
	background: var(--ve-ink);
}
.ve-page .ve-calculator__title {
	grid-column: 4 / -1;
	grid-row: 1;
}
.ve-page .ve-calculator__title .elementor-heading-title {
	font-size: var(--ve-fs-h2);
	line-height: 1;
	margin: 0;
	text-wrap: balance;
}
.ve-page .ve-calculator__lede {
	grid-column: 4 / span 7;
	grid-row: 2;
}
.ve-page .ve-calculator__lede p {
	margin: 0;
	font-size: var(--ve-fs-lede);
	line-height: 1.6;
	color: var(--ve-ink-soft);
}

@media (max-width: 1024px) {
	.ve-page .ve-calculator__badge { grid-column: 1 / -1; grid-row: 1; padding-top: 0; }
	.ve-page .ve-calculator__title { grid-column: 1 / -1; grid-row: 2; }
	.ve-page .ve-calculator__lede { grid-column: 1 / span 10; grid-row: 3; }
}
@media (max-width: 767px) {
	.ve-page .ve-calculator__lede { grid-column: 1 / -1; }
}

/* ---------- Calculator ---------- */
.ve-calc {
	position: relative;
	width: 100%;
	font-family: var(--ve-font-body);
	color: var(--ve-ink);
}
.ve-calc__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: var(--ve-space-4);
	align-items: stretch;
}
.ve-calc__panel {
	display: flex;
	flex-direction: column;
	gap: var(--ve-space-5);
	height: 100%;
	padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
	border: 1px solid var(--ve-line);
	border-radius: var(--ve-radius-l);
	background: var(--ve-surface);
	box-shadow: var(--ve-shadow-2);
}
.ve-calc__panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--ve-space-3);
}
.ve-calc .ve-calc__panel-title {
	margin: 0;
	font-family: var(--ve-font-body);
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.2;
	color: var(--ve-ink);
}
.ve-calc .ve-calc__reset {
	margin: 0;
	padding: 0.4em 0.9em;
	border: 1px solid var(--ve-line);
	border-radius: var(--ve-radius-pill);
	background: transparent;
	color: var(--ve-ink-soft);
	font: inherit;
	font-size: var(--ve-fs-small);
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}
.ve-calc .ve-calc__reset:hover,
.ve-calc .ve-calc__reset:focus {
	background: var(--ve-bg);
	border-color: var(--ve-ink);
	color: var(--ve-ink);
}
.ve-calc__demo {
	padding: 0.3em 0.75em;
	border-radius: var(--ve-radius-pill);
	background: var(--ve-lavender);
	color: var(--ve-ink);
	font-size: var(--ve-fs-micro);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* Fields */
.ve-calc__field {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}
.ve-calc__label {
	display: block;
	margin: 0 0 0.6rem;
	padding: 0;
	font-size: var(--ve-fs-small);
	font-weight: 600;
	color: var(--ve-ink-soft);
}
.ve-calc__slot { display: contents; }
.ve-calc__slot[hidden] { display: none; } /* video type without a Length question */

/* Visually hidden native inputs: they keep keyboard and screen reader behaviour. */
.ve-calc__radio,
.ve-calc__check {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
	opacity: 0;
}

/* Segmented control */
.ve-calc__options--segmented {
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	gap: 4px;
	padding: 4px;
	border-radius: var(--ve-radius-pill);
	background: var(--ve-bg);
	border: 1px solid var(--ve-line);
}
.ve-calc__option {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.45em;
	min-height: 44px;
	padding: 0.5em 0.75em;
	border-radius: var(--ve-radius-pill);
	color: var(--ve-ink-soft);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	user-select: none;
	transition: background-color var(--ve-dur-fast) ease, color var(--ve-dur-fast) ease, box-shadow var(--ve-dur-fast) ease;
}
.ve-calc__option:hover { color: var(--ve-ink); }
.ve-calc__radio:checked + .ve-calc__option {
	background: var(--ve-accent);
	color: var(--ve-on-accent);
	font-weight: 700;
	box-shadow: 0 6px 16px -8px var(--ve-accent-glow, rgba(11, 99, 229, .7));
}
.ve-calc__radio:focus-visible + .ve-calc__option,
.ve-calc__check:focus-visible + .ve-calc__option {
	outline: 3px solid var(--ve-focus);
	outline-offset: 2px;
}

/* Chips (video type, add-ons) */
.ve-calc__options--chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.ve-calc__options--chips .ve-calc__option {
	border: 1px solid var(--ve-line);
	background: var(--ve-surface);
	padding: 0.5em 1em;
}
.ve-calc__options--chips .ve-calc__radio:checked + .ve-calc__option {
	border-color: var(--ve-accent);
}
.ve-calc__option--chip { gap: 0.55em; }
.ve-calc__chip-tick {
	display: grid;
	place-items: center;
	width: 18px;
	height: 18px;
	border: 1.5px solid #c3cad6;
	border-radius: 6px;
	background: var(--ve-surface);
	flex: none;
	transition: background-color var(--ve-dur-fast) ease, border-color var(--ve-dur-fast) ease;
}
.ve-calc__chip-price {
	color: var(--ve-ink-soft);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}
.ve-calc__check:checked + .ve-calc__option {
	border-color: var(--ve-ink);
	background: var(--ve-bg);
	color: var(--ve-ink);
}
.ve-calc__check:checked + .ve-calc__option .ve-calc__chip-tick {
	border-color: var(--ve-accent);
	background: var(--ve-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.ve-calc__hint {
	margin: 0.5rem 0 0;
	font-size: var(--ve-fs-small);
	color: var(--ve-ink-soft);
	min-height: 1.4em;
}

/* Stepper */
.ve-calc__stepper {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) 44px;
	align-items: center;
	gap: 0.5rem;
}
.ve-calc .ve-calc__step {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--ve-line);
	border-radius: 50%;
	background: var(--ve-surface);
	color: var(--ve-ink);
	cursor: pointer;
	transition: border-color var(--ve-dur-fast) ease, transform var(--ve-dur-fast) ease;
}
.ve-calc .ve-calc__step:hover,
.ve-calc .ve-calc__step:focus {
	background: var(--ve-surface);
	color: var(--ve-ink);
	border-color: var(--ve-ink);
}
.ve-calc .ve-calc__step:active { transform: scale(0.94); }
.ve-calc .ve-calc__step:disabled { opacity: 0.4; cursor: not-allowed; border-color: var(--ve-line); }
.ve-calc__step svg { width: 16px; height: 16px; fill: currentColor; }
.ve-calc .ve-calc__qty {
	width: 100%;
	height: 44px;
	margin: 0;
	padding: 0 1rem;
	border: 1px solid var(--ve-line);
	border-radius: var(--ve-radius-pill);
	background: var(--ve-bg);
	color: var(--ve-ink);
	font: inherit;
	font-size: 1.0625rem;
	font-weight: 700;
	text-align: center;
	font-variant-numeric: tabular-nums;
	-moz-appearance: textfield;
}
.ve-calc .ve-calc__qty::-webkit-outer-spin-button,
.ve-calc .ve-calc__qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ve-calc .ve-calc__qty:focus { border-color: var(--ve-ink); outline: none; box-shadow: none; }
.ve-calc .ve-calc__qty:focus-visible { outline: 3px solid var(--ve-focus); outline-offset: 2px; }
.ve-calc .ve-calc__qty[aria-invalid="true"] { border-color: #b3261e; }
.ve-calc__error {
	margin: 0.4rem 0 0;
	min-height: 1.2em;
	font-size: var(--ve-fs-small);
	font-weight: 600;
	color: #b3261e;
}
.ve-calc__error:empty { min-height: 0; margin: 0; }

/* ---------- Estimate panel ---------- */
.ve-calc__totalbox {
	padding: var(--ve-space-5);
	border-radius: var(--ve-radius-m);
	background: linear-gradient(135deg, var(--ve-accent-08, rgba(11, 99, 229, .08)), rgba(217, 210, 250, 0.45));
	border: 1px solid var(--ve-accent-20, rgba(11, 99, 229, .2));
}
.ve-calc__total-label {
	margin: 0;
	font-size: var(--ve-fs-small);
	font-weight: 600;
	color: var(--ve-ink-soft);
}
.ve-calc__total {
	margin: 0.15rem 0 0.25rem;
	font-family: var(--ve-font-display);
	font-weight: 600;
	font-size: clamp(2.75rem, 2rem + 2.6vw, 4rem);
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--ve-ink);
	font-variant-numeric: tabular-nums;
}
.ve-calc__per {
	margin: 0;
	font-size: var(--ve-fs-small);
	color: var(--ve-ink-soft);
}

.ve-calc__breakdown { margin: 0; padding: 0; }
.ve-calc__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--ve-space-4);
	padding: 0.45rem 0;
	border-bottom: 1px solid var(--ve-line);
	font-size: 0.875rem;
}
.ve-calc__row:last-child { border-bottom: 0; }
.ve-calc__row dt { margin: 0; color: var(--ve-ink-soft); }
.ve-calc__row dd { margin: 0; font-weight: 700; color: var(--ve-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ve-calc__row--strong dt { color: var(--ve-ink); font-weight: 700; }
.ve-calc__row--discount dd { color: #1e7a4c; }

/* Comparison */
.ve-calc__compare-title {
	margin: 0 0 0.4rem;
	font-size: var(--ve-fs-small);
	font-weight: 600;
	color: var(--ve-ink-soft);
}
.ve-calc__compare-list { margin: 0; padding: 0; list-style: none; }
.ve-calc__compare-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--ve-space-3);
	margin: 0;
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--ve-line);
	font-size: 0.875rem;
	color: var(--ve-ink-soft);
}
.ve-calc__compare-amount { font-weight: 700; color: var(--ve-ink); font-variant-numeric: tabular-nums; }
.ve-calc__compare-row:not(.ve-calc__compare-row--ours) .ve-calc__compare-amount {
	color: var(--ve-ink-soft);
	text-decoration: line-through;
	text-decoration-color: rgba(79, 88, 105, 0.5);
}
.ve-calc__compare-row--ours {
	margin-top: 0.6rem;
	padding: 0.75rem 1rem;
	border: 1.5px solid var(--ve-accent);
	border-bottom-width: 1.5px;
	border-radius: var(--ve-radius-m);
	background: var(--ve-bg);
	color: var(--ve-ink);
}
.ve-calc__ours-name {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	font-weight: 800;
}
.ve-calc__ours-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--ve-accent);
	box-shadow: 0 0 0 4px var(--ve-accent-20, rgba(11, 99, 229, .2));
}
.ve-calc__save {
	padding: 0.25em 0.7em;
	border-radius: var(--ve-radius-pill);
	background: #e3f4ea;
	color: #1e6a43;
	font-size: var(--ve-fs-micro);
	font-weight: 800;
	white-space: nowrap;
}

/* CTA */
.ve-calc .ve-calc__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	min-height: 54px;
	padding: 0.9em 1.5em;
	border-radius: var(--ve-radius-pill);
	background: var(--ve-accent);
	color: var(--ve-on-accent);
	font-size: 1rem;
	font-weight: 800;
	text-decoration: none;
	box-shadow: 0 14px 30px -14px var(--ve-accent-glow, rgba(11, 99, 229, .7));
	transition: background-color var(--ve-dur-fast) ease, transform var(--ve-dur) var(--ve-ease);
}
.ve-calc .ve-calc__cta:hover,
.ve-calc .ve-calc__cta:focus {
	background: var(--ve-accent-hover);
	color: var(--ve-on-accent);
}
.ve-calc .ve-calc__cta:hover { transform: translateY(-2px); }
.ve-calc .ve-calc__cta:focus-visible { outline: 3px solid var(--ve-focus); outline-offset: 3px; }
.ve-calc__cta svg { width: 14px; height: 14px; fill: currentColor; display: block; }
/* Checkout: final total + quote button, always at the bottom of the estimate panel */
.ve-calc__checkout {
	display: flex;
	flex-direction: column;
	gap: var(--ve-space-3);
	margin-top: auto;
	padding-top: var(--ve-space-5);
	border-top: 1px solid var(--ve-line);
}
.ve-calc__checkout-total {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--ve-space-3);
}
.ve-calc__checkout-label {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: var(--ve-fs-small);
	font-weight: 700;
	color: var(--ve-ink);
}
.ve-calc__checkout-note { font-size: var(--ve-fs-micro); font-weight: 600; color: #1f8a4c; }
.ve-calc__checkout-note:empty { display: none; }
.ve-calc__checkout-amount {
	font-family: var(--ve-font-display);
	font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--ve-ink);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.ve-calc__disclaimer {
	margin: 0;
	font-size: var(--ve-fs-micro);
	line-height: 1.5;
	color: var(--ve-ink-soft);
	text-align: center;
}

/* ---------- More details ---------- */
.ve-calc .ve-calc__more {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	margin: var(--ve-space-4) 0 0;
	padding: 0.85rem 1rem;
	border: 1px solid var(--ve-line);
	border-radius: var(--ve-radius-m);
	background: var(--ve-surface);
	color: var(--ve-ink);
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 700;
	cursor: pointer;
}
.ve-calc .ve-calc__more:hover,
.ve-calc .ve-calc__more:focus {
	background: var(--ve-bg);
	color: var(--ve-ink);
	border-color: var(--ve-ink);
}
.ve-calc__more-icon svg { width: 14px; height: 14px; fill: currentColor; display: block; transition: transform var(--ve-dur) var(--ve-ease); }
.ve-calc__more[aria-expanded="true"] .ve-calc__more-icon svg { transform: rotate(180deg); }

.ve-calc__details { margin-top: var(--ve-space-4); }
.ve-calc__details[hidden] { display: none; }
.ve-calc__table-wrap {
	overflow-x: auto;
	border: 1px solid var(--ve-line);
	border-radius: var(--ve-radius-l);
	background: var(--ve-surface);
	box-shadow: var(--ve-shadow-1);
}
.ve-calc__table {
	width: 100%;
	min-width: 640px;
	margin: 0;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 0.9375rem;
}
.ve-calc__table th,
.ve-calc__table td {
	padding: 0.85rem 1rem;
	border: 0;
	border-bottom: 1px solid var(--ve-line);
	text-align: left;
	vertical-align: middle;
	background: transparent;
}
.ve-calc__table tbody tr:last-child th,
.ve-calc__table tbody tr:last-child td { border-bottom: 0; }
.ve-calc__table thead th {
	font-size: var(--ve-fs-small);
	font-weight: 700;
	color: var(--ve-ink);
	background: var(--ve-bg);
}
.ve-calc__table tbody th { font-weight: 700; color: var(--ve-ink); }
.ve-calc__table td { color: var(--ve-ink-soft); }
.ve-calc__table .ve-calc__ours {
	background: var(--ve-accent-08, rgba(11, 99, 229, .08));
	color: var(--ve-ink);
	font-weight: 800;
	border-left: 2px solid var(--ve-accent);
	border-right: 2px solid var(--ve-accent);
}
.ve-calc__table thead .ve-calc__ours { border-top: 2px solid var(--ve-accent); background: var(--ve-accent-12, rgba(11, 99, 229, .12)); }
.ve-calc__table tbody tr:last-child .ve-calc__ours { border-bottom: 2px solid var(--ve-accent); }

.ve-calc__config-error {
	margin: 0;
	padding: 1rem 1.25rem;
	border: 1px solid var(--ve-line);
	border-radius: var(--ve-radius-m);
	background: var(--ve-surface);
	color: var(--ve-ink);
	font-weight: 600;
	text-align: center;
}

/* ---------- Mobile total bar ---------- */
.ve-calc__bar {
	position: fixed;
	left: 12px;
	right: 12px;
	bottom: 12px;
	z-index: 50;
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.6rem 0.6rem 0.6rem 1.1rem;
	border: 1px solid var(--ve-line);
	border-radius: var(--ve-radius-pill);
	background: rgba(255, 255, 255, 0.96);
	box-shadow: var(--ve-shadow-3);
	transform: translateY(140%);
	transition: transform 0.4s var(--ve-ease);
}
.ve-calc__bar-text { display: flex; flex-direction: column; line-height: 1.15; }
.ve-calc__bar-label { font-size: var(--ve-fs-micro); color: var(--ve-ink-soft); font-weight: 600; }
.ve-calc__bar-text strong { font-size: 1.125rem; font-weight: 800; color: var(--ve-ink); font-variant-numeric: tabular-nums; }
.ve-calc .ve-calc__bar-btn {
	margin: 0;
	padding: 0.75em 1.1em;
	border: 0;
	border-radius: var(--ve-radius-pill);
	background: var(--ve-accent);
	color: var(--ve-on-accent);
	font: inherit;
	font-size: 0.875rem;
	font-weight: 800;
	cursor: pointer;
}
.ve-calc .ve-calc__bar-btn:hover,
.ve-calc .ve-calc__bar-btn:focus { background: var(--ve-accent-hover); color: var(--ve-on-accent); }

/* Hello Elementor resets pink button fills; keep ours. */
.ve-calc button { white-space: normal; text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.ve-calc__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
	.ve-calc__bar { display: flex; }
	.ve-calc.is-bar-visible .ve-calc__bar { transform: none; }
}
@media (max-width: 480px) {
	.ve-calc__option { font-size: 0.875rem; padding: 0.5em 0.5em; }
	.ve-calc__options--chips .ve-calc__option { padding: 0.5em 0.85em; }
	.ve-calc__panel { border-radius: var(--ve-radius-m); }
}
@media (prefers-reduced-motion: reduce) {
	.ve-calc__option,
	.ve-calc__chip-tick,
	.ve-calc__more-icon svg,
	.ve-calc__bar,
	.ve-calc .ve-calc__cta { transition: none; }
	.ve-calc .ve-calc__cta:hover { transform: none; }
}

/* Videos per month as buttons: small discount note (e.g. "−10%") */
.ve-calc__opt-note {
	display: inline-flex;
	align-items: center;
	padding: 0.15em 0.45em;
	border-radius: 999px;
	background: rgba(31, 138, 76, 0.12);
	color: #1f8a4c;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.01em;
}
.ve-calc__radio:checked + .ve-calc__option .ve-calc__opt-note {
	background: rgba(255, 255, 255, 0.22);
	color: #fff;
}
