/* =========================================================
   Chauffeur Booking Form - Elementor Widget (base styles)
   Most visuals are overridable via Elementor Style controls.
   ========================================================= */
.cbew-wrap {
	--cbew-accent: #5a7241;
	--cbew-accent-dark: #4c6136;
	width: 100%;
	display: flex;
	justify-content: center;
	box-sizing: border-box;
}
.cbew-wrap *,
.cbew-wrap *::before,
.cbew-wrap *::after { box-sizing: border-box; }

.cbew-card {
	background: #fbf7ec;
	border-radius: 20px;
	padding: 28px;
	width: 100%;
	max-width: 560px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
	font-family: inherit;
}

.cbew-title {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(26px, 5vw, 40px);
	font-style: italic;
	line-height: 1.1;
	margin: 0 0 8px;
	color: #1a1a1a;
}
.cbew-subtitle { margin: 0 0 20px; color: #8a8a8a; font-size: 15px; }

/* ---- Tabs ---- */
.cbew-tabs {
	display: flex;
	background: #fff;
	border-radius: 14px;
	padding: 6px;
	margin-bottom: 16px;
	gap: 4px;
}
.cbew-tab {
	flex: 1;
	border: none;
	background: transparent;
	padding: 14px 10px;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 500;
	color: #1a1a1a;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}
.cbew-tab:hover { background: #eef1e8; }
/* Bulletproof active state (green fill, white text) even before Elementor CSS loads */
.cbew-tab.active { background-color: #5a7241; color: #fff; }

/* ---- Fields ---- */
.cbew-field {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	background: #fff;
	border-radius: 12px;
	padding: 14px 16px;
	margin-bottom: 12px;
}
.cbew-icon {
	color: var(--cbew-accent);
	font-size: 16px;
	line-height: 1.4;
	margin-top: 3px;
	flex-shrink: 0;
	width: 1.2em;
	text-align: center;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.cbew-icon svg { width: 16px; height: 16px; fill: var(--cbew-accent); }
.cbew-field-body { flex: 1; min-width: 0; }
.cbew-field-body label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 2px;
}
.cbew-field-body input,
.cbew-field-body select,
.cbew-field-body textarea {
	width: 100%;
	border: none;
	background: transparent;
	font-size: 15px;
	color: #1a1a1a;
	padding: 2px 0;
	outline: none;
	font-family: inherit;
	resize: vertical;
}
.cbew-field-body input::placeholder,
.cbew-field-body textarea::placeholder { color: #8a8a8a; }

/* Custom select with controllable caret */
.cbew-select-wrap { position: relative; }
.cbew-select-wrap select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	padding-right: 20px;
}
.cbew-caret {
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-25%);
	width: 0;
	height: 0;
	pointer-events: none;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid #8a8a8a;
}

.cbew-loc-row { display: flex; align-items: center; gap: 8px; }
.cbew-gps {
	flex-shrink: 0;
	border: none;
	background: #eef1e8;
	color: var(--cbew-accent);
	width: 30px;
	height: 30px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 15px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color .2s ease;
}
.cbew-gps svg { width: 15px; height: 15px; fill: var(--cbew-accent); }
.cbew-gps .cbew-gps-svg { width: 16px; height: 16px; color: var(--cbew-accent); fill: currentColor; }
.cbew-gps.loading { opacity: .5; pointer-events: none; }

/* ---- Row (Date / Time) ---- */
.cbew-row { display: flex; gap: 12px; }
.cbew-half { flex: 1; }

/* ---- Submit ---- */
.cbew-submit-wrap { display: flex; justify-content: center; margin-top: 8px; }
.cbew-submit {
	width: 100%;
	border: none;
	background: var(--cbew-accent);
	color: #fff;
	font-size: 17px;
	font-weight: 500;
	padding: 16px;
	border-radius: 40px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: background-color .2s ease, transform .1s ease;
}
.cbew-submit:hover { background: var(--cbew-accent-dark); }
.cbew-submit:active { transform: scale(.99); }
.cbew-submit:disabled { opacity: .6; cursor: default; }
.cbew-arrow { display: inline-flex; align-items: center; font-size: 16px; }
.cbew-arrow svg { width: 16px; height: 16px; fill: #fff; }

/* ---- Message ---- */
.cbew-message { margin-top: 12px; font-size: 14px; text-align: center; display: none; }
.cbew-message.show { display: block; }
.cbew-message.success { color: var(--cbew-accent-dark); }
.cbew-message.error { color: #c0392b; }

/* ---- Responsive ---- */
@media (max-width: 480px) {
	.cbew-card { padding: 20px; }
	.cbew-row { flex-direction: column; gap: 0; }
	.cbew-row .cbew-half { margin-bottom: 12px; }
}
