/* Ramsay Law Calculators: on-screen layout. Printing uses its own unstyled document. */
.rcalc {
	box-sizing: border-box;
	max-width: 760px;
	margin: 0 auto 24px;
	padding: 24px;
	background: #fff;
	color: #222;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 12px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
	font-size: 16px;
	line-height: 1.4;
}

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

.rcalc-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.rcalc .rcalc-title {
	margin: 0;
	font-size: 22px;
	line-height: 1.25;
}

/* Site teal (#008fa8), deepened slightly so white text meets 4.5:1 contrast. */
.rcalc .rcalc-print {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 9px 18px;
	border: 1px solid #007a8f;
	border-radius: 6px;
	background: #007a8f;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.rcalc .rcalc-print:hover {
	border-color: #005f70;
	background: #005f70;
	color: #fff;
}

.rcalc .rcalc-print:focus-visible {
	outline: 3px solid rgba(0, 143, 168, 0.4);
	outline-offset: 2px;
}

.rcalc .rcalc-print-icon {
	display: block;
	flex: none;
	width: 18px;
	height: 18px;
}

.rcalc-inputs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 20px;
}

.rcalc-field {
	display: block;
	margin: 0;
}

.rcalc-label {
	display: block;
	margin-bottom: 6px;
	font-weight: 700;
}

.rcalc-money {
	display: flex;
	align-items: center;
	gap: 6px;
}

.rcalc-currency {
	font-weight: 700;
}

.rcalc .rcalc-money input,
.rcalc select {
	width: 100%;
	margin: 0;
	padding: 8px 10px;
	border: 1px solid rgba(0, 0, 0, 0.25);
	border-radius: 6px;
	background: #fff;
	color: #222;
	font-size: 16px;
}

.rcalc-section {
	margin-bottom: 16px;
}

.rcalc .rcalc-section-title {
	margin: 0 0 6px;
	padding-bottom: 4px;
	border-bottom: 2px solid #111;
	font-size: 17px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.rcalc .rcalc-table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
}

.rcalc .rcalc-table td {
	padding: 5px 0;
	border: 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	background: transparent;
	text-align: left;
	vertical-align: top;
}

.rcalc .rcalc-table td.rcalc-amount {
	width: 9em;
	text-align: right;
	white-space: nowrap;
}

.rcalc .rcalc-subtotal td {
	font-weight: 700;
	border-bottom: 0;
}

.rcalc-total {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 8px;
	background: #111;
	color: #fff;
	font-size: 19px;
	font-weight: 700;
}

.rcalc-call {
	padding: 14px 16px;
	border-radius: 8px;
	background: #f4f4f4;
	font-weight: 700;
}

.rcalc-note {
	margin: 16px 0 0;
	color: #666;
	font-size: 13px;
}

@media (max-width: 600px) {
	.rcalc {
		padding: 16px;
	}

	.rcalc-inputs {
		grid-template-columns: 1fr;
	}
}
