/**
 * Brio US Tax Deadline Calendar — front-end styles.
 * Ported from the LOCKED Business Name Generator / LLC Cost Calculator
 * stylesheet (same tokens, same footer-matched fields/buttons, same
 * breakpoints) with a .btc- prefix, plus deadline-card components.
 *   ink #1A1B25 · text #666D80 · accent #1641FF · border #ECEFF3
 *   background #FFFFFF / alt #FAFCFF · yellow #FFF501 · font Poppins
 *   radius 4px (12px form box, 10px cards)
 */

.btc {
	--btc-ink: #1a1b25;
	--btc-text: #666d80;
	--btc-accent: #1641ff;
	--btc-border: #eceff3;
	--btc-bg: #ffffff;
	--btc-bg-alt: #fafcff;
	--btc-yellow: #fff501;
	font-family: "Poppins", sans-serif;
	color: var(--btc-text);
	max-width: 1300px;
	margin: 0 auto;
	padding: 0 1rem;
	box-sizing: border-box;
}

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

.btc [hidden] {
	display: none !important;
}

.btc-title {
	color: var(--btc-ink);
	font-weight: 600;
	font-size: 1.8rem;
	line-height: 1.25;
	margin: 0 0 0.5rem;
	text-align: left;
}

.btc-subtitle {
	margin: 0 0 1rem;
	text-align: left;
	font-size: 1rem;
}

/* ── Form (white box, footer-matched fields) ──────────────────────────── */

.btc-form {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	background: var(--btc-bg);
	border: 1px solid var(--btc-border);
	border-radius: 12px;
	padding: 1rem;
	overflow: hidden;
}

.btc-field label,
.btc-legend {
	display: block;
	color: var(--btc-ink);
	font-weight: 500;
	font-size: 0.9rem;
	margin-bottom: 6px;
}

.btc-optional {
	color: var(--btc-text);
	font-weight: 400;
}

.btc-field select {
	width: 100%;
	font-family: "Poppins", Sans-serif;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.1rem;
	color: var(--btc-ink);
	background: var(--btc-bg-alt);
	border: 1px solid var(--btc-border);
	border-radius: 4px;
	padding: 8px 16px;
	min-height: 40px;
	height: 40px;
	outline: none;
	transition: border-color 0.15s ease;
}

.btc-field select:focus {
	border-color: var(--btc-ink);
}

.btc-help {
	margin: 6px 0 0;
	font-size: 0.8rem;
	color: var(--btc-text);
}

/* Flag checkboxes */
.btc-flags {
	border: none;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.btc-check {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--btc-bg-alt);
	border: 1px solid var(--btc-border);
	border-radius: 4px;
	padding: 8px 16px;
	min-height: 40px;
	margin-bottom: 10px;
	cursor: pointer;
	font-size: 1rem;
	line-height: 1.1rem;
	color: var(--btc-ink);
}

.btc-check:last-child {
	margin-bottom: 0;
}

.btc-check input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: var(--btc-accent);
	flex: none;
}

.btc-check-label {
	flex: 1;
	font-weight: 400;
}

.btc-btn {
	display: inline-block;
	font-family: "Poppins", Sans-serif;
	font-size: 1.05rem;
	font-weight: 500;
	line-height: 1.1;
	color: #ffffff;
	background-color: var(--btc-accent);
	border: none;
	border-radius: 4px;
	padding: 10px 22px;
	min-height: 44px;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.15s ease, transform 0.05s ease;
}

.btc-btn:hover {
	background-color: var(--btc-ink);
	color: #ffffff;
}

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

.btc-btn[disabled] {
	opacity: 0.6;
	cursor: default;
}

a.btc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.btc-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.btc-error {
	margin-top: 16px;
	background: #fff4f4;
	border: 1px solid #f3caca;
	color: #a13030;
	border-radius: 10px;
	overflow: hidden;
	padding: 12px 16px;
	font-size: 0.92rem;
	text-align: center;
}

.btc-gate-error {
	margin-top: 12px;
	width: 100%;
	max-width: 460px;
}

.btc-error--notice {
	background: #f2f6ff;
	border-color: #c9d6ff;
	color: #1a2c80;
}

.btc-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ── Results ──────────────────────────────────────────────────────────── */

.btc-results {
	position: relative;
	margin-top: 28px;
}

