@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

.oacc-booking-wrapper {
	display: flex;
	gap: 30px;
	max-width: 1100px;
	margin: 0 auto;
	font-family: 'Outfit', 'Open Sans', 'Ubuntu', sans-serif;
	color: #17394b;
	box-sizing: border-box;
}

.oacc-booking-wrapper * {
	box-sizing: border-box;
}

.oacc-booking-main {
	flex: 2;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 20px 40px rgba(15, 43, 64, 0.04);
	border: 1px solid rgba(18, 180, 231, 0.08);
	padding: 40px;
}

.oacc-booking-sidebar {
	flex: 1;
}

.oacc-summary-box {
	background: #fff;
	border: 1px solid rgba(18, 180, 231, 0.1);
	border-radius: 16px;
	padding: 30px 25px;
	box-shadow: 0 20px 40px rgba(15, 43, 64, 0.04);
	position: sticky;
	top: 30px;
}

.oacc-summary-box h3 {
	margin-top: 0;
	margin-bottom: 20px;
	border-bottom: 2px solid #12b4e7;
	padding-bottom: 12px;
	color: #0f2b40;
	font-weight: 700;
	font-size: 18px;
}

.oacc-summary-item {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 18px;
	font-size: 14px;
}

.oacc-summary-label {
	font-weight: 600;
	color: #7c98a6;
}

.oacc-summary-value {
	font-weight: 600;
	color: #17394b;
	text-align: right;
	max-width: 65%;
	word-break: break-word;
}

.oacc-summary-total-row {
	border-top: 1.5px dashed #dce8ed !important;
	padding-top: 20px;
	margin-top: 20px;
}

.oacc-summary-total-row .oacc-summary-label {
	color: #0f2b40;
	font-size: 15px;
	font-weight: 700;
}

.oacc-summary-total-row .oacc-summary-value {
	color: #12b4e7;
	font-size: 18px;
	font-weight: 800;
}

/* Stepper Tabs style */
.oacc-step-progress {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 40px;
	background: #f4f8fa;
	padding: 6px;
	border-radius: 12px;
}

.oacc-step-indicator {
	flex: 1;
	text-align: center;
	color: #7c98a6;
	font-weight: 600;
	font-size: 13px;
	padding: 12px 10px;
	border-radius: 8px;
	transition: all 0.3s ease;
	cursor: default;
	position: relative;
}

.oacc-step-indicator.active {
	background: #fff;
	color: #12b4e7;
	box-shadow: 0 4px 12px rgba(15, 43, 64, 0.05);
}

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

#oacc-step-1 {
	margin-bottom: 60px; /* prevent content from being hidden behind sticky footer on step 1 */
}

.oacc-step-content.active {
	display: block;
}

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

.oacc-step-content h2 {
	font-size: 22px;
	margin-bottom: 24px;
	color: #0f2b40;
	font-weight: 700;
	letter-spacing: -0.5px;
}

/* Services Grid Checkbox */
.oacc-services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 15px;
	margin-bottom: 25px;
}

.oacc-service-item {
	cursor: pointer;
	display: block;
}

.oacc-service-item input {
	display: none;
}

.oacc-service-card {
	background: #fff;
	border: 1.5px solid #dce8ed;
	padding: 24px 20px;
	border-radius: 12px;
	text-align: left;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	font-weight: 500;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-shadow: 0 4px 12px rgba(15, 43, 64, 0.01);
	position: relative;
}

.oacc-service-name {
	font-size: 15px;
	font-weight: 600;
	color: #0f2b40;
	margin-bottom: 12px;
	display: block;
	padding-right: 25px; /* Leave space for check dot */
}

.oacc-service-price {
	font-size: 14px;
	font-weight: 700;
	color: #12b4e7;
}

/* Circle checkbox decoration */
.oacc-service-card::after {
	content: '';
	position: absolute;
	top: 22px;
	right: 20px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 1.5px solid #dce8ed;
	background: #fff;
	transition: all 0.25s ease;
}

