/**
 * 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-price-hero-value,
.rpc-price-hero-label,
.rpc-price-hero-subtitle,
.rpc-breakdown-title,
.rpc-discount-title,
.rpc-cta-text,
.rpc-cta-subtext,
.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 - Conversion Focused */
.rpc-price-hero {
	text-align: center;
	padding: 24px 0;
	margin-bottom: 20px;
	background: linear-gradient(135deg, #f0f6fc 0%, #ffffff 100%);
	border-radius: 8px;
	border: 2px solid #2271b1;
	position: relative;
}

.rpc-price-hero-label {
	font-size: 14px;
	color: #666;
	margin-bottom: 8px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.rpc-price-hero-value {
	font-size: 20px;
	font-weight: 700;
	color: #2271b1;
	line-height: 1.1;
	margin-bottom: 6px;
	letter-spacing: -0.5px;
}

.rpc-price-hero-subtitle {
	font-size: 14px;
	color: #666;
	font-weight: 500;
}

/* Trust Signals */
.rpc-trust-signals {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin: 20px 0;
	padding: 16px;
	background: #f9fafb;
	border-radius: 8px;
	flex-wrap: wrap;
}

.rpc-trust-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #374151;
	font-weight: 500;
}

.rpc-trust-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	background: #10b981;
	color: #fff;
	border-radius: 50%;
	font-size: 12px;
	font-weight: 700;
	flex-shrink: 0;
}

/* CTA Button */
.rpc-cta-container {
	margin: 24px 0;
	text-align: center;
}

.rpc-cta-button {
	width: 100%;
	max-width: 400px;
	padding: 18px 32px;
	background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
	color: #fff !important;
	border: none;
	border-radius: 50px;
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	margin: 0 auto;
	text-decoration: none;
	box-sizing: border-box;
}

.rpc-cta-button:hover {
	background: linear-gradient(135deg, #135e96 0%, #0d4a73 100%);
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(34, 113, 177, 0.4);
	color: #fff !important;
	text-decoration: none;
}

.rpc-cta-button:active {
	transform: translateY(0);
}

.rpc-cta-text {
	font-size: 18px;
	font-weight: 700;
}

.rpc-cta-subtext {
	font-size: 12px;
	font-weight: 500;
	opacity: 0.9;
}

/* 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;
}

/* Details Section */
.rpc-details {
	margin-top: 20px;
	font-size: 13px;
	text-align: center;
}

.rpc-details-toggle {
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 14px 24px;
	background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
	border: 2px solid #10b981;
	border-radius: 8px;
	color: #065f46;
	font-size: 18px;
	font-weight: 700;
	user-select: none;
	transition: all 0.2s ease;
	list-style: none;
}

.rpc-details-toggle::-webkit-details-marker {
	display: none;
}

.rpc-details-toggle::marker {
	display: none;
}

.rpc-details-toggle::before {
	content: "▼";
	font-size: 12px;
	color: #047857;
	transition: transform 0.2s ease;
}

.rpc-details[open] .rpc-details-toggle::before {
	transform: rotate(-180deg);
}

.rpc-details-toggle:hover {
	background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
	border-color: #059669;
	color: #047857;
}

.rpc-details-content {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #f3f4f6;
	text-align: left;
	max-width: 100%;
}

/* 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-value {
		font-size: 20px;
	}

	.rpc-trust-signals {
		flex-direction: column;
		gap: 12px;
		align-items: flex-start;
	}

	.rpc-cta-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-value {
		font-size: 18px;
	}

	.rpc-cta-button {
		padding: 16px 24px;
	}

	.rpc-cta-text {
		font-size: 16px;
	}

	.rpc-results {
		padding: 16px;
	}

	.rpc-price-hero {
		padding: 20px 16px;
	}

	.rpc-discount-value {
		font-size: 26px;
	}
}