/* Coastal Breeze Chauffeur Quote Manager - Frontend Styles */

.cbcq-quote-form-wrapper {
	--cbcq-primary: #16181D;
	--cbcq-accent: #F5C24D;
	--cbcq-bg: #F7F7F5;
	--cbcq-white: #FFFFFF;
	--cbcq-text: #16181D;
	--cbcq-muted: #6B7280;

	max-width: 780px;
	margin: 0 auto;
	padding: 24px 16px 48px;
	color: var(--cbcq-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
}

.cbcq-quote-form-wrapper *,
.cbcq-quote-form-wrapper *::before,
.cbcq-quote-form-wrapper *::after {
	box-sizing: border-box;
}

/* Defensive reset: some browsers paint buttons with an OS accent-colored
   border/outline by default. Every button in the form sets its own look
   explicitly below, so strip the UA default first. */
.cbcq-quote-form-wrapper button {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	border: none;
	outline: none;
	background: none;
	background-color: #16181d;
	font: inherit;
	color: #fff;
    border-radius: 10px;
}

/* Live region / announcements (visually hidden but accessible) */
.cbcq-live-region {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Honeypot - hidden from real users */
.cbcq-honeypot {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	height: 0;
	overflow: hidden;
}

/* Progress indicator */
.cbcq-progress {
	margin-bottom: 32px;
}

.cbcq-progress-steps {
	display: flex;
	justify-content: space-between;
	margin-bottom: 12px;
}

.cbcq-progress-step {
	flex: 1;
	text-align: center;
	position: relative;
	font-weight: 700;
	font-size: 15px;
	color: var(--cbcq-muted);
	transition: color 0.25s ease;
}

.cbcq-progress-step em {
	display: block;
	font-style: normal;
	font-weight: 500;
	font-size: 12px;
	margin-top: 4px;
	letter-spacing: 0.3px;
	text-transform: uppercase;
}

.cbcq-progress-step.is-active,
.cbcq-progress-step.is-complete {
	color: var(--cbcq-primary);
}

.cbcq-progress-bar {
	height: 6px;
	background: rgba(20, 32, 51, 0.08);
	border-radius: 999px;
	overflow: hidden;
}

.cbcq-progress-bar span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--cbcq-accent), var(--cbcq-primary));
	border-radius: 999px;
	transition: width 0.35s ease;
}

/* Step transitions - CSS animations restart automatically whenever the
   browser flips [hidden] off, so each step fades/lifts in as it appears. */
.cbcq-step {
	animation: cbcq-fade-in 0.3s ease;
}

@keyframes cbcq-fade-in {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.cbcq-step {
		animation: none;
	}
}

/* Card - subtle lift on hover for a modern, tactile feel. */
.cbcq-card {
	background: var(--cbcq-white);
	border-radius: 20px;
	padding: 32px;
	box-shadow: 0 10px 40px rgba(20, 32, 51, 0.08), 0 2px 8px rgba(20, 32, 51, 0.04);
	margin-bottom: 20px;
	transition: box-shadow 0.25s ease;
}

.cbcq-card:hover {
	box-shadow: 0 16px 48px rgba(20, 32, 51, 0.12), 0 4px 14px rgba(20, 32, 51, 0.06);
}

.cbcq-card-heading {
	margin: 0 0 24px;
	font-size: 22px;
	font-weight: 700;
	color: var(--cbcq-primary);
	letter-spacing: -0.3px;
}

/* Fields */
.cbcq-field {
	margin-bottom: 22px;
}

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

.cbcq-field label,
.cbcq-counter-field label,
.cbcq-toggle-field label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 8px;
	color: var(--cbcq-text);
}

.cbcq-required {
	color: var(--cbcq-accent);
}

.cbcq-field-helper {
	margin: -4px 0 8px;
	font-size: 12px;
	color: var(--cbcq-muted);
}

.cbcq-field input[type="text"],
.cbcq-field input[type="email"],
.cbcq-field input[type="tel"],
.cbcq-field input[type="date"],
.cbcq-field input[type="time"],
.cbcq-field select {
	width: 100%;
	padding: 14px 16px;
	font-size: 16px;
	border: 2px solid rgba(20, 32, 51, 0.12);
	border-radius: 12px;
	background: var(--cbcq-bg);
	color: var(--cbcq-text);
	min-height: 52px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	appearance: none;
	-webkit-appearance: none;
}