.btc-card {
	background: var(--btc-bg);
	border: 1px solid var(--btc-border);
	border-radius: 10px;
	overflow: hidden;
	padding: 1rem;
	margin-bottom: 14px;
}

.btc-card:hover {
	box-shadow: 0 6px 18px rgba(26, 27, 37, 0.06);
}

.btc-summary {
	text-align: center;
}

.btc-summary-total {
	color: var(--btc-ink);
	font-weight: 600;
	font-size: 2.2rem;
	line-height: 1.2;
	margin: 0 0 4px;
}

.btc-summary-label {
	margin: 0 0 4px;
	font-size: 0.95rem;
}

.btc-summary-sub {
	margin: 0;
	font-size: 0.85rem;
	color: var(--btc-ink);
	font-weight: 500;
}

/* Actions row (download) */
.btc-actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	text-align: center;
}

.btc-actions-note {
	margin: 0;
	font-size: 0.8rem;
}

/* Deadline cards */
.btc-item {
	display: grid;
	grid-template-columns: 64px 1fr;
	gap: 14px;
	align-items: start;
}

.btc-date {
	text-align: center;
	background: var(--btc-bg-alt);
	border: 1px solid var(--btc-border);
	border-radius: 4px;
	overflow: hidden;
	padding: 6px 0 5px;
}

.btc-date-month {
	display: block;
	font-size: 0.72rem;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--btc-text);
}

.btc-date-day {
	display: block;
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.15;
	color: var(--btc-ink);
}

.btc-date-year {
	display: block;
	font-size: 0.72rem;
	line-height: 1.2;
	color: var(--btc-text);
}

.btc-item-body {
	min-width: 0;
}

.btc-item-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 10px;
	flex-wrap: wrap;
}

.btc-item-title {
	color: var(--btc-ink);
	font-weight: 600;
	font-size: 1.05rem;
	line-height: 1.35;
	margin: 0;
	flex: 1 1 220px;
}

.btc-item-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 6px 0 8px;
}

.btc-chip {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1;
	padding: 5px 8px;
	border-radius: 4px;
	border: 1px solid var(--btc-border);
	background: var(--btc-bg-alt);
	color: var(--btc-ink);
	white-space: nowrap;
}

.btc-chip--state {
	color: var(--btc-accent);
}

.btc-chip--due {
	color: var(--btc-accent);
	background: var(--btc-bg);
	flex: none;
}

.btc-chip--soon {
	background: var(--btc-yellow);
	border-color: var(--btc-yellow);
	color: var(--btc-ink);
}

.btc-item-desc {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.55;
}

.btc-item-ext {
	margin: 6px 0 0;
	font-size: 0.8rem;
	line-height: 1.5;
	color: var(--btc-text);
}

.btc-note {
	margin: 4px 0 0;
	font-size: 0.9rem;
	color: var(--btc-ink);
}

.btc-disclaimer {
	margin: 8px 0 0;
	font-size: 0.8rem;
}

/* Blurred placeholder cards behind the gate */
.btc-card--locked {
	filter: blur(5px);
	pointer-events: none;
	user-select: none;
}

/* ── Email gate ───────────────────────────────────────────────────────── */

.btc-gate {
	position: relative;
	margin-top: 14px;
}

.btc-gate-blur {
	min-height: 300px;
	overflow: hidden;
}

.btc-gate-panel {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	background: linear-gradient(180deg, rgba(250, 252, 255, 0.55), rgba(250, 252, 255, 0.92));
	border-radius: 10px;
	overflow: hidden;
	padding: 24px;
}

.btc-gate-heading {
	color: var(--btc-ink);
	font-weight: 600;
	font-size: 1.15rem;
	margin: 0 0 4px;
}

.btc-gate-sub {
	font-size: 0.92rem;
	margin: 0 0 16px;
	max-width: 420px;
}

.btc-gate-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	max-width: 460px;
}

.btc-gate-form input[type="email"] {
	width: 100%;
	font-family: "Poppins", Sans-serif;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.1rem;
	color: var(--btc-ink);
	background: var(--btc-bg-alt);
	border: 1px solid var(--btc-border);
	border-radius: 4px;
	padding: 8px 16px;
	min-height: 40px;
	outline: none;
}

