/* ==========================================================================
   Construction Cost Calculator — "Blueprint" theme
   Signature: live estimate rendered as an architectural dimension line,
   package specs styled like a drawing spec-sheet, ruler-tick area slider.
   ========================================================================== */

.cccalc {
	--cccalc-ink: #0F2A47;
	--cccalc-ink-2: #16385E;
	--cccalc-accent: #F2994A;
	--cccalc-paper: #FBF8F2;
	--cccalc-grid: rgba(255,255,255,0.08);
	--cccalc-text-on-ink: #EAF0F6;
	--cccalc-text-muted: #9FB3C8;
	--cccalc-ink-text: #1A2430;
	--cccalc-success: #3FA774;

	position: relative;
	background: var(--cccalc-ink);
	color: var(--cccalc-text-on-ink);
	border-radius: 18px;
	overflow: hidden;
	padding: 0;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	box-sizing: border-box;
}
.cccalc *, .cccalc *::before, .cccalc *::after { box-sizing: border-box; }

/* Solid background with a subtle top glow — no grid pattern */
.cccalc-grid-bg {
	position: absolute;
	inset: 0;
	background: var(--cccalc-ink);
	pointer-events: none;
}
.cccalc-grid-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(242,153,74,0.08), transparent 70%);
}

.cccalc-inner {
	position: relative;
	z-index: 1;
	padding: 48px 40px 40px;
}

.cccalc-eyebrow {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	letter-spacing: 0.16em;
	color: var(--cccalc-accent);
	font-weight: 600;
	margin-bottom: 14px;
}

.cccalc-title.cccalc-title {
	font-family: 'Space Grotesk', sans-serif;
	font-size: clamp(26px, 3.4vw, 40px);
	line-height: 1.15;
	font-weight: 700;
	margin: 0 0 12px;
	color: #fff;
	letter-spacing: -0.01em;
}

.cccalc-subtitle {
	font-size: 16px;
	line-height: 1.6;
	color: var(--cccalc-text-muted);
	max-width: 620px;
	margin: 0 0 36px;
}

/* -------------------- Area slider block -------------------- */
.cccalc-area-block {
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.10);
	border-radius: 14px;
	padding: 24px 26px 18px;
	margin-bottom: 28px;
}

.cccalc-area-label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
	flex-wrap: wrap;
	gap: 10px;
}

.cccalc-area-label > span {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	letter-spacing: 0.14em;
	color: var(--cccalc-text-muted);
	font-weight: 600;
}

.cccalc-area-value-wrap {
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.cccalc-area-number {
	background: transparent;
	border: none;
	color: #fff;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 30px;
	font-weight: 600;
	width: 130px;
	text-align: right;
	outline: none;
	border-bottom: 1px dashed rgba(255,255,255,0.25);
	padding-bottom: 2px;
}
.cccalc-area-number:focus { border-bottom-color: var(--cccalc-accent); }
.cccalc-area-number::-webkit-outer-spin-button,
.cccalc-area-number::-webkit-inner-spin-button { opacity: 0.5; }

.cccalc-unit {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 14px;
	color: var(--cccalc-text-muted);
}

.cccalc-slider {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 6px;
	border-radius: 4px;
	background: linear-gradient(90deg, var(--cccalc-accent) 0%, var(--cccalc-accent) var(--cccalc-fill, 30%), rgba(255,255,255,0.14) var(--cccalc-fill, 30%), rgba(255,255,255,0.14) 100%);
	outline: none;
	margin: 6px 0 10px;
	cursor: pointer;
}
.cccalc-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	border: 4px solid var(--cccalc-accent);
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0,0,0,0.35);
	margin-top: -1px;
}
.cccalc-slider::-moz-range-thumb {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	border: 4px solid var(--cccalc-accent);
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}
.cccalc-slider::-moz-range-track {
	height: 6px;
	border-radius: 4px;
	background: rgba(255,255,255,0.14);
}

.cccalc-ruler {
	display: flex;
	justify-content: space-between;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 11px;
	color: var(--cccalc-text-muted);
	letter-spacing: 0.02em;
}

/* -------------------- Number of floors -------------------- */
.cccalc-floors-block {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 28px;
}

.cccalc-floors-label {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	letter-spacing: 0.14em;
	color: var(--cccalc-text-muted);
	font-weight: 600;
}

