/* Royal Enterprise Service - Rental Booking System front-end styles.
   Colors are set as CSS variables at the top so they're easy to match
   to the final site theme / logo colors. */

:root {
	--rrb-bg-dark: #0b0b14;
	--rrb-card-bg: #15151f;
	--rrb-accent-blue: #1b3fe0;
	--rrb-accent-red: #e8352b;
	--rrb-text-light: #ffffff;
	--rrb-text-muted: #a9a9bd;
	--rrb-border: #2a2a3a;
	--rrb-success: #2e7d32;
	--rrb-warning: #ef6c00;
	--rrb-danger: #c62828;
}

/* Vehicle grid — clean minimal card style */
.rrb-vehicle-grid-clean {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
	margin: 30px 0;
}

.rrb-vcard {
	display: block;
	background: var(--rrb-card-bg);
	border: 1px solid var(--rrb-border);
	border-radius: 10px;
	padding: 18px;
	text-decoration: none;
	color: var(--rrb-text-light);
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.rrb-vcard:hover {
	border-color: var(--rrb-accent-blue);
	transform: translateY(-2px);
	color: var(--rrb-text-light);
}

.rrb-vcard-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 14px;
}

.rrb-spec-pill {
	display: inline-block;
	background: #1e1e2c;
	border: 1px solid var(--rrb-border);
	border-radius: 20px;
	padding: 5px 12px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--rrb-text-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rrb-status-pill {
	flex-shrink: 0;
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #fff;
}

.rrb-status-available { background: var(--rrb-success); }
.rrb-status-reserved  { background: var(--rrb-warning); }
.rrb-status-rented    { background: var(--rrb-danger); }

.rrb-status-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #fff;
}

.rrb-vcard-image {
	position: relative;
	aspect-ratio: 16 / 10;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
}

.rrb-vcard-image img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.rrb-vcard-noimg {
	color: var(--rrb-text-muted);
	font-size: 13px;
}

.rrb-demo-badge {
	position: absolute;
	bottom: -4px;
	left: 0;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.05em;
	background: #000;
	border: 1px solid #fff;
	color: #fff;
}

.rrb-vcard-footer {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	border-top: 1px solid var(--rrb-border);
	padding-top: 14px;
}

.rrb-vcard-name {
	font-size: 17px;
	font-weight: 700;
	text-decoration: none;
	letter-spacing: 0.01em;
}

.rrb-vcard-price {
	font-size: 17px;
	font-weight: 800;
	color: var(--rrb-accent-blue);
	white-space: nowrap;
}

.rrb-vcard-price span {
	font-size: 12px;
	font-weight: 500;
	color: var(--rrb-text-muted);
}

.rrb-btn {
	display: inline-block;
	text-align: center;
	padding: 12px 20px;
	border-radius: 6px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-size: 13px;
	text-decoration: none;
	cursor: pointer;
	border: 2px solid transparent;
}

.rrb-btn-primary {
	background: var(--rrb-accent-blue);
	color: #fff;
}

.rrb-btn-primary:hover {
	background: #1631b0;
	color: #fff;
}

.rrb-btn-disabled {
	background: transparent;
	border-color: var(--rrb-border);
	color: var(--rrb-text-muted);
	cursor: not-allowed;
}

.rrb-empty {
	color: var(--rrb-text-muted);
}

.rrb-view-all-wrap {
	text-align: center;
	margin: 10px 0 30px;
}

.rrb-view-all-wrap .rrb-btn {
	display: inline-block;
	padding: 14px 32px;
}

/* Booking form */
.rrb-booking-form-wrap {
	max-width: 640px;
	margin: 30px auto;
	background: var(--rrb-card-bg);
	border: 1px solid var(--rrb-border);
	border-radius: 10px;
	padding: 30px;
	color: var(--rrb-text-light);
}

.rrb-field {
	margin-bottom: 18px;
}

.rrb-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.rrb-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 14px;
}

.rrb-field input[type="text"],
.rrb-field input[type="tel"],
.rrb-field input[type="email"],
.rrb-field input[type="date"],
.rrb-field input[type="file"],
.rrb-field select {
	width: 100%;
	padding: 10px 12px;
	background: #0e0e18;
	border: 1px solid var(--rrb-border);
	border-radius: 6px;
	color: var(--rrb-text-light);
	font-size: 14px;
}

.rrb-checkbox-group {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 8px 16px;
}

