/* Scoped styles for Taxi Booking Form Widget */
.tbf-371-wrapper {
	font-family: 'Roboto', sans-serif;
	width: 100vw; /* Full viewport width */
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	display: flex;
	background: #fff;
	box-shadow: 0 5px 20px rgba(0,0,0,0.05);
	overflow: hidden;
}

/* Left Column */
.tbf-371-form-container {
	flex: 0 0 50%; /* 50% width */
	padding: 40px 5%; /* Reduced padding */
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* Right Column */
.tbf-371-map-container {
	flex: 1;
	background: #f0f0f0;
	position: relative;
	min-height: 500px; /* Reduced min-height */
}

.tbf-371-map-sticky {
	position: sticky;
	top: 0;
	height: 100%;
	width: 100%;
}

#tbf-371-map-frame {
	height: 100%;
	min-height: 500px;
	width: 100%;
	border: 0;
}

/* Steps Indicator */
.tbf-371-steps {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px; /* Reduced margin */
	padding: 0 10px;
	max-width: 650px; /* Increased max-width for 2-col layout */
	width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.tbf-371-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	z-index: 2;
	cursor: pointer;
}

.tbf-371-step-indicator {
	width: 30px; /* Smaller step circle */
	height: 30px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid #e0e0e0;
	color: #aaa;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	margin-bottom: 8px;
	transition: all 0.3s ease;
	font-size: 13px;
}

.tbf-371-step.active .tbf-371-step-indicator,
.tbf-371-step.completed .tbf-371-step-indicator {
	background: #0B0BA8; /* Primary Color */
	border-color: #0B0BA8; /* Primary Color */
	color: #fff;
}

.tbf-371-step-label {
	font-size: 11px;
	color: #999;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.8px;
}

.tbf-371-step.active .tbf-371-step-label {
	color: #333;
	font-weight: 700;
}

.tbf-371-step-line {
	flex: 1;
	height: 2px;
	background: #eee;
	margin: 0 15px;
	position: relative;
	top: -15px;
	z-index: 1;
}

/* Form Content */
.tbf-371-form {
	max-width: 650px; /* Increased max-width */
	width: 100%;
	margin: 0 auto;
}

.tbf-371-step-content {
	display: none;
	animation: fadeIn 0.4s ease-out;
}

.tbf-371-step-content.active {
	display: block;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

h3 {
	margin-top: 0;
	margin-bottom: 20px; /* Reduced margin */
	color: #222;
	font-size: 22px; /* Smaller heading */
	font-weight: 700;
}

.tbf-371-form-group {
	margin-bottom: 12px; /* Compact margin */
	position: relative;
}

.tbf-371-row {
	display: flex;
	gap: 10px; /* Smaller gap */
}

.tbf-371-form-group.half {
	flex: 1;
}

.tbf-371-form-group.third {
	flex: 1; /* 3 columns support */
}

label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
	color: #444;
	font-size: 11px; /* Smaller label */
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

input,
select,
textarea {
	width: 100%;
	padding: 8px 10px; /* Smaller padding */
	border: 1px solid #e1e1e1;
	border-radius: 6px;
	font-size: 13px; /* Smaller text */
	background: #f9f9f9;
	transition: all 0.3s;
	box-sizing: border-box;
    height: 38px; /* Fixed compact height */
}

textarea {
    height: auto;
}

input:focus,
select:focus,
textarea:focus {
	border-color: #0B0BA8;
	background: #fff;
	outline: none;
	box-shadow: 0 0 0 3px rgba(11, 11, 168, 0.1);
}

/* Autocomplete Suggestions */
.tbf-371-autocomplete-wrapper {
	position: relative;
}

.tbf-371-suggestions {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #ddd;
	border-top: none;
	border-radius: 0 0 8px 8px;
	z-index: 10;
	max-height: 200px;
	overflow-y: auto;
	box-shadow: 0 10px 25px rgba(0,0,0,0.1);
	display: none;
}

.tbf-371-suggestion-item {
	padding: 10px 15px;
	cursor: pointer;
	border-bottom: 1px solid #f5f5f5;
	font-size: 13px;
	color: #555;
	display: flex;
	align-items: center;
}

.tbf-371-suggestion-item:last-child {
	border-bottom: none;
}

.tbf-371-suggestion-item i {
	margin-right: 10px;
	color: #bbb;
}

.tbf-371-suggestion-item:hover {
	background-color: #0B0BA8;
	color: #fff;
}

.tbf-371-suggestion-item:hover i {
	color: #fff;
}

/* Geolocation Button */
.tbf-371-pickup-input-wrap {
	position: relative;
	display: flex;
	align-items: center;
}
.tbf-371-pickup-input-wrap input {
	padding-right: 38px;
}
.tbf-371-geolocate-btn {
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	padding: 6px;
	cursor: pointer;
	color: #999;
	transition: color 0.2s;
	box-shadow: none;
	height: auto;
	width: auto;
	min-width: 0;
}
.tbf-371-geolocate-btn:hover {
	color: #0B0BA8;
	transform: translateY(-50%);
	box-shadow: none;
}
.tbf-371-geolocate-btn.loading {
	animation: spin371 1s linear infinite;
}
@keyframes spin371 {
	from { transform: translateY(-50%) rotate(0deg); }
	to   { transform: translateY(-50%) rotate(360deg); }
}

/* Calendar + Sidebar Row */
.tbf-371-datetime-row {
	gap: 16px;
	align-items: flex-start;
}
.tbf-371-calendar-col {
	flex: 0 0 280px;
}
.tbf-371-sidebar-col {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* Inline Calendar */
.tbf-371-calendar {
	border: 1px solid #e1e1e1;
	border-radius: 10px;
	background: #f9f9f9;
	padding: 12px;
	user-select: none;
}
.tbf-371-cal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}
.tbf-371-cal-title {
	font-weight: 700;
	font-size: 14px;
	color: #222;
}
.tbf-371-cal-nav {
	background: none;
	border: 1px solid #e1e1e1;
	border-radius: 6px;
	width: 30px;
	height: 30px;
	font-size: 18px;
	cursor: pointer;
	color: #555;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: all 0.2s;
	box-shadow: none;
	line-height: 1;
}
.tbf-371-cal-nav:hover {
	background: #0B0BA8;
	color: #fff;
	border-color: #0B0BA8;
	transform: none;
	box-shadow: none;
}
.tbf-371-cal-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	text-align: center;
	font-size: 10px;
	font-weight: 700;
	color: #999;
	text-transform: uppercase;
	margin-bottom: 4px;
	letter-spacing: 0.5px;
}
.tbf-371-cal-days {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
}
.tbf-371-cal-day {
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s;
	color: #333;
	border: none;
	background: none;
	padding: 0;
	box-shadow: none;
}
.tbf-371-cal-day:hover:not(.disabled):not(.selected) {
	background: rgba(11, 11, 168, 0.08);
	transform: none;
	box-shadow: none;
}
.tbf-371-cal-day.today:not(.selected) {
	border: 2px solid #0B0BA8;
	font-weight: 700;
}
.tbf-371-cal-day.selected {
	background: #0B0BA8;
	color: #fff;
	font-weight: 700;
	animation: calPulse371 2s ease-in-out infinite;
}
@keyframes calPulse371 {
	0%, 100% { box-shadow: 0 0 0 0 rgba(11, 11, 168, 0.4); }
	50%      { box-shadow: 0 0 0 6px rgba(11, 11, 168, 0); }
}
.tbf-371-cal-day.disabled {
	color: #ccc;
	cursor: default;
	pointer-events: none;
}
.tbf-371-cal-day.other-month {
	color: #ccc;
}

