/* Sam Karam Siding Cost Calculator. Inherits the theme font; one accent color from settings. */
.skc, .skc-table-wrap {
	--skc-accent: #1f4e79;
	--skc-ink: #1d2733;
	--skc-muted: #5b6673;
	--skc-line: #d9dee4;
	--skc-soft: #f4f6f8;
	color: var(--skc-ink);
	box-sizing: border-box;
}
.skc *, .skc *::before, .skc *::after { box-sizing: inherit; }

.skc {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 32px;
	align-items: start;
	margin: 0 auto;
	max-width: 1140px;
}
@media (max-width: 900px) { .skc { grid-template-columns: 1fr; gap: 24px; } }

.skc-step { border: 0; margin: 0 0 24px; padding: 0; min-width: 0; }
.skc-step legend { font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; padding: 0; }
.skc-field { display: block; margin-bottom: 12px; }
.skc-label { display: block; font-size: .95rem; margin-bottom: 6px; color: var(--skc-muted); }
.skc input[type=number], .skc input[type=text], .skc input[type=email], .skc input[type=tel], .skc select {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--skc-line);
	border-radius: 8px;
	font: inherit;
	background: #fff;
	color: inherit;
}
.skc input:focus-visible, .skc select:focus-visible { outline: 2px solid var(--skc-accent); outline-offset: 1px; }

.skc-hint { margin: -4px 0 12px; font-size: .9rem; color: var(--skc-muted); }
.skc-opts { display: grid; gap: 10px; }
.skc-opts-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.skc-opts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .skc-opts-4, .skc-opts-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.skc-opt {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px 14px;
	border: 1px solid var(--skc-line);
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s;
}
.skc-opt input { position: absolute; opacity: 0; pointer-events: none; }
.skc-opt:hover { border-color: var(--skc-accent); }
.skc-opt:has(input:checked) { border-color: var(--skc-accent); box-shadow: inset 0 0 0 1px var(--skc-accent); background: var(--skc-soft); }
.skc-opt:has(input:focus-visible) { outline: 2px solid var(--skc-accent); outline-offset: 2px; }
.skc-opt-title { font-weight: 700; font-size: .95rem; }
.skc-opt-note { color: var(--skc-muted); font-size: .82rem; line-height: 1.4; }

/* Tile icons: line drawings above the label, gray until the tile is picked. */
.skc-opt:has(.skc-ico) { align-items: center; text-align: center; padding: 14px 10px 12px; }
.skc-ico {
	display: block;
	width: 100%;
	max-width: 116px;
	height: auto;
	aspect-ratio: 100 / 64;
	margin: 0 auto 6px;
	color: #7d8793;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linejoin: round;
	stroke-linecap: round;
	overflow: visible;
}
.skc-ico .f { fill: #fff; }
.skc-ico .a { transition: stroke .15s; }
.skc-opt:hover .skc-ico .a,
.skc-opt:has(input:checked) .skc-ico .a { stroke: var(--skc-accent); }
.skc-opt:has(input:checked) .skc-ico { color: var(--skc-ink); }
.skc-opt:has(input:checked) .skc-ico .f { fill: var(--skc-soft); }

.skc-result {
	position: sticky;
	top: 24px;
	padding: 28px;
	border-radius: 14px;
	background: var(--skc-soft);
	border: 1px solid var(--skc-line);
}
@media (max-width: 900px) { .skc-result { position: static; padding: 22px; } }
.skc-result p { margin: 0; }
.skc-result-kicker { text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; font-weight: 700; color: var(--skc-muted); }
.skc-result-range { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800; line-height: 1.15; margin: 6px 0 4px !important; color: var(--skc-accent); }
.skc-dash { font-size: .55em; font-weight: 600; color: var(--skc-muted); }
.skc-result-sub { color: var(--skc-muted); font-size: .9rem; }
.skc-result-label { font-weight: 700; margin-top: 10px !important; }
.skc-upgrades { margin-top: 18px !important; font-weight: 700; font-size: .95rem; }
.skc-empty { margin: 10px 0 18px !important; color: var(--skc-muted); }
.skc .skc-filled { display: none; }
.skc.has-result .skc-filled { display: block; }
.skc.has-result .skc-empty { display: none; }

.skc-breakdown { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: .92rem; }
.skc-breakdown th, .skc-breakdown td { padding: 8px 0; border-top: 1px solid var(--skc-line); text-align: left; font-weight: 400; vertical-align: top; background: none; }
.skc-breakdown td { text-align: right; white-space: nowrap; padding-left: 12px; font-weight: 600; }

.skc-cta, .skc-lead button {
	display: block;
	width: 100%;
	padding: 14px 18px;
	border: 0;
	border-radius: 8px;
	background: var(--skc-accent);
	color: #fff !important;
	font: inherit;
	font-weight: 700;
	text-align: center;
	text-decoration: none !important;
	cursor: pointer;
}
.skc-cta:hover, .skc-lead button:hover { filter: brightness(1.1); }
.skc-phone { text-align: center; margin-top: 10px !important; font-size: .95rem; }
.skc-phone a { color: var(--skc-accent); font-weight: 700; }

.skc-lead { display: grid; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--skc-line); }
.skc-lead-title { font-weight: 700; font-size: .95rem; }
.skc-lead button { background: var(--skc-ink); }
.skc-lead button[disabled] { opacity: .6; cursor: default; }
.skc-lead-msg { font-size: .9rem; min-height: 1.2em; }
.skc-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; }
.skc-disclaimer { margin-top: 16px !important; font-size: .78rem; line-height: 1.5; color: var(--skc-muted); }

/* Price table shortcode */
.skc-table-wrap { overflow-x: auto; margin: 0 0 24px; }
.skc-price-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .95rem; }
.skc-price-table th { background: var(--skc-accent); color: #fff; text-align: left; padding: 12px; }
.skc-price-table td { padding: 12px; border-bottom: 1px solid var(--skc-line); vertical-align: top; }
.skc-price-table tbody tr:nth-child(even) td { background: var(--skc-soft); }
.skc-price-table td + td { white-space: nowrap; font-weight: 600; }
.skc-table-note { font-size: .85rem; color: var(--skc-muted); margin-top: 8px; }
