/* ================================================================
   CPC Frontend Styles
   ================================================================ */

.cpc-wrapper {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 14px;
	max-width: 100%;
}

/* ----------------------------------------------------------------
   TABS
   ---------------------------------------------------------------- */
.cpc-tabs {
	display: flex;
	border-bottom: 2px solid #ddd;
	margin-bottom: 0;
}

.cpc-tab-btn {
	flex: 1;
	padding: 14px 20px;
	border: none;
	background: #f0f0f0;
	color: #555;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
	border-right: 1px solid #ddd;
}

.cpc-tab-btn:last-child {
	border-right: none;
}

.cpc-tab-btn.cpc-tab-active {
	background: #2c2c2c;
	color: #fff;
}

.cpc-tab-btn:not(.cpc-tab-active):hover {
	background: #e0e0e0;
	color: #222;
}

/* ----------------------------------------------------------------
   TAB PANELS
   ---------------------------------------------------------------- */
.cpc-tab-panel {
	padding: 28px 0 20px;
}

.cpc-tab-panel-hidden {
	display: none;
}

/* ----------------------------------------------------------------
   INPUT GRID
   ---------------------------------------------------------------- */
.cpc-input-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-bottom: 28px;
}

@media (max-width: 640px) {
	.cpc-input-grid {
		grid-template-columns: 1fr;
	}
}

.cpc-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.cpc-field label {
	font-weight: 600;
}

.cpc-input:focus,
.cpc-select:focus {
	outline: none;
	border-color: #a51c1c;
}

/* ----------------------------------------------------------------
   LOAN SUMMARY BOX
   ---------------------------------------------------------------- */
.cpc-loan-summary {
	background: #8b1a1a;
	border-radius: 4px;
	padding: 0;
	margin-bottom: 24px;
}

.cpc-summary-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 20px;
	border-bottom: 1px solid rgba(255,255,255,0.1);
}

.cpc-summary-row:last-child {
	border-bottom: none;
}

.cpc-summary-label {
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.cpc-summary-value {
	color: #fff;
	font-size: 18px;
	font-weight: 800;
	letter-spacing: 0.5px;
}

/* ----------------------------------------------------------------
   NOTICE / INFO BOX
   ---------------------------------------------------------------- */
.cpc-notice {
	background: #fef9e7;
	border-left: 4px solid #d4a017;
	padding: 14px 18px;
	margin-bottom: 24px;
	font-size: 14px;
	color: #555;
	border-radius: 0 3px 3px 0;
}

/* ----------------------------------------------------------------
   CONTACT FORM WRAPPER
   ---------------------------------------------------------------- */
.cpc-contact-form {
	border: 2px solid #d4a017;
	border-radius: 4px;
	padding: 24px 20px;
	margin-bottom: 32px;
	background: #fff;
}

.cpc-contact-form .wpcf7-form {
	margin: 0;
}

/* ----------------------------------------------------------------
   AMORTIZATION TABLE
   ---------------------------------------------------------------- */
.cpc-table-wrapper {
	overflow-x: auto;
	margin-top: 8px;
}

.cpc-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.cpc-table thead th {
	background: #2c2c2c;
	color: #fff;
	padding: 11px 14px;
	text-align: center;
	font-weight: 600;
	border: 1px solid #444;
	white-space: nowrap;
}

.cpc-table tbody td {
	padding: 9px 14px;
	border: 1px solid #e0e0e0;
	text-align: center;
}

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

.cpc-table tbody tr:first-child td {
	background: #fdf3f3;
	font-weight: 600;
}

.cpc-table .cpc-cell-date {
	color: #555;
	font-size: 12px;
}

.cpc-table .cpc-cell-period {
	font-weight: 700;
	color: #2c2c2c;
}

/* ----------------------------------------------------------------
   TAB 2: CAR PRICE CALCULATOR
   ---------------------------------------------------------------- */
.cpc-radio-group {
	display: flex;
	gap: 24px;
	align-items: center;
	padding: 9px 0;
}

.cpc-radio-label {
	cursor: pointer;
}

.cpc-radio-label input[type="radio"] {
	accent-color: #a51c1c;
	cursor: pointer;
}

.cpc-btn-row {
	margin: 8px 0 28px;
}

.cpc-btn-calc {
	background: #a51c1c;
	color: #fff;
	border: none;
	padding: 12px 28px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	border-radius: 3px;
	cursor: pointer;
	transition: background 0.2s;
}

.cpc-btn-calc:hover {
	background: #8b1515;
}

/* Car Price Result */
.cpc-car-result {
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	overflow: hidden;
}

.cpc-price-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 18px;
	border-bottom: 1px solid #f0f0f0;
}

.cpc-price-row:last-child {
	border-bottom: none;
}

.cpc-price-row:nth-child(even) {
	background: #f9f9f9;
}

.cpc-price-label {
	font-size: 14px;
	color: #444;
}

.cpc-price-val {
	font-size: 14px;
	font-weight: 700;
	color: #2c2c2c;
}

.cpc-price-total-row {
	background: #2c2c2c !important;
	border-top: 2px solid #a51c1c;
}

.cpc-price-total-row .cpc-price-label,
.cpc-price-total-row .cpc-price-val {
	color: #fff;
	font-size: 16px;
	font-weight: 800;
}

.cpc-price-total-row .cpc-price-val {
	color: #ffcc00;
}

/* ----------------------------------------------------------------
   CAR ERROR
   ---------------------------------------------------------------- */
.cpc-car-error {
	color: #a51c1c;
	padding: 12px 0;
	font-size: 14px;
}