.btc-gate-form input[type="email"]:focus {
	border-color: var(--btc-ink);
}

.btc-gate-form .btc-btn {
	width: 100%;
	white-space: nowrap;
}

.btc-gate-privacy {
	font-size: 0.78rem;
	margin: 12px 0 0;
	color: var(--btc-text);
}

.btc-gate-privacy a {
	color: var(--btc-accent);
	text-decoration: none;
}

/* ── CTA ──────────────────────────────────────────────────────────────── */

.btc-cta {
	margin-top: 24px;
	background: var(--btc-bg-alt);
	border: 1px solid var(--btc-border);
	border-radius: 4px;
	overflow: hidden;
	padding: 1rem;
	text-align: center;
}

.btc-cta-text {
	margin: 0;
	font-family: "Poppins", Sans-serif;
	font-size: 1rem;
	font-weight: 400;
	color: var(--btc-text);
}

.btc-cta-text a {
	color: var(--btc-accent);
	font-weight: 500;
	text-decoration: none;
}

.btc-cta-text a:hover {
	text-decoration: underline;
}

/* ── Loading ──────────────────────────────────────────────────────────── */

.btc-btn--loading::after {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-left: 10px;
	vertical-align: -2px;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: btc-spin 0.7s linear infinite;
}

@keyframes btc-spin {
	to { transform: rotate(360deg); }
}

/* ── Tablet (Elementor tablet breakpoint) ─────────────────────────────── */

@media (max-width: 1024px) {
	.btc-title {
		font-size: 1.6rem;
		margin-bottom: 0.3rem;
	}

	.btc-subtitle {
		font-size: 0.9rem;
	}

	/* Footer parity: fields/buttons drop to 1rem / 1em at <=1024px. */
	.btc-field select,
	.btc-gate-form input[type="email"],
	.btc-check {
		font-size: 1rem;
		line-height: 1em;
	}

	.btc-field select {
		height: 43px;
	}

	/* Flag rows track the select height so the form stays aligned. */
	.btc-check {
		min-height: 43px;
	}

	.btc-card {
		padding: 0.75rem;
		border-radius: 4px;
	}

	.btc-item {
		grid-template-columns: 56px 1fr;
		gap: 12px;
	}

	.btc-date-day {
		font-size: 1.3rem;
	}

	.btc-item-title {
		font-size: 1rem;
	}

	.btc-item-desc,
	.btc-note {
		font-size: 0.85rem;
	}

	.btc-summary-total {
		font-size: 1.8rem;
	}

	.btc-cta {
		padding: 0.75rem;
	}

	.btc-gate-panel {
		padding: 0.75rem;
		border-radius: 4px;
	}

	.btc-gate-heading {
		font-size: 1rem;
	}

	.btc-gate-sub {
		font-size: 0.9rem;
		margin-bottom: 0.75rem;
	}

	.btc-gate-privacy {
		font-size: 0.8rem;
	}

	.btc-gate-blur {
		min-height: 260px;
	}
}

/* ── Mobile (Elementor mobile breakpoint) ─────────────────────────────── */

@media (max-width: 767px) {
	.btc-title {
		font-size: 1.2rem;
		margin-bottom: 0.25rem;
	}

	.btc-subtitle {
		font-size: 0.8rem;
	}

	.btc-form {
		padding: 0.75rem;
	}

	.btc-summary-total {
		font-size: 1.5rem;
	}

	.btc-item {
		grid-template-columns: 52px 1fr;
		gap: 10px;
	}

	.btc-item-title {
		font-size: 0.95rem;
	}

	.btc-gate-panel {
		background: linear-gradient(180deg, rgba(250, 252, 255, 0.95), rgba(250, 252, 255, 0.99));
	}

	.btc-gate-blur {
		min-height: 300px;
	}

	.btc-cta-text {
		font-size: 0.8rem;
		line-height: 1.6;
	}

	.btc-actions-note {
		font-size: 0.75rem;
	}
}


/* Keyboard focus must be visible. The fields set outline:none and rely on a
   border-colour change alone, which is too subtle to locate by keyboard. */
.btc input:focus-visible,
.btc select:focus-visible,
.btc textarea:focus-visible,
.btc button:focus-visible,
.btc a:focus-visible {
	outline: 2px solid #1641FF;
	outline-offset: 2px;
}