.cccalc-floors-group {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.cccalc-floor-btn {
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.14);
	color: var(--cccalc-text-on-ink);
	font-family: 'IBM Plex Mono', monospace;
	font-size: 13px;
	font-weight: 600;
	padding: 8px 16px;
	border-radius: 8px;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.cccalc-floor-btn:hover { border-color: rgba(242,153,74,0.5); }
.cccalc-floor-btn.is-active {
	background: var(--cccalc-accent);
	border-color: var(--cccalc-accent);
	color: #1A1000;
}

/* -------------------- Package tabs -------------------- */
.cccalc-pkg-tabs {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding-bottom: 6px;
	margin-bottom: 4px;
	scrollbar-width: thin;
}
.cccalc-pkg-tabs::-webkit-scrollbar { height: 5px; }
.cccalc-pkg-tabs::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

.cccalc-pkg-tab {
	position: relative;
	flex: 0 0 auto;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.12);
	border-radius: 10px;
	padding: 12px 18px 11px;
	cursor: pointer;
	text-align: left;
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 128px;
	transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
	color: var(--cccalc-text-on-ink);
	font-family: 'Inter', sans-serif;
}
.cccalc-pkg-tab:hover { border-color: rgba(242,153,74,0.5); transform: translateY(-1px); }
.cccalc-pkg-tab.is-active {
	background: var(--cccalc-accent);
	border-color: var(--cccalc-accent);
	color: #1A1000;
}
.cccalc-pkg-tab.is-active .cccalc-tab-rate { color: #1A1000; opacity: 0.75; }

.cccalc-tab-badge {
	position: absolute;
	top: -9px;
	right: 10px;
	background: var(--cccalc-ink);
	border: 1px solid var(--cccalc-accent);
	color: var(--cccalc-accent);
	font-family: 'IBM Plex Mono', monospace;
	font-size: 9px;
	letter-spacing: 0.06em;
	padding: 2px 7px;
	border-radius: 20px;
	text-transform: uppercase;
}
.cccalc-pkg-tab.is-active .cccalc-tab-badge {
	background: #1A1000;
	color: var(--cccalc-accent);
	border-color: #1A1000;
}

.cccalc-tab-name {
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 600;
	font-size: 15px;
}
.cccalc-tab-rate {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	color: var(--cccalc-text-muted);
}

/* -------------------- Package detail card -------------------- */
.cccalc-pkg-panel { margin-top: 20px; margin-bottom: 30px; position: relative; }

.cccalc-pkg-card {
	display: none;
	background: var(--cccalc-paper);
	color: var(--cccalc-ink-text);
	border-radius: 14px;
	padding: 26px 28px;
	position: relative;
}
.cccalc-pkg-card.is-active { display: block; animation: cccalc-fade 0.25s ease; }

@keyframes cccalc-fade {
	from { opacity: 0; transform: translateY(4px); }
	to { opacity: 1; transform: translateY(0); }
}

.cccalc-pkg-card-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	border-bottom: 1px dashed rgba(15,42,71,0.2);
	padding-bottom: 16px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.cccalc-pkg-name {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 4px;
	color: var(--cccalc-ink);
}

.cccalc-pkg-tagline {
	margin: 0;
	font-size: 14px;
	color: #57687C;
	max-width: 380px;
}

.cccalc-pkg-price.cccalc-pkg-price {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 26px;
	font-weight: 600;
	color: var(--cccalc-ink);
	white-space: nowrap;
}
.cccalc-pkg-price span {
	font-size: 13px;
	font-weight: 500;
	color: #7C8B9C;
}

.cccalc-pkg-features {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 24px;
}
.cccalc-pkg-features li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14.5px;
	line-height: 1.5;
	color: #33404E;
}
.cccalc-check {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	border-radius: 4px;
	background: var(--cccalc-success);
	position: relative;
	margin-top: 2px;
}
.cccalc-check::after {
	content: "";
	position: absolute;
	left: 4px;
	top: 2px;
	width: 5px;
	height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* -------------------- Estimate: dimension-line signature -------------------- */
.cccalc-estimate { margin-bottom: 8px; }

.cccalc-dimension-line {
	display: flex;
	align-items: center;
	margin-bottom: 14px;
}
.cccalc-dim-tick { width: 1px; height: 14px; background: rgba(255,255,255,0.35); }
.cccalc-dim-rule {
	flex: 1;
	height: 1px;
	background: repeating-linear-gradient(90deg, rgba(255,255,255,0.35) 0 6px, transparent 6px 12px);
	margin: 0 6px;
}

.cccalc-estimate-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
}

.cccalc-estimate-label {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	letter-spacing: 0.16em;
	color: var(--cccalc-text-muted);
	font-weight: 600;
}

.cccalc-figure.cccalc-figure {
	font-family: 'IBM Plex Mono', monospace;
	font-size: clamp(34px, 5vw, 52px);
	font-weight: 700;
	color: var(--cccalc-accent);
	letter-spacing: -0.01em;
	transition: opacity 0.15s ease;
}
.cccalc-figure.is-updating { opacity: 0.55; }

.cccalc-estimate-sub {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	color: var(--cccalc-text-muted);
	margin-top: 4px;
}

.cccalc-disclaimer {
	font-size: 12.5px;
	color: var(--cccalc-text-muted);
	line-height: 1.6;
	max-width: 640px;
	margin: 18px 0 28px;
}

/* -------------------- CTA -------------------- */
.cccalc-cta-row {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

.cccalc-cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--cccalc-accent);
	color: #1A1000;
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 600;
	font-size: 15px;
	padding: 14px 26px;
	border-radius: 10px;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	box-shadow: 0 8px 20px -8px rgba(242,153,74,0.6);
}
.cccalc-cta:hover { transform: translateY(-2px); color: #1A1000; }
.cccalc-cta-arrow { transition: transform 0.15s ease; }
.cccalc-cta:hover .cccalc-cta-arrow { transform: translateX(3px); }

.cccalc-cta-whatsapp {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: transparent;
	border: 1px solid rgba(255,255,255,0.25);
	color: #fff;
	font-family: 'Inter', sans-serif;
	font-weight: 500;
	font-size: 14px;
	padding: 13px 22px;
	border-radius: 10px;
	text-decoration: none;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.cccalc-cta-whatsapp:hover { border-color: #25D366; background: rgba(37,211,102,0.1); color: #fff; }

/* -------------------- Responsive -------------------- */
@media (max-width: 767px) {
	.cccalc-inner { padding: 32px 20px 28px; }
	.cccalc-pkg-features { grid-template-columns: 1fr; }
	.cccalc-pkg-card-head { flex-direction: column; }
	.cccalc-area-number { width: 100px; font-size: 24px; }
	.cccalc-cta-row { flex-direction: column; }
	.cccalc-cta, .cccalc-cta-whatsapp { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	.cccalc-pkg-card.is-active { animation: none; }
	.cccalc-cta, .cccalc-cta-arrow, .cccalc-pkg-tab { transition: none; }
}