.cbcq-field select {
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath fill='%236B7280' d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 40px;
}

.cbcq-field input:focus,
.cbcq-field select:focus {
	outline: none;
	border-color: var(--cbcq-accent);
	box-shadow: 0 0 0 4px rgba(201, 154, 33, 0.15);
	background: var(--cbcq-white);
}

.cbcq-input-icon {
	position: relative;
}

.cbcq-input-icon input {
	padding-left: 44px !important;
}

.cbcq-input-icon::before {
	content: "";
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	background-size: contain;
	background-repeat: no-repeat;
	opacity: 0.55;
	pointer-events: none;
}

.cbcq-icon-location::before {
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath fill='%2316181D' d='M12 2C8.1 2 5 5.1 5 9c0 5.2 7 13 7 13s7-7.8 7-13c0-3.9-3.1-7-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3e%3c/svg%3e");
}

.cbcq-icon-destination::before {
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath fill='%2316181D' d='M12 2 2 22l10-4 10 4z'/%3e%3c/svg%3e");
}

.cbcq-icon-calendar::before {
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath fill='%2316181D' d='M7 2v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2H7zM5 9h14v11H5V9z'/%3e%3c/svg%3e");
}

.cbcq-icon-clock::before {
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath fill='%2316181D' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 10.5-4.2 2.5-1-1.7 3.4-2V6h2z'/%3e%3c/svg%3e");
}

.cbcq-icon-flight::before {
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath fill='%2316181D' d='M21 16v-2l-8-5V3.5A1.5 1.5 0 0 0 11.5 2 1.5 1.5 0 0 0 10 3.5V9l-8 5v2l8-2.5V19l-2.5 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5z'/%3e%3c/svg%3e");
}

.cbcq-error-message {
	color: #b32d2e;
	font-size: 13px;
	margin: 6px 0 0;
	min-height: 1px;
}

.cbcq-form-general-error {
	color: #b32d2e;
	font-size: 14px;
	margin: 12px 0 0;
	text-align: center;
}

.cbcq-field.has-error input,
.cbcq-field.has-error select {
	border-color: #b32d2e;
}

/* Counters */
.cbcq-counter-field {
	margin-bottom: 24px;
}

.cbcq-counter {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	background: var(--cbcq-bg);
	border: 2px solid rgba(20, 32, 51, 0.10);
	border-radius: 999px;
	padding: 4px;
}

.cbcq-counter-btn {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--cbcq-white);
	border: none;
	outline: none;
	box-shadow: 0 1px 2px rgba(20, 32, 51, 0.08);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	font-size: 20px;
	line-height: 1;
	font-weight: 700;
	color: var(--cbcq-primary);
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

.cbcq-counter-btn:hover {
	background: var(--cbcq-accent);
	color: var(--cbcq-primary);
	box-shadow: 0 4px 12px rgba(245, 194, 77, 0.45);
}

.cbcq-counter-btn:active {
	transform: scale(0.88);
}

.cbcq-counter-btn:focus-visible {
	outline: 3px solid var(--cbcq-accent);
	outline-offset: 2px;
}

.cbcq-counter-btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
	box-shadow: none;
	transform: none;
}

.cbcq-counter input[type="number"] {
	appearance: none;
	-moz-appearance: textfield;
	width: 56px;
	height: 40px;
	border: none;
	outline: none;
	background: transparent;
	text-align: center;
	font-size: 17px;
	font-weight: 700;
	color: var(--cbcq-text);
	transition: transform 0.18s ease, color 0.18s ease;
}

.cbcq-counter input[type="number"]::-webkit-outer-spin-button,
.cbcq-counter input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.cbcq-counter input.cbcq-counter-pulse {
	animation: cbcq-counter-pulse 0.24s ease;
}

@keyframes cbcq-counter-pulse {
	0% { transform: scale(1); }
	45% { transform: scale(1.28); color: var(--cbcq-accent); }
	100% { transform: scale(1); }
}

