/*
 * Connect Calcs — shared styling for Dual Rental, Bridging & Lifetime calculators.
 * Brand colours: #5b7dbc (primary) / #23294c (dark).
 *
 * Century Gothic is a licensed (Monotype) font, not a web-safe font, so it
 * cannot be bundled here. The stack below falls back to close metric
 * matches. If you hold a web-font licence, uncomment the @font-face block
 * and point it at your own .woff2 files.
 */

/*
@font-face {
	font-family: 'Century Gothic';
	src: url('../fonts/century-gothic.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Century Gothic';
	src: url('../fonts/century-gothic-bold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
*/

.ccl-calc {
	--ccl-primary: #5b7dbc;
	--ccl-dark: #23294c;
	--ccl-border: #dde2ee;
	--ccl-muted: #6b7290;

	font-family: 'Century Gothic', CenturyGothic, AppleGothic, Futura, Questrial, Verdana, Arial, sans-serif;
	background: #ffffff;
	color: var(--ccl-dark);
	border: 1px solid var(--ccl-border);
	border-radius: 12px;
	padding: 1.75rem;
	max-width: 860px;
	box-shadow: 0 4px 18px rgba(35, 41, 76, 0.07);
	box-sizing: border-box;
}

.ccl-calc * {
	box-sizing: border-box;
}

.ccl-title {
	margin: 0 0 0.35rem;
	color: var(--ccl-dark);
	font-size: 1.45rem;
	font-weight: 700;
	line-height: 1.25;
}

.ccl-subtitle {
	margin: 0 0 1.5rem;
	color: var(--ccl-muted);
	font-size: 0.95rem;
	line-height: 1.5;
}

.ccl-optional {
	font-weight: 400;
	color: var(--ccl-muted);
	font-size: 0.8rem;
}

.ccl-hint {
	margin: 0.4rem 0 0;
	color: var(--ccl-muted);
	font-size: 0.78rem;
	line-height: 1.4;
}

.ccl-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1.1rem 1.6rem;
	margin-bottom: 1.5rem;
}

.ccl-field label {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--ccl-dark);
}

.ccl-input {
	width: 100%;
	padding: 0.65rem 0.8rem;
	border: 1px solid #ccd3e3;
	border-radius: 7px;
	background: #fff;
	color: var(--ccl-dark);
	font-family: inherit;
	font-size: 0.95rem;
}

.ccl-input:focus {
	outline: none;
	border-color: var(--ccl-primary);
	box-shadow: 0 0 0 3px rgba(91, 125, 188, 0.2);
}

.ccl-btn {
	display: inline-block;
	background: var(--ccl-primary);
	color: #ffffff;
	border: none;
	padding: 0.8rem 1.9rem;
	border-radius: 7px;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.ccl-btn:hover,
.ccl-btn:focus-visible {
	background: var(--ccl-dark);
}

.ccl-results {
	margin-top: 1.6rem;
	padding-top: 1.5rem;
	border-top: 2px solid #eef1f8;
}

.ccl-result-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	padding: 0.45rem 0;
	font-size: 0.95rem;
}

.ccl-result-row span {
	color: var(--ccl-muted);
}

.ccl-result-row strong {
	color: var(--ccl-dark);
	white-space: nowrap;
}

.ccl-result-row.ccl-highlight {
	margin-top: 0.3rem;
	padding-top: 0.75rem;
	border-top: 1px solid #eef1f8;
	font-weight: 700;
}

.ccl-result-row.ccl-highlight strong {
	color: var(--ccl-primary);
	font-size: 1.05rem;
}

.ccl-badge {
	display: inline-block;
	margin-top: 1rem;
	padding: 0.5rem 1.1rem;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.85rem;
}

.ccl-badge-pass {
	background: #e3f4e9;
	color: #1e7a3d;
}

.ccl-badge-fail {
	background: #fbe7e7;
	color: #a32323;
}

.ccl-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 1rem;
	font-size: 0.88rem;
}

.ccl-table th,
.ccl-table td {
	text-align: left;
	padding: 0.55rem 0.65rem;
	border-bottom: 1px solid #eef1f8;
}

.ccl-table th {
	background: var(--ccl-dark);
	color: #ffffff;
	font-weight: 700;
}

.ccl-table tbody tr:nth-child(even) {
	background: #f7f9fc;
}

.ccl-disclaimer {
	margin: 1.5rem 0 0;
	font-size: 0.78rem;
	line-height: 1.55;
	color: var(--ccl-muted);
}