.rrb-checkbox {
	font-weight: 400;
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.rrb-field-terms .rrb-checkbox {
	align-items: flex-start;
}

.rrb-hint {
	font-size: 12px;
	color: var(--rrb-text-muted);
	margin: 6px 0 0;
}

.rrb-submit-btn {
	width: 100%;
	border: none;
	margin-top: 6px;
}

.rrb-security-note {
	font-size: 12px;
	color: var(--rrb-text-muted);
	text-align: center;
	margin-top: 18px;
}

.rrb-form-message {
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 18px;
	font-size: 14px;
}

.rrb-msg-success {
	background: rgba(46, 125, 50, 0.15);
	border: 1px solid var(--rrb-success);
	color: #a5d6a7;
}

.rrb-msg-error {
	background: rgba(198, 40, 40, 0.15);
	border: 1px solid var(--rrb-danger);
	color: #ef9a9a;
}

@media (max-width: 480px) {
	.rrb-field-row {
		grid-template-columns: 1fr;
	}
}

/* Single vehicle detail page */
.rrb-single-vehicle {
	max-width: 1100px;
	margin: 30px auto;
	padding: 0 20px;
	color: var(--rrb-text-light);
}

.rrb-breadcrumb {
	font-size: 13px;
	color: var(--rrb-text-muted);
	margin-bottom: 20px;
}

.rrb-breadcrumb a {
	color: var(--rrb-text-muted);
	text-decoration: underline;
}

.rrb-single-vehicle-grid {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 40px;
}

.rrb-main-photo {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	background: #000;
	aspect-ratio: 4 / 3;
}

.rrb-main-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rrb-no-photo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: var(--rrb-text-muted);
}

.rrb-thumb-row {
	display: flex;
	gap: 10px;
	margin-top: 10px;
	flex-wrap: wrap;
}

.rrb-thumb {
	width: 80px;
	height: 60px;
	object-fit: cover;
	border-radius: 6px;
	cursor: pointer;
	border: 2px solid transparent;
	opacity: 0.7;
}

.rrb-thumb.active,
.rrb-thumb:hover {
	border-color: var(--rrb-accent-blue);
	opacity: 1;
}

.rrb-single-vehicle-info h1 {
	margin: 0 0 8px;
	font-size: 30px;
}

.rrb-single-price {
	font-size: 28px;
	font-weight: 800;
	margin: 0;
}

.rrb-single-price span {
	font-size: 14px;
	font-weight: 400;
	color: var(--rrb-text-muted);
}

.rrb-single-deposit {
	font-size: 13px;
	color: var(--rrb-text-muted);
	margin: 4px 0 16px;
}

.rrb-platform-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0 20px;
}

.rrb-tag {
	background: rgba(27, 63, 224, 0.15);
	border: 1px solid var(--rrb-accent-blue);
	color: #a9baff;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 20px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.rrb-single-description {
	font-size: 15px;
	line-height: 1.7;
	color: var(--rrb-text-muted);
	margin-bottom: 20px;
}

.rrb-info-notice {
	background: rgba(239, 108, 0, 0.12);
	border: 1px solid var(--rrb-warning);
	color: #ffcc9c;
	padding: 14px 16px;
	border-radius: 8px;
	font-size: 14px;
}

.rrb-payment-confirmed-banner {
	background: rgba(46, 125, 50, 0.12);
	border: 1px solid var(--rrb-success);
	color: #a5d6a7;
	padding: 16px;
	border-radius: 8px;
	font-size: 15px;
	text-align: center;
}

.rrb-single-booking-section {
	margin-top: 50px;
	border-top: 1px solid var(--rrb-border);
	padding-top: 40px;
}

.rrb-single-booking-section h2 {
	text-align: center;
	margin-bottom: 10px;
}

.rrb-fixed-vehicle-display {
	padding: 10px 12px;
	background: #0e0e18;
	border: 1px solid var(--rrb-border);
	border-radius: 6px;
	font-size: 14px;
	color: var(--rrb-text-light);
}

@media (max-width: 782px) {
	.rrb-single-vehicle-grid {
		grid-template-columns: 1fr;
	}
}

/* Flatpickr dark theme override to match site colors */
.flatpickr-calendar {
	background: var(--rrb-card-bg) !important;
	border: 1px solid var(--rrb-border) !important;
	box-shadow: 0 8px 24px rgba(0,0,0,0.5) !important;
	color: var(--rrb-text-light) !important;
}

.flatpickr-months,
.flatpickr-weekdays {
	background: var(--rrb-card-bg) !important;
}

.flatpickr-day {
	color: var(--rrb-text-light) !important;
}

.flatpickr-day.flatpickr-disabled {
	color: #55556a !important;
	text-decoration: line-through;
}

.flatpickr-day.today {
	border-color: var(--rrb-accent-blue) !important;
}