/* Toggle switch */
.cbcq-toggle-field {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.cbcq-switch {
	position: relative;
	display: inline-block;
	width: 52px;
	height: 30px;
}

.cbcq-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.cbcq-switch-slider {
	position: absolute;
	cursor: pointer;
	inset: 0;
	background: rgba(20, 32, 51, 0.2);
	border-radius: 999px;
	transition: background 0.2s ease;
}

.cbcq-switch-slider::before {
	content: "";
	position: absolute;
	width: 24px;
	height: 24px;
	left: 3px;
	top: 3px;
	background: var(--cbcq-white);
	border-radius: 50%;
	transition: transform 0.2s ease;
	box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.cbcq-switch input:checked + .cbcq-switch-slider {
	background: var(--cbcq-accent);
}

.cbcq-switch input:checked + .cbcq-switch-slider::before {
	transform: translateX(22px);
}

.cbcq-switch input:focus-visible + .cbcq-switch-slider {
	outline: 3px solid var(--cbcq-primary);
	outline-offset: 2px;
}

.cbcq-child-seats-panel {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px dashed rgba(20, 32, 51, 0.15);
}

/* Phone field */
.cbcq-phone-field {
	display: flex;
	gap: 8px;
}

.cbcq-phone-field select {
	width: auto;
	flex: 0 0 96px;
	max-width: 96px;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
	padding-left: 14px !important;
	padding-right: 26px !important;
}

.cbcq-phone-field input {
	flex: 1;
	min-width: 0;
}

@media (max-width: 480px) {
	.cbcq-phone-field select {
		flex: 0 0 84px;
		max-width: 84px;
		padding-left: 10px !important;
		padding-right: 22px !important;
	}
}

/* Checkbox / privacy */
.cbcq-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-weight: 400 !important;
	font-size: 14px;
	cursor: pointer;
}

.cbcq-checkbox-label input[type="checkbox"] {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	margin-top: 2px;
	accent-color: var(--cbcq-accent);
}

.cbcq-checkbox-label a {
	color: var(--cbcq-primary);
	font-weight: 700;
	text-decoration: underline;
}

/* Buttons */
.cbcq-step-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.cbcq-btn {
	appearance: none;
	border: none;
	border-radius: 999px;
	padding: 16px 32px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	min-height: 52px;
	transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.cbcq-btn-primary {
	background: var(--cbcq-accent);
	color: var(--cbcq-primary);
	box-shadow: 0 6px 20px rgba(201, 154, 33, 0.35);
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.cbcq-btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 26px rgba(201, 154, 33, 0.45);
}

.cbcq-btn-primary:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.cbcq-btn-secondary {
	background: transparent;
	color: var(--cbcq-primary);
	border: 2px solid rgba(20, 32, 51, 0.2);
}

.cbcq-btn-secondary:hover {
	background: rgba(20, 32, 51, 0.05);
}

.cbcq-btn-spinner {
	display: none;
	width: 18px;
	height: 18px;
	border: 3px solid rgba(20, 32, 51, 0.25);
	border-top-color: var(--cbcq-primary);
	border-radius: 50%;
	animation: cbcq-spin 0.7s linear infinite;
}

.cbcq-submit-btn.is-loading .cbcq-btn-spinner {
	display: inline-block;
}

.cbcq-submit-btn.is-loading .cbcq-btn-label {
	opacity: 0.7;
}

@keyframes cbcq-spin {
	to { transform: rotate(360deg); }
}

/* Success message */
.cbcq-success-message {
	text-align: center;
	background: var(--cbcq-white);
	border-radius: 20px;
	padding: 48px 32px;
	box-shadow: 0 10px 40px rgba(20, 32, 51, 0.08);
}

.cbcq-success-message svg {
	color: var(--cbcq-accent);
	margin-bottom: 16px;
}

.cbcq-success-text {
	font-size: 18px;
	font-weight: 600;
	color: var(--cbcq-primary);
	margin: 0 0 8px;
}

.cbcq-success-reference {
	font-size: 14px;
	color: var(--cbcq-muted);
}

/* Google Places autocomplete dropdown - keep above card shadows */
.pac-container {
	z-index: 100000;
	border-radius: 12px;
	margin-top: 4px;
	font-family: inherit;
}

/* Responsive */
@media (max-width: 640px) {
	.cbcq-quote-form-wrapper {
		padding: 12px 8px 32px;
	}

	.cbcq-card {
		padding: 20px;
		border-radius: 16px;
	}

	.cbcq-field-row {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.cbcq-progress-step {
		font-size: 13px;
	}

	.cbcq-progress-step em {
		font-size: 10px;
	}

	.cbcq-btn {
		width: 100%;
		justify-content: center;
	}

	.cbcq-step-actions {
		flex-direction: column-reverse;
	}

	.cbcq-btn-primary {
		margin-left: 0;
		width: 100%;
	}
}
