/* ==========================================================================
   Landed Cost Calculator — front-end styles
   All rules are scoped under .lcc so theme styles don't leak in or out.
   Tweak the variables below to re-skin the calculator.
   ========================================================================== */

.lcc {
	--lcc-maroon: #4A1222;          /* form button */
	--lcc-maroon-hover: #5f1a2f;
	--lcc-wine: #3D1220;            /* result card */
	--lcc-border: #e5e7eb;
	--lcc-text: #111827;
	--lcc-muted: #6b7280;
	--lcc-eyebrow: #e11d48;
	--lcc-pink-text: #f3cfdb;       /* light pinkish text on the wine card */
	--lcc-pink-muted: rgba(243, 207, 219, .68);
	--lcc-bar: #e8668f;
	--lcc-radius: 8px;              /* cards */
	--lcc-input-radius: 5px;
	--lcc-cta-radius: 999px;        /* "Order this for me" pill */
	--lcc-font: "Inter", "Hind Siliguri", "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--lcc-font-display: "Space Grotesk", "Inter", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif;

	box-sizing: border-box;
	width: 100%;
	max-width: 1040px;
	margin: 0 auto;
	font-family: var(--lcc-font);
	font-size: 14px;
	line-height: 1.5;
	color: var(--lcc-text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-align: left;
}

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

.lcc p,
.lcc h2,
.lcc h3,
.lcc ul,
.lcc li {
	margin: 0;
	padding: 0;
	text-transform: none;
	letter-spacing: normal;
}

/* ---------- Header ---------- */
.lcc .lcc-head {
	margin-bottom: 36px;
}

.lcc .lcc-eyebrow {
	margin-bottom: 10px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--lcc-eyebrow);
}

.lcc .lcc-title {
	margin-bottom: 14px;
	font-family: var(--lcc-font-display);
	font-size: clamp(30px, 5.2vw, 50px);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -.025em;
	color: var(--lcc-text);
}

.lcc .lcc-subtitle {
	font-size: 15px;
	color: #4b5563;
}

/* ---------- Layout ---------- */
.lcc .lcc-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

/* ---------- Left: form card ---------- */
.lcc .lcc-card {
	background: #fff;
	border: 1px solid var(--lcc-border);
	border-radius: var(--lcc-radius);
	padding: 28px 24px 24px;
	margin: 0;
	box-shadow: 0 1px 2px rgba(17, 24, 39, .03);
}

.lcc .lcc-card-title {
	margin-bottom: 20px;
	font-family: var(--lcc-font);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--lcc-text);
}

.lcc .lcc-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 12px;
}

.lcc .lcc-field {
	min-width: 0;
}

.lcc .lcc-field-full {
	grid-column: 1 / -1;
}

.lcc .lcc-label {
	display: block;
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--lcc-text);
}

.lcc .lcc-control {
	position: relative;
	display: flex;
	align-items: center;
	height: 38px;
	background: #fff;
	border: 1px solid var(--lcc-border);
	border-radius: var(--lcc-input-radius);
	transition: border-color .15s ease, box-shadow .15s ease;
}

.lcc .lcc-control:hover {
	border-color: #d1d5db;
}

.lcc .lcc-control:focus-within {
	border-color: var(--lcc-maroon);
	box-shadow: 0 0 0 3px rgba(74, 18, 34, .12);
}