/* Time Grid */
.tbf-371-time-hint {
	font-size: 11px;
	color: #666;
	margin: 0 0 6px;
}
.tbf-371-time-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 4px;
	max-height: 160px;
	overflow-y: auto;
	border: 1px solid #e1e1e1;
	border-radius: 8px;
	padding: 6px;
	background: #f9f9f9;
}
.tbf-371-time-cell {
	padding: 6px 2px;
	border: 1px solid transparent;
	border-radius: 6px;
	background: none;
	font-size: 12px;
	font-weight: 500;
	color: #444;
	cursor: pointer;
	transition: all 0.15s;
	text-align: center;
	box-shadow: none;
	height: auto;
}
.tbf-371-time-cell:hover {
	background: rgba(11, 11, 168, 0.08);
	transform: none;
	box-shadow: none;
}
.tbf-371-time-cell.selected {
	background: #0B0BA8;
	color: #fff;
	font-weight: 700;
}
.tbf-371-time-current {
	font-size: 11px;
	color: #888;
	margin-top: 6px;
}

/* Passengers Selector */
.tbf-371-pax-selector {
	display: flex;
	align-items: center;
	gap: 0;
	border: 1px solid #e1e1e1;
	border-radius: 8px;
	background: #f9f9f9;
	overflow: hidden;
	width: fit-content;
}
.tbf-371-pax-btn {
	width: 40px;
	height: 40px;
	border: none;
	background: none;
	font-size: 18px;
	font-weight: 700;
	color: #555;
	cursor: pointer;
	transition: all 0.15s;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border-radius: 0;
	box-shadow: none;
}
.tbf-371-pax-btn:hover {
	background: #0B0BA8;
	color: #fff;
	transform: none;
	box-shadow: none;
}
.tbf-371-pax-value {
	width: 40px;
	text-align: center;
	font-size: 16px;
	font-weight: 700;
	color: #222;
	border-left: 1px solid #e1e1e1;
	border-right: 1px solid #e1e1e1;
	line-height: 40px;
}

/* Vehicle Preview */
.tbf-371-vehicle-preview {
	background: #eef7fb;
	padding: 12px 20px;
	border-radius: 6px;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	color: #0B0BA8;
	font-size: 14px;
	font-weight: 500;
}

.tbf-371-vehicle-preview i {
	font-size: 20px;
	margin-right: 12px;
}

/* Summary */
.tbf-371-summary-item {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px solid #f0f0f0;
}

.tbf-371-summary-label {
	font-weight: 500;
	color: #777;
	font-size: 14px;
}

