/**
 * RepairFlow pricing & coverage styles.
 *
 * Used by:
 * - [repairflow_pricing]
 * - [repairflow_callout_fees]
 * - [repairflow_coverage_map]
 */

/* -------------------------------------------------------------------------
 * Base layout
 * ---------------------------------------------------------------------- */

.rf-pricing-page {
	margin: 2rem auto;
	max-width: 1100px;
	padding: 0 1rem;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #222;
}

.rf-pricing-section {
	margin-bottom: 2.5rem;
}

.rf-pricing-section:last-child {
	margin-bottom: 0;
}

.rf-pricing-section-title {
	margin: 0 0 0.5rem;
	font-size: 1.5rem;
	font-weight: 600;
	color: #111;
}

.rf-pricing-intro {
	margin: 0 0 1.25rem;
	color: #555;
	font-size: 0.95rem;
}

.rf-pricing-note {
	margin: 0.25rem 0;
	font-size: 0.9rem;
	color: #777;
}

/* -------------------------------------------------------------------------
 * Cards / headline blocks
 * ---------------------------------------------------------------------- */

.rf-pricing-card {
	background: #fff;
	border-radius: 8px;
	border: 1px solid #e0e4ea;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
	padding: 1.25rem 1.5rem;
	display: flex;
	align-items: flex-start;
	gap: 1rem;
}

.rf-pricing-section--headline {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 1.5rem;
	align-items: stretch;
}

.rf-pricing-highlight {
	border-color: #2563eb;
	box-shadow: 0 8px 24px rgba(37, 99, 235, 0.18);
	position: relative;
	overflow: hidden;
}

.rf-pricing-highlight::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 55%);
	opacity: 0.8;
}

.rf-pricing-highlight .rf-pricing-card-body {
	position: relative;
	z-index: 1;
}

.rf-pricing-icon {
	width: 3rem;
	height: 3rem;
	border-radius: 999px;
	background: #eef2ff;
	color: #1d4ed8;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	font-weight: 700;
	flex-shrink: 0;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.rf-pricing-highlight .rf-pricing-icon {
	background: #1d4ed8;
	color: #fff;
	box-shadow: 0 0 0 4px rgba(191, 219, 254, 0.6);
}

.rf-pricing-card-body {
	flex: 1;
}

.rf-pricing-card-title {
	margin: 0 0 0.25rem;
	font-size: 1.15rem;
	font-weight: 600;
	color: #111827;
}

/* -------------------------------------------------------------------------
 * Price typography
 * ---------------------------------------------------------------------- */

.rf-price-large {
	margin: 0.25rem 0 0.5rem;
	font-size: 2rem;
	font-weight: 700;
	color: #111827;
	display: flex;
	align-items: baseline;
	gap: 0.25rem;
}

.rf-price-amount {
	letter-spacing: -0.02em;
}

.rf-price-unit {
	font-size: 0.95rem;
	font-weight: 500;
	color: #4b5563;
}

/* -------------------------------------------------------------------------
 * Grids
 * ---------------------------------------------------------------------- */

.rf-pricing-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0.75rem;
}

