/* ==========================================================================
   Car Shipping Calculators — Base Styles
   ========================================================================== */

.csc-calculator {
	max-width: 560px;
	margin: 1.5rem auto;
	padding: 1.5rem;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 15px;
	color: #333;
	box-sizing: border-box;
}

.csc-calculator *,
.csc-calculator *::before,
.csc-calculator *::after {
	box-sizing: inherit;
}

.csc-calculator h3 {
	margin: 0 0 1rem;
	font-size: 1.25rem;
	font-weight: 600;
	color: #1d2327;
}

.csc-calculator .csc-desc {
	margin: 0 0 1rem;
	color: #666;
	font-size: 0.9rem;
}

/* ----- Form fields ----- */
.csc-form {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.csc-field {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.csc-field label,
.csc-field legend {
	font-weight: 500;
	font-size: 0.9rem;
}

.csc-field input[type="text"],
.csc-field input[type="number"],
.csc-field select {
	width: 100%;
	padding: 0.55rem 0.7rem;
	border: 1px solid #bbb;
	border-radius: 4px;
	font-size: 0.95rem;
	transition: border-color 0.15s;
}

.csc-field input:focus,
.csc-field select:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 1px #0073aa;
}

/* Checkbox groups */
.csc-checkboxes {
	border: none;
	padding: 0;
	margin: 0;
}

.csc-checkboxes label {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 400;
	cursor: pointer;
	margin-bottom: 0.3rem;
}

/* ----- Buttons ----- */
.csc-btn {
	display: inline-block;
	padding: 0.65rem 1.3rem;
	background: #0073aa;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s;
	text-align: center;
}

.csc-btn:hover,
.csc-btn:focus {
	background: #005f8d;
}

.csc-btn-secondary {
	background: #f0f0f0;
	color: #333;
}

.csc-btn-secondary:hover,
.csc-btn-secondary:focus {
	background: #ddd;
}

/* ----- Result container ----- */
.csc-result {
	margin-top: 1.2rem;
	padding: 1rem;
	border-radius: 6px;
	background: #f7f9fb;
	border: 1px solid #e0e6ed;
}

.csc-result h4 {
	margin: 0 0 0.5rem;
	font-size: 1rem;
}

.csc-result .csc-value {
	font-size: 1.5rem;
	font-weight: 700;
	color: #0073aa;
}

.csc-result table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 0.5rem;
	font-size: 0.9rem;
}

.csc-result table th,
.csc-result table td {
	text-align: left;
	padding: 0.4rem 0.5rem;
	border-bottom: 1px solid #e5e5e5;
}

.csc-result table th {
	font-weight: 600;
}

.csc-result .csc-tag {
	display: inline-block;
	padding: 0.15rem 0.5rem;
	border-radius: 3px;
	font-size: 0.8rem;
	font-weight: 600;
}

.csc-tag--green  { background: #d4edda; color: #155724; }
.csc-tag--yellow { background: #fff3cd; color: #856404; }
.csc-tag--red    { background: #f8d7da; color: #721c24; }

/* ----- Loading state ----- */
.csc-loading {
	opacity: 0.6;
	pointer-events: none;
}

/* ----- Responsive ----- */
@media (max-width: 480px) {
	.csc-calculator {
		padding: 1rem;
	}

	.csc-result .csc-value {
		font-size: 1.25rem;
	}
}
