/* ==========================================================
   Vox Finance Charge Calculator Stylesheet
   vox-fc-* prefix - mirrors vox-yield-maintenance.css design
   ========================================================== */

/* ── WRAPPER ── */
.vox-tool-fc-calc {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 32px 28px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
	margin-bottom: 32px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	color: #0f172a;
}

/* ── HEADER ── */
.vox-fc-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 20px;
	border-bottom: 2px solid #f1f5f9;
	padding-bottom: 20px;
	margin-bottom: 28px;
}

.vox-fc-title-box .vox-tool-caption {
	margin: 6px 0 8px 0;
}

.vox-fc-title-box p {
	margin: 0;
	font-size: 0.95rem;
	color: #64748b;
}

.vox-fc-badge {
	display: inline-block;
	background: #fff1f2;
	color: #e11d48;
	font-size: 0.78rem;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 20px;
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* ── FORM SECTIONS ── */
.vox-fc-form-section {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 24px;
}

.vox-fc-sec-title {
	margin: 0 0 16px 0;
	font-size: 1.1rem;
	font-weight: 700;
	color: #1e293b;
	border-bottom: 1px solid #e2e8f0;
	padding-bottom: 8px;
}

/* ── INPUT GRID ── */
.vox-fc-input-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
}

/* ── LABEL HEADING (above radio groups) ── */
.vox-label-heading {
	display: block;
	font-size: 0.92rem;
	font-weight: 700;
	color: #334155;
	margin-bottom: 10px;
}