.rf-pricing-item {
	background: #fff;
	border-radius: 6px;
	border: 1px solid #e5e7eb;
	padding: 0.75rem 0.9rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.rf-pricing-item--appliance .rf-item-name::before,
.rf-pricing-item--fuel .rf-item-name::before {
	content: "•";
	display: inline-block;
	margin-right: 0.4rem;
	color: #6b7280;
	font-size: 0.75rem;
}

.rf-item-name {
	font-size: 0.95rem;
	font-weight: 500;
	color: #111827;
}

.rf-item-price {
	font-size: 0.95rem;
	font-weight: 600;
	color: #111827;
	white-space: nowrap;
}

/* -------------------------------------------------------------------------
 * Zones styling
 * ---------------------------------------------------------------------- */

.rf-zone-item {
	background: #fff;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
	padding: 0.85rem 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.rf-zone-primary {
	border-color: #16a34a;
	background: #ecfdf3;
}

.rf-zone-extended {
	border-color: #f97316;
	background: #fff7ed;
}

.rf-zone-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem;
}

.rf-zone-name {
	font-size: 0.98rem;
	font-weight: 600;
	color: #0f172a;
}

.rf-zone-price {
	font-size: 0.95rem;
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.rf-zone-surcharge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.15rem 0.5rem;
	border-radius: 999px;
	background: #f97316;
	color: #fff;
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.rf-zone-included {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
	background: #16a34a;
	color: #fff;
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.rf-zone-postcodes {
	margin-top: 0.25rem;
	font-size: 0.88rem;
	color: #374151;
	word-break: break-word;
}

/* Coverage map shared zone styles reuse the above classes */

.rf-zone-towns {
	margin-top: 0.2rem;
	font-size: 0.86rem;
	color: #4b5563;
}

.rf-zone-towns strong {
	font-weight: 600;
	color: #111827;
	margin-right: 0.25rem;
}

.rf-zone-towns-more {
	margin-left: 0.25rem;
	color: #6b7280;
	font-style: italic;
}

/* -------------------------------------------------------------------------
 * VAT note
 * ---------------------------------------------------------------------- */

.rf-vat-note {
	margin: 0;
	padding: 0.85rem 1rem;
	border-radius: 6px;
	background: #eff6ff;
	color: #1d4ed8;
	font-size: 0.9rem;
	border: 1px solid #bfdbfe;
}

/* -------------------------------------------------------------------------
 * Coverage map
 * ---------------------------------------------------------------------- */

.rf-coverage-map {
	margin: 2rem auto;
	max-width: 1100px;
	padding: 0 1rem;
}

.rf-coverage-checker {
	margin-bottom: 1.75rem;
	padding: 1.1rem 1.25rem;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
	background: #f9fafb;
}

.rf-checker-form {
	display: flex;
	gap: 0.75rem;
	align-items: stretch;
}

.rf-checker-input {
	flex: 1;
	min-width: 0;
	border-radius: 999px;
	border: 1px solid #d1d5db;
	padding: 0.55rem 0.9rem;
	font-size: 0.95rem;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rf-checker-input:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.35);
}

.rf-checker-btn {
	border-radius: 999px;
	border: none;
	background: #2563eb;
	color: #fff;
	padding: 0.55rem 1.1rem;
	font-size: 0.95rem;
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
	transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease;
}

.rf-checker-btn:hover {
	background: #1d4ed8;
	box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
	transform: translateY(-1px);
}

.rf-checker-btn:active {
	transform: translateY(0);
	box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.rf-coverage-result {
	margin-top: 0.75rem;
	font-size: 0.95rem;
	padding: 0.6rem 0.75rem;
	border-radius: 6px;
	background: #f3f4f6;
	color: #374151;
	min-height: 2.4rem;
	display: flex;
	align-items: center;
}

.rf-covered {
	background: #ecfdf3;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.rf-not-covered {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

/* The coverage zones inside coverage map reuse pricing grid + rf-zone-item classes */

/* -------------------------------------------------------------------------
 * Compact callout display
 * ---------------------------------------------------------------------- */

.rf-callout-inline {
	display: inline-flex;
	align-items: baseline;
	gap: 0.25rem;
	font-size: 0.95rem;
	color: #111827;
}

.rf-callout-inline .rf-callout-label {
	font-weight: 500;
	color: #4b5563;
}

.rf-callout-inline .rf-callout-price {
	font-weight: 700;
}

.rf-callout-card {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.7rem 1rem;
	border-radius: 999px;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.18);
}

.rf-callout-icon {
	width: 2.2rem;
	height: 2.2rem;
	border-radius: 999px;
	background: #1d4ed8;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	box-shadow: 0 0 0 3px rgba(191, 219, 254, 0.9);
}

.rf-callout-content {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}

.rf-callout-label {
	font-size: 0.82rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #1d4ed8;
}

.rf-callout-price {
	font-size: 1.05rem;
	font-weight: 700;
	color: #111827;
}

/* -------------------------------------------------------------------------
 * Mobile adjustments
 * ---------------------------------------------------------------------- */

@media (max-width: 600px) {
	.rf-pricing-page,
	.rf-coverage-map {
		margin: 1.5rem auto;
		padding: 0 0.75rem;
	}

	.rf-pricing-section--headline {
		grid-template-columns: minmax(0, 1fr);
	}

	.rf-pricing-card {
		padding: 1rem 1.1rem;
	}

	.rf-pricing-icon {
		width: 2.4rem;
		height: 2.4rem;
		font-size: 1.2rem;
	}

	.rf-price-large {
		font-size: 1.6rem;
	}

	.rf-pricing-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.rf-checker-form {
		flex-direction: column;
		gap: 0.5rem;
	}

	.rf-checker-btn {
		width: 100%;
		justify-content: center;
	}

	.rf-coverage-checker {
		padding: 0.9rem 1rem;
	}

	.rf-callout-card {
		width: 100%;
		justify-content: flex-start;
	}

	.rf-callout-inline {
		font-size: 0.9rem;
	}
}