.lcc .lcc-control input,
.lcc .lcc-control select {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	max-width: none;
	height: 100%;
	min-height: 0;
	margin: 0;
	padding: 0 12px;
	border: 0;
	border-radius: var(--lcc-input-radius);
	outline: none;
	background: transparent;
	box-shadow: none;
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: normal;
	color: var(--lcc-text);
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

.lcc .lcc-control input[type="number"] {
	-moz-appearance: textfield;
}

.lcc .lcc-control input::-webkit-outer-spin-button,
.lcc .lcc-control input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.lcc .lcc-control input::placeholder {
	color: #9ca3af;
}

.lcc .lcc-has-prefix input {
	padding-left: 8px;
}

.lcc .lcc-prefix,
.lcc .lcc-suffix {
	flex: 0 0 auto;
	color: var(--lcc-muted);
	white-space: nowrap;
	user-select: none;
	pointer-events: none;
}

.lcc .lcc-prefix {
	padding-left: 12px;
	font-size: 14px;
}

.lcc .lcc-suffix {
	padding-right: 12px;
	font-size: 11px;
}

/* Select chevron */
.lcc .lcc-select select {
	padding-right: 38px;
	cursor: pointer;
	text-overflow: ellipsis;
}

.lcc .lcc-select::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 14px;
	width: 14px;
	height: 14px;
	margin-top: -7px;
	pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}

.lcc .lcc-hint {
	margin-top: 8px;
	font-size: 12px;
	line-height: 1.4;
	color: var(--lcc-muted);
}

/* Primary button */
.lcc .lcc-btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 36px 0 0;
	padding: 12px 24px;
	min-height: 42px;
	border: 0;
	border-radius: var(--lcc-input-radius);
	background: var(--lcc-maroon);
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	cursor: pointer;
	transition: background-color .15s ease, transform .1s ease, box-shadow .15s ease;
}

.lcc .lcc-btn-primary:hover {
	background: var(--lcc-maroon-hover);
	color: #fff;
}

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

.lcc .lcc-btn-primary:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--lcc-maroon);
}

/* ---------- Right: result card ---------- */
.lcc .lcc-result {
	position: sticky;
	top: 24px;
	padding: 28px 24px 24px;
	margin: 0;
	background: var(--lcc-wine);
	border-radius: var(--lcc-radius);
	color: #fff;
	box-shadow: 0 10px 30px -12px rgba(61, 18, 32, .45);
}

.lcc .lcc-result-label {
	font-size: 11px;
	color: var(--lcc-pink-muted);
}

.lcc .lcc-total {
	margin: 10px 0 14px;
	font-family: var(--lcc-font-display);
	font-size: 34px;
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -.01em;
	color: #fff;
	font-variant-numeric: tabular-nums;
}

.lcc .lcc-total.is-pulse {
	animation: lcc-pulse .45s ease;
}

@keyframes lcc-pulse {
	0%   { transform: scale(1); }
	40%  { transform: scale(1.04); }
	100% { transform: scale(1); }
}

.lcc .lcc-meta {
	margin-bottom: 26px;
	font-size: 12px;
	color: var(--lcc-pink-muted);
}

.lcc .lcc-breakdown {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lcc .lcc-row {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
}

.lcc .lcc-row::before,
.lcc .lcc-row::marker {
	content: none;
}

.lcc .lcc-row-top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	font-size: 12px;
}

.lcc .lcc-row-label-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.lcc .lcc-row-label {
	min-width: 0;
	color: var(--lcc-pink-text);
}

.lcc .lcc-row-detail {
	color: var(--lcc-pink-muted);
}

.lcc .lcc-row-value {
	flex: 0 0 auto;
	font-weight: 500;
	color: #fff;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.lcc .lcc-tag {
	display: inline-block;
	margin-left: 2px;
	padding: 0 6px;
	border: 1px solid rgba(243, 207, 219, .3);
	border-radius: 999px;
	font-size: 10px;
	line-height: 16px;
	color: var(--lcc-pink-muted);
	vertical-align: 1px;
}

/* Contains Badges with colored dots */
.lcc .lcc-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 1.5px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.35;
	white-space: nowrap;
	transition: all .2s ease;
}

.lcc .lcc-badge-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	flex-shrink: 0;
}

