/**
 * Ride Pricing Calculator Styles
 * 
 * @package Ride_Pricing_Calculator
 */

/* Main Wrapper */
.rpc-calculator-wrapper {
	max-width: 800px;
	margin: 0 auto;
	padding: 20px;
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Headlines - Montserrat */
h1, h2, h3, h4, h5, h6,
.rpc-breakdown-title,
.rpc-discount-title,
.rpc-price-original-value,
.rpc-discount-value {
	font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}


/* Form Styles */
.rpc-calculator-form {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 30px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rpc-form-group {
	margin-bottom: 20px;
}

.rpc-label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #333;
	font-size: 14px;
}

.rpc-required {
	color: #d63638;
}

.rpc-input {
	width: 100%;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 16px;
	box-sizing: border-box;
	transition: border-color 0.3s ease;
}

.rpc-input:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}

.rpc-input-group {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.rpc-input-group .rpc-input {
	flex: 1;
}

/* Stop Groups */
.rpc-stop-group {
	margin-bottom: 15px;
	padding: 15px;
	background: #f9f9f9;
	border-radius: 4px;
	border: 1px solid #e5e5e5;
}

.rpc-remove-stop {
	background: #d63638;
	color: #fff;
	border: none;
	border-radius: 50%;
	width: 36px;
	height: 36px;
	font-size: 20px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.3s ease;
	flex-shrink: 0;
}

.rpc-remove-stop:hover {
	background: #b32d2e;
}

/* Buttons */
.rpc-button-group {
	display: flex;
	gap: 10px;
	margin-top: 25px;
	flex-wrap: wrap;
}

.rpc-button {
	padding: 12px 24px;
	border: none;
	border-radius: 50px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	flex: 0.5;
	transition: all 0.3s ease;
	text-align: center;
}

.rpc-button-primary {
	background: #2271b1;
	color: #fff;
	flex: 0.5;
	min-width: 150px;
}

.rpc-button-primary:hover:not(:disabled) {
	background: #135e96;
}

.rpc-button-primary:disabled {
	background: #ccc;
	cursor: not-allowed;
}

.rpc-button-secondary {
	background: #f0f0f1;
	color: #2c3338;
	border: 1px solid #ddd;
}

.rpc-button-secondary:hover {
	background: #e5e5e5;
}

/* Loading Indicator */
.rpc-loading {
	text-align: center;
	padding: 30px;
	margin-top: 20px;
}

.rpc-spinner {
	border: 4px solid #f3f3f3;
	border-top: 4px solid #2271b1;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
	margin: 0 auto 15px;
}

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

.rpc-loading p {
	color: #666;
	margin: 0;
}

/* Results */
.rpc-results {
	margin-top: 20px;
	padding: 24px;
	background: #fff;
	border-radius: 12px;
	border: 2px solid #e5e5e5;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.rpc-price-breakdown {
	background: transparent;
	padding: 0;
	border-radius: 0;
}

/* Hero Price Section (per screenshot) */
.rpc-price-hero {
	text-align: center;
	padding: 26px 18px;
	margin-bottom: 20px;
	background: #fff;
	border-radius: 14px;
	border: 1px solid #e7e7e7;
	position: relative;
}

/* New hero structure */
.rpc-price-hero-block {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.rpc-price-hero-spacer {
	height: 22px;
}

.rpc-price-hero-title {
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: #111827;
}

.rpc-price-hero-price {
	font-size: 30px;
	font-weight: 800;
	color: #111827;
	letter-spacing: -0.4px;
	line-height: 1.1;
}

.rpc-hero-button {
	width: 100%;
	max-width: 420px;
	padding: 14px 18px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.rpc-hero-button--download {
	background: #fff;
	border: 2px solid #1f2937;
	color: #111827 !important;
	box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.rpc-hero-button--download:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(17,24,39,0.12);
	text-decoration: none;
}

.rpc-hero-button--whatsapp {
	background: #7fb314;
	border: 2px solid #6b9a10;
	color: #0b1a00 !important;
	box-shadow: 0 10px 20px rgba(127,179,20,0.18);
}

.rpc-hero-button--whatsapp:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 26px rgba(127,179,20,0.24);
	text-decoration: none;
}

.rpc-hero-phone {
	margin-top: 6px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.3px;
	text-transform: uppercase;
	color: #111827;
}

.rpc-hero-phone-link {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Original Price - Less Prominent */
.rpc-price-original {
	text-align: center;
	margin: 16px 0;
	padding: 12px;
	background: #f9fafb;
	border-radius: 6px;
}

.rpc-price-original-label {
	font-size: 13px;
	color: #6b7280;
	margin-right: 8px;
}

.rpc-price-original-value {
	font-size: 18px;
	color: #9ca3af;
	text-decoration: line-through;
	font-weight: 600;
}

/* Price Breakdown */
.rpc-price-breakdown-section {
	margin-bottom: 20px;
}

.rpc-breakdown-title {
	font-size: 14px;
	font-weight: 700;
	color: #374151;
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid #e5e5e5;
}

.rpc-breakdown-row {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	font-size: 13px;
	color: #6b7280;
}

.rpc-breakdown-row span:first-child {
	color: #374151;
}

.rpc-breakdown-row span:last-child {
	font-weight: 600;
	color: #111827;
}

.rpc-breakdown-total {
	border-top: 1px solid #e5e5e5;
	border-bottom: 1px solid #e5e5e5;
	margin-top: 8px;
	padding-top: 12px;
	padding-bottom: 12px;
	font-weight: 600;
}

.rpc-breakdown-total span {
	color: #111827;
	font-size: 14px;
}

.rpc-breakdown-discount {
	color: #10b981;
	font-weight: 600;
}

.rpc-breakdown-discount span:last-child {
	color: #10b981;
}

.rpc-breakdown-final {
	margin-top: 8px;
	padding-top: 12px;
	font-size: 15px;
	font-weight: 700;
	color: #2271b1;
}

.rpc-breakdown-final span:last-child {
	color: #2271b1;
	font-size: 16px;
}

.rpc-breakdown-vat {
	text-align: right;
	font-size: 12px;
	color: #9ca3af;
	margin-top: 4px;
}

/* Discount Info (App-only) */
.rpc-discount-info {
	margin-top: 20px;
	margin-bottom: 20px;
	padding: 16px;
	background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
	border-radius: 8px;
	border: 2px solid #10b981;
	text-align: center;
}

.rpc-discount-title {
	font-size: 15px;
	font-weight: 700;
	color: #065f46;
	margin-bottom: 12px;
}

.rpc-discount-price {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.rpc-discount-label {
	font-size: 14px;
	color: #047857;
	font-weight: 500;
}

.rpc-discount-value {
	font-size: 32px;
	font-weight: 800;
	color: #059669;
	letter-spacing: -0.5px;
	line-height: 1.2;
	text-shadow: 0 1px 2px rgba(5, 150, 105, 0.15);
}

.rpc-discount-savings {
	font-size: 12px;
	color: #047857;
	font-weight: 600;
}

.rpc-discount-message {
	font-size: 12px;
	color: #065f46;
	line-height: 1.5;
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid #86efac;
}

.rpc-discount-download {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #86efac;
}

.rpc-download-link {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	padding: 8px 16px;
	background: #10b981;
	color: #ffffff;
	border-radius: 50px;
	transition: all 0.2s ease;
}

.rpc-download-link:hover {
	background: #059669;
	color: #ffffff;
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.rpc-download-link:active {
	transform: translateY(0);
}

/* Additional Info */
.rpc-additional-info {
	margin-top: 16px;
	padding: 16px;
	background: #f9fafb;
	border-radius: 6px;
	border-left: 3px solid #2271b1;
}

.rpc-info-item {
	font-size: 13px;
	color: #374151;
	line-height: 1.6;
	margin-bottom: 8px;
}

.rpc-info-item:last-child {
	margin-bottom: 0;
}

.rpc-info-item strong {
	color: #111827;
	font-weight: 600;
}

/* Rate Limit Warning */
.rpc-rate-limit-warning {
	margin-top: 15px;
	padding: 10px;
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 4px;
	color: #856404;
	font-size: 13px;
}

/* Error Messages */
.rpc-error {
	margin-top: 20px;
	padding: 15px;
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	border-radius: 4px;
	color: #721c24;
}

.rpc-error p {
	margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
	.rpc-calculator-wrapper {
		padding: 15px;
	}

	.rpc-calculator-form {
		padding: 20px;
	}

	.rpc-button-group {
		flex-direction: column;
	}

	.rpc-button {
		width: 100%;
	}

	.rpc-input-group {
		flex-direction: column;
	}

	.rpc-remove-stop {
		align-self: flex-end;
	}

	.rpc-price-hero-price {
		font-size: 28px;
	}

	.rpc-hero-button {
		max-width: 100%;
	}

	.rpc-discount-price {
		flex-direction: column;
		gap: 4px;
	}

	.rpc-discount-value {
		font-size: 28px;
	}
}

@media (max-width: 480px) {
	.rpc-calculator-form {
		padding: 15px;
	}

	.rpc-results {
		padding: 12px;
		margin-top: 12px;
	}

	.rpc-price-hero-title {
		font-size: 13px;
	}

	.rpc-price-hero-price {
		font-size: 26px;
	}

	.rpc-results {
		padding: 16px;
	}

	.rpc-price-hero {
		padding: 22px 14px;
	}

	.rpc-discount-value {
		font-size: 26px;
	}
}