.oacc-service-item input:checked + .oacc-service-card {
	border-color: #12b4e7;
	background: #f4fcff;
	transform: translateY(-3px);
	box-shadow: 0 10px 20px rgba(18, 180, 231, 0.08);
}

.oacc-service-item input:checked + .oacc-service-card::after {
	border-color: #12b4e7;
	background: #12b4e7;
	box-shadow: inset 0 0 0 3px #fff;
}

.oacc-service-item:hover .oacc-service-card {
	border-color: #12b4e7;
	transform: translateY(-2px);
	box-shadow: 0 8px 16px rgba(15, 43, 64, 0.05);
}

/* Buttons */
.oacc-form-actions {
	display: flex;
	justify-content: space-between;
	margin-top: 35px;
	padding-top: 25px;
	border-top: 1px solid #eef2f5;
}

#oacc-step-1 .oacc-form-actions {
	position: sticky;
	bottom: 0;
	background: #fff;
	box-shadow: 0 -10px 20px rgba(15, 43, 64, 0.03);
	padding: 20px 0 0 0;
	margin-top: 35px;
	border-top: 1px solid rgba(18, 180, 231, 0.15);
	z-index: 999;
}

.oacc-btn {
	background-color: #12b4e7;
	color: #fff;
	border: none;
	padding: 14px 28px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.oacc-btn:hover {
	background-color: #0d96c2;
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(18, 180, 231, 0.25);
}

.oacc-btn-outline {
	background-color: transparent;
	color: #12b4e7;
	border: 1.5px solid #12b4e7;
}

.oacc-btn-outline:hover {
	background-color: rgba(18, 180, 231, 0.05);
	color: #12b4e7;
}

.oacc-next-btn {
	margin-left: auto;
}

/* Date and time grid layout */
.oacc-datetime-container {
	display: flex;
	gap: 30px;
}

.oacc-calendar-wrapper, .oacc-time-wrapper {
	flex: 1;
	min-width: 280px;
}

.oacc-time-wrapper h3 {
	margin-top: 0;
	font-size: 16px;
	color: #0f2b40;
	margin-bottom: 15px;
	font-weight: 600;
}

.oacc-time-slots {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
	gap: 10px;
}

.oacc-time-slot {
	background: #fff;
	border: 1px solid #dce8ed;
	padding: 12px 10px;
	text-align: center;
	border-radius: 8px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	color: #17394b;
	transition: all 0.25s ease;
}

.oacc-time-slot:hover {
	border-color: #12b4e7;
	background: #f4fcff;
}

.oacc-time-slot.selected {
	background: #12b4e7;
	color: #fff;
	border-color: #12b4e7;
	box-shadow: 0 4px 12px rgba(18, 180, 231, 0.25);
}

.oacc-time-slot.disabled {
	background: #f4f8fa;
	color: #b0c4de;
	border-color: #eef2f5;
	cursor: not-allowed;
	text-decoration: line-through;
}

/* Form groups and input fields styling */
.oacc-form-group {
	margin-bottom: 24px;
}

.oacc-form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #0f2b40;
	font-size: 14px;
}

.oacc-input {
	width: 100% !important;
	margin: 0 !important;
	padding: 14px 15px !important;
	outline: none !important;
	border: 1px solid #dce8ed !important;
	border-radius: 9px !important;
	color: #17394b !important;
	background: #fafdff !important;
	box-shadow: none !important;
	font-family: Arial, Helvetica, sans-serif !important;
	font-size: 15px !important;
	transition: .25s ease !important;
	box-sizing: border-box !important;
}

.oacc-input::placeholder {
	color: #8ba8c1;
}

.oacc-input:focus, .oacc-input:active {
	outline: none !important;
	border: 1px solid #dce8ed !important;
}