/* ── RADIO GROUP ── */
.vox-radio-group {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.vox-radio-item {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 0.93rem;
	color: #334155;
	font-weight: 500;
	padding: 8px 14px;
	border: 1.5px solid #cbd5e1;
	border-radius: 8px;
	background: #ffffff;
	transition: border-color 0.18s, background 0.18s;
	user-select: none;
}

.vox-radio-item:hover {
	border-color: #e11d48;
	background: #fff1f2;
}

.vox-radio-item input[type="radio"] {
	display: none;
}

.vox-radio-custom {
	width: 16px;
	height: 16px;
	border: 2px solid #cbd5e1;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.18s;
	flex-shrink: 0;
}

.vox-radio-item input[type="radio"]:checked ~ .vox-radio-custom {
	border-color: #e11d48;
	background: #e11d48;
	box-shadow: inset 0 0 0 3px #ffffff;
}

.vox-radio-item input[type="radio"]:checked ~ .vox-radio-label {
	color: #e11d48;
	font-weight: 700;
}

.vox-radio-item:has(input[type="radio"]:checked) {
	border-color: #e11d48;
	background: #fff1f2;
}

/* ── MARGIN HELPER ── */
.vox-mb-20 {
	margin-bottom: 20px;
}

/* ── DATE INPUT ── */
.vox-date-input {
	width: 100%;
	padding: 10px 14px;
	font-size: 0.95rem;
}

/* ── ACTION BUTTONS ROW ── */
.vox-fc-action-row {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 28px;
}

/* ── 5 SECOND LOADER BOX ── */
.vox-fc-loader-box {
	background: #fff1f2;
	border: 2px solid #fda4af;
	border-radius: 14px;
	padding: 28px 24px;
	margin-top: 28px;
	text-align: center;
	box-shadow: 0 6px 20px rgba(225, 29, 72, 0.1);
}

.vox-fc-spinner {
	display: inline-block;
	width: 42px;
	height: 42px;
	border: 4px solid #fecdd3;
	border-top-color: #e11d48;
	border-radius: 50%;
	animation: voxFcSpin 1s infinite linear;
	margin-bottom: 14px;
}

@keyframes voxFcSpin {
	0%   { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.vox-fc-loader-text h3 {
	margin: 0 0 4px 0;
	font-size: 1.1rem;
	color: #be123c;
}

.vox-fc-loader-text p {
	margin: 0 0 16px 0;
	color: #e11d48;
	font-size: 0.9rem;
}

.vox-fc-progress-bar {
	width: 100%;
	max-width: 450px;
	height: 10px;
	background: #fecdd3;
	border-radius: 10px;
	margin: 0 auto;
	overflow: hidden;
}

.vox-fc-progress-fill {
	width: 0%;
	height: 100%;
	background: linear-gradient(90deg, #e11d48, #fb7185);
	border-radius: 10px;
	transition: width 0.1s linear;
}

/* ── RESULTS WRAPPER ── */
.vox-fc-results-wrapper {
	outline: none;
}

.vox-fc-results-divider {
	height: 3px;
	background: linear-gradient(90deg, #e11d48, #fb7185, #fecdd3);
	margin: 36px 0 28px 0;
	border-radius: 3px;
}

.vox-fc-results-title {
	font-size: 1.35rem;
	font-weight: 800;
	color: #0f172a;
	margin-bottom: 24px;
}

/* ── HIGHLIGHT SUMMARY CARDS ── */
.vox-fc-highlight-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
	margin-bottom: 28px;
}

.vox-fc-summary-card {
	padding: 24px;
	border-radius: 14px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
	transition: transform 0.25s, box-shadow 0.25s;
}

.vox-fc-summary-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.card-charge {
	background: linear-gradient(135deg, #fff1f2 0%, #fecdd3 100%);
	border-color: #fda4af;
}

.card-payoff {
	background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
	border-color: #86efac;
}

.card-daily {
	background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
	border-color: #7dd3fc;
}

.vox-fc-card-header {
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	color: #475569;
	margin-bottom: 8px;
	text-transform: uppercase;
}

.vox-fc-card-value {
	font-size: 1.8rem;
	font-weight: 800;
	color: #0f172a;
	margin-bottom: 4px;
}

.card-charge  .vox-fc-card-value { color: #be123c; }
.card-payoff  .vox-fc-card-value { color: #15803d; }
.card-daily   .vox-fc-card-value { color: #0369a1; }

.vox-fc-card-sub {
	font-size: 0.85rem;
	color: #64748b;
	font-weight: 600;
}

/* ── BREAKDOWN TABLE BOX ── */
.vox-fc-breakdown-card {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 14px;
	padding: 24px;
	margin-bottom: 28px;
}

.vox-fc-disclaimer {
	font-size: 0.85rem;
	color: #64748b;
	margin-top: 0;
	margin-bottom: 20px;
	font-style: italic;
}

.vox-fc-detail-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px;
}

@media (max-width: 768px) {
	.vox-fc-detail-grid {
		grid-template-columns: 1fr;
	}
}

/* ── CHART BOX ── */
.vox-fc-chart-box {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 24px;
	margin-bottom: 28px;
}

/* ── DOWNLOAD PDF CARD ── */
.vox-fc-download-card {
	background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
	color: #ffffff;
	border-radius: 16px;
	padding: 28px;
}

.vox-fc-download-card .vox-download-header h3 {
	margin: 0 0 6px 0;
	font-size: 1.2rem;
	color: #ffffff;
}

.vox-fc-download-card .vox-download-header p {
	margin: 0 0 20px 0;
	color: #94a3b8;
	font-size: 0.92rem;
}

.vox-fc-download-card label {
	color: #cbd5e1;
}

/* ── RESPONSIVE: MOBILE FIRST ── */
@media (max-width: 600px) {
	.vox-tool-fc-calc {
		padding: 20px 14px;
	}

	.vox-fc-header {
		flex-direction: column;
	}

	.vox-fc-highlight-cards {
		grid-template-columns: 1fr;
	}

	.vox-fc-card-value {
		font-size: 1.5rem;
	}

	.vox-fc-action-row {
		flex-direction: column;
	}

	.vox-fc-action-row .vox-btn {
		width: 100%;
		justify-content: center;
	}

	.vox-radio-group {
		flex-direction: column;
	}

	.vox-fc-input-grid {
		grid-template-columns: 1fr;
	}
}
