/* ==========================================================================
   Demo / estimate form toggle on the paid pages (theme 1.4.57, inc/form-toggle.php).
   /skytab2's toggle (skytab2.css part 1), scoped to body.s4d-ftog. /skytab2 keeps its own.
   ========================================================================== */

body.s4d-ftog .s4d-ft-est[hidden] { display: none !important; }
/* The toggle's space is held from the first paint, invisible, until form-toggle.js reveals
   it (the /skytab2 1.4.50 CLS fix). */
body.s4d-ftog .s4d-ft-toggle[hidden] { display: grid !important; visibility: hidden; }
body.s4d-ftog .s4d-ft-toggle {
	display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
	margin: 0 0 18px; padding: 4px;
	background: #EEF2F9; border-radius: 12px;
}
body.s4d-ftog .s4d-ft-toggle__btn {
	min-height: 46px; padding: 6px 10px;
	border: 0; border-radius: 9px;
	background: transparent; color: var(--s4d-ink-700, #3F4859);
	font: inherit; font-size: 15px; font-weight: 800; line-height: 1.15;
	cursor: pointer;
}
body.s4d-ftog .s4d-ft-toggle__btn[aria-pressed="true"] { background: var(--s4d-navy, #0B1B3A); color: #fff; }
body.s4d-ftog .s4d-ft-toggle__btn:focus-visible { outline: 3px solid var(--s4d-blue, #136EF6); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
	body.s4d-ftog .s4d-ft-toggle__btn { transition: background-color .15s, color .15s; }
}

/* Estimate mode: the demo children step aside (the panel is their sibling); the support
   switch stays at the bottom. */
body.s4d-ftog .s4d-ohero__card.is-estimate > :not(.s4d-ft-toggle):not(.s4d-ft-est):not(.s4d-sup) { display: none !important; }
body.s4d-ftog .s4d-ft-est__title:focus { outline: none; }

/* Phones: in demo mode the card steps back for the phone quiz (seolp-hero.css), so the
   toggle gets a white track of its own; in estimate mode the card is a card again. */
@media (max-width: 767px) {
	body.s4d-ftog .s4d-ohero__card--quiz:not(.is-estimate) .s4d-ft-toggle { background: #fff; box-shadow: 0 0 0 1px var(--s4d-border, #E4E8F0); margin-bottom: 12px; }
	body.s4d-ftog .s4d-ohero__card--quiz.is-estimate {
		background: #fff; padding: 18px 16px;
		box-shadow: 0 16px 40px -20px rgba(11, 27, 58, .35), 0 0 0 1px var(--s4d-border, #E4E8F0);
	}
	body.s4d-ftog .s4d-ohero__card--quiz.is-estimate .s4d-ft-toggle { background: #EEF2F9; box-shadow: none; }
	body.s4d-ftog .s4d-ft-toggle__btn { font-size: 14px; padding: 6px 8px; }
}

/* "Step N of 6" with a six-segment bar, as on /skytab2. */
body.s4d-ftog .s4d-ft-est .s4d-pt__bar {
	-webkit-mask-image: repeating-linear-gradient(90deg, #000 0 calc(16.666% - 4px), transparent calc(16.666% - 4px) 16.666%);
	mask-image: repeating-linear-gradient(90deg, #000 0 calc(16.666% - 4px), transparent calc(16.666% - 4px) 16.666%);
}