/* Car lookup feedback */
.oacc-car-details {
	padding: 0;
	border-radius: 8px;
	font-weight: 600;
	margin-top: 15px;
	font-size: 15px;
}

.oacc-car-details.oacc-success {
	background: transparent;
	border: none;
	color: inherit;
}

.oacc-car-details.oacc-error {
	background: #fff0f0;
	border: 1px solid #ffcdd2;
	color: #d32f2f;
	padding: 15px 20px;
}

/* Vehicle history details box */
.oacc-car-full-details {
	background-color: transparent;
	color: #17394b;
	padding: 0;
	margin-top: 30px;
	border-radius: 0;
	box-shadow: none;
}

.oacc-car-full-details h3 {
	margin-top: 0;
	margin-bottom: 25px;
	font-size: 22px;
	border-bottom: none;
	padding-bottom: 0;
	color: #0f2b40;
	font-weight: 700;
	letter-spacing: -0.5px;
}

.oacc-detail-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px 30px;
}

.oacc-detail-item {
	display: flex;
	flex-direction: column;
}

.oacc-label {
	font-size: 11px;
	text-transform: uppercase;
	color: #7c98a6;
	margin-bottom: 6px;
	font-weight: 700;
	letter-spacing: 0.8px;
}

.oacc-val {
	font-size: 16px;
	color: #17394b;
	font-weight: 600;
}

@media (max-width: 600px) {
	.oacc-detail-grid {
		grid-template-columns: 1fr;
	}
}

/* Flatpickr dark blue overrides */
.flatpickr-calendar {
	background: #0f2b40 !important;
	border: 1px solid #1a4261 !important;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
}

.flatpickr-calendar,
.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
	color: #fff !important;
}

.flatpickr-day {
	color: #fff !important;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
	color: rgba(255, 255, 255, 0.2) !important;
}

.flatpickr-day:hover,
.flatpickr-day:focus {
	background: rgba(255, 255, 255, 0.1) !important;
	border-color: transparent !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
	background: #12b4e7 !important;
	border-color: #12b4e7 !important;
	color: #fff !important;
}

span.flatpickr-weekday {
	color: #8ba8c1 !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months option {
	background: #0f2b40 !important;
	color: #fff !important;
}

.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
	fill: #fff !important;
}

#oacc-car-loading {
	margin-top: 10px;
	color: #666;
}

/* Success/Error backend message box */
#oacc-form-message {
	margin-top: 20px;
	padding: 15px 20px;
	border-radius: 10px;
	display: none;
	font-weight: 500;
}

#oacc-form-message.success {
	background: #e8f5e9;
	color: #2e7d32;
	border: 1px solid #c8e6c9;
	display: block;
}

#oacc-form-message.error {
	background: #ffebee;
	color: #c62828;
	border: 1px solid #ffcdd2;
	display: block;
}

/* Responsiveness media queries */
@media (max-width: 850px) {
	.oacc-booking-wrapper {
		flex-direction: column;
		padding: 0 15px;
		gap: 20px;
	}
	.oacc-booking-main {
		padding: 25px 20px;
	}
	.oacc-booking-sidebar {
		order: 2; /* Put summary at the bottom on mobile/tablet for clean flow */
	}
	.oacc-summary-box {
		position: static;
		margin-bottom: 25px;
		padding: 20px;
	}
}