.flatpickr-day.selected {
	background: var(--rrb-accent-blue) !important;
	border-color: var(--rrb-accent-blue) !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
	color: var(--rrb-text-light) !important;
}

span.flatpickr-weekday {
	color: var(--rrb-text-muted) !important;
}

/* Booking wizard (single vehicle detail page) */
.rrb-wizard-wrap {
	max-width: 640px;
	margin: 30px auto;
	background: var(--rrb-card-bg);
	border: 1px solid var(--rrb-border);
	border-radius: 10px;
	padding: 30px;
	color: var(--rrb-text-light);
}

.rrb-wizard-progress {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 30px;
}

.rrb-wizard-step-indicator {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	color: var(--rrb-text-muted);
}

.rrb-step-circle {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 2px solid var(--rrb-border);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 14px;
}

.rrb-step-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	white-space: nowrap;
}

.rrb-wizard-step-indicator.active .rrb-step-circle {
	border-color: var(--rrb-accent-blue);
	background: var(--rrb-accent-blue);
	color: #fff;
}

.rrb-wizard-step-indicator.active .rrb-step-label {
	color: var(--rrb-text-light);
}

.rrb-wizard-step-indicator.completed .rrb-step-circle {
	border-color: var(--rrb-success);
	background: var(--rrb-success);
	color: #fff;
}

.rrb-wizard-line {
	width: 40px;
	height: 2px;
	background: var(--rrb-border);
	margin: 0 6px;
	margin-bottom: 20px;
}

.rrb-wizard-vehicle-summary {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #0e0e18;
	border: 1px solid var(--rrb-border);
	border-radius: 8px;
	padding: 12px 14px;
	margin-bottom: 20px;
}

.rrb-wizard-vehicle-summary img {
	width: 60px;
	height: 45px;
	object-fit: cover;
	border-radius: 4px;
}

.rrb-wizard-vehicle-summary div {
	display: flex;
	flex-direction: column;
	font-size: 14px;
}

.rrb-wizard-vehicle-summary span {
	color: var(--rrb-text-muted);
	font-size: 13px;
}

.rrb-price-summary {
	background: #0e0e18;
	border: 1px solid var(--rrb-border);
	border-radius: 8px;
	padding: 16px;
	margin: 20px 0;
}

.rrb-price-row {
	display: flex;
	justify-content: space-between;
	font-size: 14px;
	color: var(--rrb-text-muted);
	padding: 6px 0;
}

.rrb-price-total {
	border-top: 1px solid var(--rrb-border);
	margin-top: 8px;
	padding-top: 12px;
	font-size: 17px;
	font-weight: 800;
	color: var(--rrb-text-light);
}

.rrb-wizard-nav {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 10px;
}

.rrb-wizard-nav .rrb-btn {
	flex: 1;
}

.rrb-btn-outline {
	background: transparent;
	border: 2px solid var(--rrb-border);
	color: var(--rrb-text-light);
}

.rrb-btn-outline:hover {
	border-color: var(--rrb-text-muted);
}

.rrb-review-box {
	background: #0e0e18;
	border: 1px solid var(--rrb-border);
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 20px;
}

.rrb-review-row {
	display: flex;
	justify-content: space-between;
	font-size: 14px;
	padding: 6px 0;
}

.rrb-review-row span {
	color: var(--rrb-text-muted);
}

.rrb-review-box hr {
	border: none;
	border-top: 1px solid var(--rrb-border);
	margin: 8px 0;
}

/* ------------------------------------------------------------------
   SMS consent block (Twilio A2P 10DLC)
   Kept visually distinct so the disclosure is obvious to both the
   customer and the Twilio reviewer checking the live page.
   ------------------------------------------------------------------ */
.rrb-field-sms-consent {
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 14px 16px;
	background: #fafafa;
}

.rrb-sms-consent-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
}

.rrb-sms-consent-label input[type="checkbox"] {
	margin-top: 3px;
	flex: 0 0 auto;
}

.rrb-sms-consent-text {
	font-size: 13px;
	line-height: 1.6;
	color: #444;
}

.rrb-optional-tag {
	display: inline-block;
	background: #eceff1;
	color: #546e7a;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: 1px 7px;
	border-radius: 3px;
	margin-right: 6px;
	vertical-align: 1px;
}

.rrb-sms-consent-links {
	margin: 10px 0 0 28px;
}

.rrb-sms-consent-links a {
	text-decoration: underline;
}

/* Price range banner (shown instead of per-card prices) */
.rrb-price-range-banner {
	text-align: center;
	font-size: 18px;
	font-weight: 600;
	color: #222;
	margin: 0 0 24px;
	letter-spacing: .01em;
}
