/* ============================================================
   China Cargo Calculator — calculator.css
============================================================ */

/* ---- wrapper ---- */
.ccc-wrap {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 15px;
	color: #1a1a1a;
	margin: 0 auto;
}

.ccc-header {
	margin-bottom: 24px;
}
.ccc-title {
	font-size: 22px;
	font-weight: 600;
	margin: 0 0 4px;
	color: #1a1a1a;
}
.ccc-subtitle {
	font-size: 14px;
	color: #666;
	margin: 0;
}

/* ---- form rows ---- */
.ccc-form {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	padding: 24px;
}

.ccc-row {
	display: flex;
	gap: 16px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}
.ccc-row--3 .ccc-field {
	flex: 1;
}
.ccc-row--center {
	justify-content: center;
	margin-top: 8px;
}

.ccc-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.ccc-field--wide {
	flex: 2;
	min-width: 220px;
}
.ccc-field--full {
	flex: 1 1 100%;
}

.ccc-field label {
	font-size: 13px;
	font-weight: 500;
	color: #444;
}

.ccc-field input,
.ccc-field select {
	height: 40px;
	padding: 0 12px;
	border: 1px solid #d0d0d0;
	border-radius: 8px;
	font-size: 14px;
	color: #1a1a1a;
	background: #fff;
	outline: none;
	transition: border-color 0.15s;
}
.ccc-field input:focus,
.ccc-field select:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.ccc-input-group {
	display: flex;
	gap: 0;
}
.ccc-input-group input {
	border-radius: 8px 0 0 8px;
	border-right: none;
	flex: 1;
}
.ccc-input-group select {
	border-radius: 0 8px 8px 0;
	width: 90px;
}

/* ---- radio cards ---- */
.ccc-radio-group {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: space-between;
}

.ccc-radio-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 12px 20px;
	border: 1.5px solid #d0d0d0;
	border-radius: 10px;
	cursor: pointer;
	transition:
		border-color 0.15s,
		background 0.15s;
	user-select: none;
	min-width: 90px;
	background: #fafafa;
	width: 24%;
}
.ccc-radio-card input {
	display: none;
}
.ccc-radio-card--active,
.ccc-radio-card:hover {
	border-color: #2563eb;
	background: #eff6ff;
}
.ccc-rc-icon {
	font-size: 22px;
}
.ccc-rc-label {
	font-size: 13px;
	font-weight: 600;
	color: #1a1a1a;
}
.ccc-rc-sub {
	font-size: 11px;
	color: #888;
}

/* sea options */
.ccc-sea-options {
	align-items: flex-end;
	background: #f0f7ff;
	border-radius: 8px;
	padding: 12px;
	margin-bottom: 16px;
}

/* ---- buttons ---- */
.ccc-btn-calc {
	background: linear-gradient(0deg, #ee1c25, #ee1c2599);
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 12px 40px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition:
		background 0.15s,
		transform 0.1s;
}
.ccc-btn-calc:hover {
	background: linear-gradient(0deg, #ee1c25, #ee1c2599);
}
.ccc-btn-calc:active {
	transform: scale(0.98);
}

/* ---- results ---- */
.ccc-results {
	margin-top: 28px;
}
.ccc-results-header {
	display: flex;
	align-items: baseline;
	gap: 16px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}
.ccc-results-header h3 {
	font-size: 18px;
	font-weight: 600;
	margin: 0;
}
.ccc-disclaimer {
	font-size: 12px;
	color: #999;
}

/* ---- two-card grid ---- */
.ccc-cards-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 24px;
}
@media (max-width: 600px) {
	.ccc-cards-grid {
		grid-template-columns: 1fr;
	}
}

.ccc-result-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	padding: 20px;
}
.ccc-result-card--customs {
	border-color: #2563eb;
	border-width: 2px;
}

.ccc-card-badge {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 3px 10px;
	border-radius: 20px;
	margin-bottom: 12px;
}
.ccc-result-card--clean .ccc-card-badge {
	background: #f0fdf4;
	color: #15803d;
}
.ccc-result-card--customs .ccc-card-badge {
	background: #eff6ff;
	color: #1d4ed8;
}

.ccc-card-total {
	font-size: 28px;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 2px;
}
.ccc-card-usd {
	font-size: 13px;
	color: #888;
	margin-bottom: 16px;
}

/* breakdown list */
.ccc-breakdown {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid #f0f0f0;
	padding-top: 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.ccc-breakdown li {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	color: #555;
}
.ccc-bl-amount {
	font-weight: 500;
	color: #1a1a1a;
	white-space: nowrap;
	margin-left: 8px;
}

/* ---- compare bar ---- */
.ccc-compare-bar {
	margin-bottom: 24px;
}
.ccc-bar-track {
	position: relative;
	height: 10px;
	background: #f0f0f0;
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 8px;
}
.ccc-bar-fill {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	border-radius: 10px;
	transition: width 0.5s ease;
}
.ccc-bar-clean {
	background: #22c55e;
	z-index: 2;
}
.ccc-bar-customs {
	background: #2563eb;
	z-index: 1;
}

.ccc-bar-legend {
	font-size: 12px;
	color: #666;
	display: flex;
	align-items: center;
	gap: 4px;
}
.ccc-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	margin-right: 2px;
}
.ccc-dot--clean {
	background: #22c55e;
}
.ccc-dot--customs {
	background: #2563eb;
}

/* ---- timing row ---- */
.ccc-timing-row {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	background: #f8faff;
	border-radius: 10px;
	padding: 16px 20px;
	margin-bottom: 20px;
}
.ccc-timing-item {
	display: flex;
	flex-direction: column;
	gap: 3px;
	flex: 1;
	min-width: 160px;
}
.ccc-timing-label {
	font-size: 12px;
	color: #888;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}
.ccc-timing-value {
	font-size: 15px;
	font-weight: 600;
	color: #1a1a1a;
}

/* ---- notes ---- */
.ccc-notes {
	font-size: 13px;
	color: #666;
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 8px;
	padding: 12px 16px;
	margin-bottom: 20px;
}
.ccc-notes ul {
	margin: 0;
	padding: 0 0 0 18px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

/* ---- cta row ---- */
.ccc-cta-row {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}
.ccc-btn-reset,
.ccc-btn-print {
	padding: 10px 22px;
	border-radius: 8px;
	font-size: 14px;
	cursor: pointer;
	font-weight: 500;
	transition: background 0.15s;
}
.ccc-btn-reset {
	background: #f3f4f6;
	border: 1px solid #d0d0d0;
	color: #333;
}
.ccc-btn-reset:hover {
	background: #e5e7eb;
}
.ccc-btn-print {
	background: #fff;
	border: 1px solid #2563eb;
	color: #2563eb;
}
.ccc-btn-print:hover {
	background: #eff6ff;
}

/* ---- print ---- */
@media print {
	.ccc-btn-reset,
	.ccc-btn-print,
	.ccc-form {
		display: none !important;
	}
	.ccc-results {
		display: block !important;
	}
}

/* ---- responsive ---- */
@media (max-width: 480px) {
	.ccc-radio-card {
		width: 48%;
	}
	.ccc-form {
		padding: 16px;
	}
	.ccc-radio-card {
		min-width: 70px;
		padding: 10px 12px;
	}
	.ccc-card-total {
		font-size: 22px;
	}
}