@media (max-width: 600px) {
	.oacc-booking-main {
		padding: 20px 15px;
	}
	/* Step progress converted to a sleek horizontal indicator of circles */
	.oacc-step-progress {
		flex-direction: row;
		justify-content: space-around;
		align-items: center;
		padding: 8px;
		border-radius: 12px;
		gap: 5px;
		margin-bottom: 25px;
	}
	.oacc-step-indicator {
		flex: 1;
		padding: 6px 0;
		font-size: 14px;
		display: flex;
		justify-content: center;
		align-items: center;
		border-radius: 8px;
		background: transparent;
		box-shadow: none;
	}
	.oacc-step-indicator.active {
		background: transparent;
		box-shadow: none;
	}
	.oacc-step-indicator .oacc-step-title {
		display: none; /* Hide step names on small screens */
	}
	.oacc-step-indicator .oacc-step-num {
		display: inline-block;
		width: 32px;
		height: 32px;
		line-height: 32px;
		border-radius: 50%;
		background: #eef2f5;
		color: #7c98a6;
		text-align: center;
		font-weight: 700;
		transition: all 0.3s ease;
	}
	.oacc-step-indicator.active .oacc-step-num {
		background: #12b4e7;
		color: #fff;
		box-shadow: 0 4px 10px rgba(18, 180, 231, 0.3);
	}
	.oacc-datetime-container {
		flex-direction: column;
		gap: 20px;
	}
	.oacc-calendar-wrapper, .oacc-time-wrapper {
		min-width: 0;
		width: 100%;
	}
	.oacc-input {
		font-size: 16px !important;
	}
}

@media (max-width: 480px) {
	.oacc-booking-main {
		padding: 15px 12px;
		border-radius: 12px;
	}
	.oacc-step-content h2 {
		font-size: 18px;
		margin-bottom: 18px;
	}
	/* 2 columns of services on mobile */
	.oacc-services-grid {
		grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
		gap: 10px;
		margin-bottom: 20px;
	}
	.oacc-service-card {
		padding: 15px 10px;
		border-radius: 10px;
	}
	.oacc-service-name {
		font-size: 13px;
		margin-bottom: 8px;
		padding-right: 18px;
	}
	.oacc-service-price {
		font-size: 12px;
	}
	.oacc-service-card::after {
		top: 15px;
		right: 10px;
		width: 14px;
		height: 14px;
	}
	.oacc-form-actions {
		margin-top: 25px;
		padding-top: 20px;
	}
	#oacc-step-1 .oacc-form-actions {
		padding: 15px 0 0 0;
	}
	.oacc-btn {
		padding: 12px 20px;
		font-size: 14px;
		border-radius: 8px;
	}

}

/* Ensure Flatpickr calendar is responsive and doesn't cause overflow */
.flatpickr-calendar {
	max-width: 100% !important;
	box-sizing: border-box !important;
}

/* Frontend Alert Popup Modal */
.oacc-frontend-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	padding: 20px;
}

.oacc-frontend-modal .oacc-modal-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(15, 43, 64, 0.65);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
}

.oacc-frontend-modal .oacc-modal-card {
	position: relative;
	background: #fff;
	border-radius: 16px;
	padding: 35px 30px 30px 30px;
	max-width: 440px;
	width: 100%;
	text-align: center;
	box-shadow: 0 25px 60px rgba(15, 43, 64, 0.25);
	animation: oaccModalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	border: 1px solid rgba(18, 180, 231, 0.15);
	z-index: 2;
}

@keyframes oaccModalPop {
	0% { opacity: 0; transform: scale(0.9); }
	100% { opacity: 1; transform: scale(1); }
}

.oacc-modal-icon-wrap {
	width: 64px;
	height: 64px;
	margin: 0 auto 20px auto;
	background: #fff8e6;
	color: #eab308;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	box-shadow: 0 8px 20px rgba(234, 179, 8, 0.2);
}

.oacc-modal-card h3 {
	margin: 0 0 12px 0;
	font-size: 20px;
	color: #0f2b40;
	font-weight: 700;
	letter-spacing: -0.3px;
}

.oacc-modal-card p {
	margin: 0 0 25px 0;
	font-size: 14.5px;
	line-height: 1.6;
	color: #557283;
}

.oacc-modal-close-btn {
	width: 100%;
	padding: 13px 20px;
	font-size: 15px;
	border-radius: 10px;
	font-weight: 600;
	cursor: pointer;
}