.tbf-371-summary-value {
	font-weight: 600;
	color: #333;
	text-align: right;
	font-size: 14px;
}

.tbf-371-total-price {
	font-size: 24px;
	font-weight: 800;
	color: #0B0BA8;
	margin-top: 20px;
	text-align: right;
	padding-top: 15px;
	border-top: 2px solid #f0f0f0;
}
.tbf-371-price-disclaimer {
	font-size: 13px;
	color: #888;
	text-align: right;
	margin-top: 6px;
	font-style: italic;
}

/* Promo code */
.tbf-371-promo-section {
	margin-top: 20px;
	padding: 16px;
	background: #f9f9f9;
	border: 1px solid #e1e1e1;
	border-radius: 8px;
}
.tbf-371-promo-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #666;
	margin-bottom: 8px;
}
.tbf-371-promo-row {
	display: flex;
	gap: 8px;
	align-items: center;
}
.tbf-371-promo-row input {
	flex: 1;
	max-width: 200px;
	padding: 8px 12px;
	border: 1px solid #e1e1e1;
	border-radius: 6px;
	font-size: 14px;
	text-transform: uppercase;
}
.tbf-371-promo-apply {
	background: #c0392b !important;
	color: #fff !important;
	border: none !important;
}
.tbf-371-promo-apply:hover {
	background: #a93226 !important;
}
.tbf-371-promo-result {
	margin-top: 8px;
	font-size: 13px;
	font-weight: 500;
}

/* Actions */
.tbf-371-actions {
	margin-top: 30px;
	display: flex;
	justify-content: space-between;
}

.tbf-371-actions.right {
	justify-content: flex-end;
}

button {
	padding: 12px 25px; /* Smaller button */
	border-radius: 6px;
	border: none;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s;
	letter-spacing: 0.5px;
}

.tbf-371-wrapper button.tbf-371-btn-primary,
.tbf-371-btn-primary {
	background-color: #0B0BA8;
	color: #ffffff !important; /* Force white text with high specificity */
	box-shadow: 0 4px 15px rgba(11, 11, 168, 0.25);
}

.tbf-371-wrapper button.tbf-371-btn-primary:hover,
.tbf-371-btn-primary:hover {
	background-color: #08087D;
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(11, 11, 168, 0.35);
    color: #ffffff !important;
}

.tbf-371-btn-secondary {
	background-color: #f5f5f5;
	color: #666;
}

.tbf-371-btn-secondary:hover {
	background-color: #e5e5e5;
	color: #333;
}

/* Create Account Section */
.tbf-371-create-account-section {
	margin-top: 16px;
	padding: 14px 16px;
	background: #f8f9ff;
	border: 1px solid #e0e0ff;
	border-radius: 8px;
}

.tbf-371-create-account-toggle {
	display: flex;
	align-items: center;
}

.tbf-371-checkbox-label {
	display: flex !important;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 13px;
	color: #444;
	text-transform: none !important;
	letter-spacing: 0 !important;
	font-weight: 500 !important;
	margin-bottom: 0 !important;
}

.tbf-371-checkbox-label input[type="checkbox"] {
	width: 16px;
	height: 16px;
	min-width: 16px;
	flex-shrink: 0;
	accent-color: #0B0BA8;
	cursor: pointer;
}

.tbf-371-account-fields {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #e0e0ff;
}

.tbf-371-required {
	color: #ff4d4d;
}

/* Login Prompt */
.tbf-371-login-prompt {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
	padding: 10px 16px;
	background: #f8f9ff;
	border: 1px solid #e0e0ff;
	border-radius: 8px;
	font-size: 13px;
	color: #555;
}

.tbf-371-btn-login {
	display: inline-block;
	padding: 6px 16px;
	background: #0B0BA8;
	color: #fff !important;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	transition: all 0.3s;
}

.tbf-371-btn-login:hover {
	background: #08087D;
	text-decoration: none;
	color: #fff !important;
}

/* Responsive */
@media (max-width: 1024px) {
	.tbf-371-form-container {
		padding: 30px 5%;
	}
}

@media (max-width: 900px) {
	.tbf-371-wrapper {
		flex-direction: column;
	}

	.tbf-371-map-container {
		height: 300px;
		min-height: 300px;
		order: -1;
		position: relative;
		z-index: 0;
	}

	.tbf-371-map-sticky {
		position: relative;
		height: 300px;
	}

	#tbf-371-map,
	#tbf-371-map-frame {
		min-height: 300px !important;
		height: 300px !important;
	}

	.tbf-371-form-container {
		flex: none;
		width: 100%;
		padding: 30px 20px;
		position: relative;
		z-index: 1;
		background: #fff;
	}

	.tbf-371-step-content,
	.tbf-371-steps {
		max-width: 100%;
	}
}

@media (max-width: 600px) {
	.tbf-371-row {
		flex-direction: column;
		gap: 0;
	}
	.tbf-371-calendar-col {
		flex: none;
		width: 100%;
	}
	.tbf-371-datetime-row {
		gap: 12px;
	}
	.tbf-371-time-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}