/* Green: Regular */
.lcc .lcc-badge-green {
	background: rgba(16, 185, 129, 0.16);
	color: #6ee7b7;
	border: 1px solid rgba(16, 185, 129, 0.35);
}
.lcc .lcc-badge-green .lcc-badge-dot {
	background: #10b981;
	box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

/* Red: Battery */
.lcc .lcc-badge-red {
	background: rgba(239, 68, 68, 0.18);
	color: #fca5a5;
	border: 1px solid rgba(239, 68, 68, 0.4);
}
.lcc .lcc-badge-red .lcc-badge-dot {
	background: #ef4444;
	box-shadow: 0 0 6px rgba(239, 68, 68, 0.7);
}

/* Blue: Liquid */
.lcc .lcc-badge-blue {
	background: rgba(59, 130, 246, 0.18);
	color: #93c5fd;
	border: 1px solid rgba(59, 130, 246, 0.4);
}
.lcc .lcc-badge-blue .lcc-badge-dot {
	background: #3b82f6;
	box-shadow: 0 0 6px rgba(59, 130, 246, 0.7);
}

/* Amber: Chemical */
.lcc .lcc-badge-amber {
	background: rgba(245, 158, 11, 0.18);
	color: #fcd34d;
	border: 1px solid rgba(245, 158, 11, 0.4);
}
.lcc .lcc-badge-amber .lcc-badge-dot {
	background: #f59e0b;
	box-shadow: 0 0 6px rgba(245, 158, 11, 0.7);
}

/* Purple: Copy / Replica / Brand */
.lcc .lcc-badge-purple {
	background: rgba(168, 85, 247, 0.18);
	color: #d8b4fe;
	border: 1px solid rgba(168, 85, 247, 0.4);
}
.lcc .lcc-badge-purple .lcc-badge-dot {
	background: #a855f7;
	box-shadow: 0 0 6px rgba(168, 85, 247, 0.7);
}

.lcc .lcc-bar {
	position: relative;
	height: 3px;
	margin-top: 9px;
	border-radius: 3px;
	background: rgba(255, 255, 255, .07);
	overflow: hidden;
}

.lcc .lcc-bar-fill {
	display: block;
	height: 100%;
	min-width: 0;
	border-radius: 3px;
	background: var(--lcc-bar);
	transition: width .5s cubic-bezier(.2, .8, .2, 1);
}

.lcc .lcc-disclaimer {
	margin: 22px 0 18px;
	font-size: 10.5px;
	line-height: 1.5;
	color: var(--lcc-pink-muted);
}

.lcc .lcc-btn-cta,
.lcc .lcc-btn-cta:visited {
	display: block;
	width: 100%;
	padding: 11px 16px;
	border: 0;
	border-radius: var(--lcc-cta-radius);
	background: #fff;
	color: var(--lcc-maroon);
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	box-shadow: none;
	transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.lcc .lcc-btn-cta:hover {
	background: #fdf0f4;
	color: var(--lcc-maroon);
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .35);
}

.lcc .lcc-btn-cta:focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px var(--lcc-wine), 0 0 0 4px #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
	.lcc .lcc-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.lcc .lcc-result {
		position: static;
	}
}

@media (max-width: 560px) {
	.lcc .lcc-head {
		margin-bottom: 24px;
	}

	.lcc .lcc-fields {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.lcc .lcc-field-full {
		grid-column: 1;
	}

	.lcc .lcc-card,
	.lcc .lcc-result {
		padding: 22px 18px 20px;
	}

	.lcc .lcc-control {
		height: 44px;
	}

	/* 16px prevents iOS zoom-on-focus */
	.lcc .lcc-control input,
	.lcc .lcc-control select {
		font-size: 16px;
	}

	.lcc .lcc-btn-primary {
		width: 100%;
		margin-top: 28px;
	}

	.lcc .lcc-total {
		font-size: 30px;
	}

	.lcc .lcc-btn-cta {
		padding: 13px 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lcc .lcc-bar-fill,
	.lcc .lcc-btn-cta,
	.lcc .lcc-btn-primary {
		transition: none;
	}

	.lcc .lcc-total.is-pulse {
		animation: none;
	}
}
