/* ==========================================================================
   DOST GO — Book a Ride Page Stylesheet
   ========================================================================== */

/* ---------- Shared "location field" style (popup + main form) ---------- */
.dostgo-location-field { margin-bottom: 18px; text-align: left; min-width: 0; }

.dostgo-location-field label {
	display: block;
	font-family: var(--dostgo-font-heading);
	font-weight: 600;
	font-size: .85rem;
	margin-bottom: 8px;
	color: var(--dostgo-black);
}

.dostgo-location-field__input {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	background: #fff;
	border: 1px solid var(--dostgo-border);
	border-radius: 10px;
	padding: 12px 14px;
	transition: border-color .2s ease, box-shadow .2s ease;
	min-width: 0;
	width: 100%;
	box-sizing: border-box;
}

.dostgo-location-field__input:focus-within {
	border-color: var(--dostgo-primary);
	box-shadow: 0 0 0 3px rgba(29, 146, 140, .10);
}

.dostgo-location-field__icon {
	flex-shrink: 0;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--dostgo-light);
	color: var(--dostgo-primary);
	display: flex;
	align-items: center;
	justify-content: center;
}

.dostgo-location-field__input input {
	flex: 1;
	border: none;
	background: transparent;
	font-family: var(--dostgo-font-body);
	font-size: .92rem;
	padding: 0;
	min-width: 0;
	width: 100%;
}

.dostgo-location-field__input input:focus { outline: none; }

.dostgo-location-field__clear {
	display: none;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	cursor: pointer;
	padding: 2px;
	flex-shrink: 0;
}

.dostgo-location-field__input--date {
	padding: 10px 14px;
}

.dostgo-location-field__input--date input[type="datetime-local"] {
	color: var(--dostgo-black);
}

/* ---------- LocationIQ suggestions dropdown ---------- */
.dostgo-location-suggestions {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	margin-top: 6px;
	background: #fff;
	border: 1px solid var(--dostgo-border);
	border-radius: 10px;
	z-index: 40;
	max-height: 240px;
	overflow-y: auto;
	padding: 6px;
}

.dostgo-location-suggestions__item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	width: 100%;
	text-align: left;
	appearance: none;
	-webkit-appearance: none;
	background: transparent;
	border: none;
	border-radius: 8px;
	padding: 10px 10px;
	margin: 0;
	font-family: var(--dostgo-font-body);
	font-size: .85rem;
	line-height: 1.4;
	color: var(--dostgo-black);
	cursor: pointer;
	transition: background .15s ease;
}

.dostgo-location-suggestions__item:not(:last-child) {
	border-bottom: 1px solid #f1f1f2;
}

.dostgo-location-suggestions__item:hover,
.dostgo-location-suggestions__item:focus {
	background: var(--dostgo-light);
	outline: none;
}

.dostgo-location-suggestions__item::before {
	content: "";
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	margin-top: 2px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='1.8'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Location Popup ---------- */
.dostgo-location-popup {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.dostgo-location-popup.is-active { display: flex; }

.dostgo-location-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(16, 19, 24, .55);
}

.dostgo-location-popup__box {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 420px;
	background: #fff;
	border-radius: 18px;
	padding: 30px 28px;
	box-shadow: 0 24px 60px rgba(0,0,0,.25);
	animation: dostgo-popup-in .3s ease;
}

@keyframes dostgo-popup-in {
	from { opacity: 0; transform: translateY(14px) scale(.98); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

.dostgo-location-popup__close {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: none;
	background: var(--dostgo-light);
	color: var(--dostgo-black);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.dostgo-location-popup__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--dostgo-font-heading);
	font-size: 1.3rem;
	font-weight: 700;
	margin: 0 0 14px;
	padding-right: 30px;
}

.dostgo-location-popup__text {
	font-family: var(--dostgo-font-body);
	font-size: .92rem;
	color: #374151;
	line-height: 1.5;
	margin: 0 0 22px;
}

.dostgo-location-popup__error {
	color: #d33;
	font-size: .82rem;
	margin: -6px 0 14px;
}

.dostgo-location-popup__submit {
	width: 100%;
	font-family: var(--dostgo-font-body);
	font-weight: 700;
	font-size: 1rem;
	color: #fff;
	background: linear-gradient(135deg, var(--dostgo-400), var(--dostgo-600));
	border: none;
	border-radius: 10px;
	padding: 14px;
	cursor: pointer;
	transition: opacity .2s ease;
}

.dostgo-location-popup__submit:hover { opacity: .9; }

@media (max-width: 480px) {
	.dostgo-location-popup__box { padding: 24px 20px; }
	.dostgo-location-popup__title { font-size: 1.15rem; }
}

/* ---------- Book Your Ride — 2-column layout ---------- */
.dostgo-book-ride {
	padding: 60px 0 90px;
	overflow-x: hidden;
}

.dostgo-book-ride__layout {
	display: grid;
	grid-template-columns: .85fr 1.15fr;
	gap: 48px;
	align-items: start;
	min-width: 0;
}

/* Left column: intro copy + image */
.dostgo-book-ride__intro {
	position: sticky;
	top: 100px;
	min-width: 0;
}

.dostgo-book-ride__intro-eyebrow {
	font-family: var(--dostgo-font-heading);
	color: var(--dostgo-primary);
	font-weight: 700;
	font-size: .82rem;
	text-transform: uppercase;
	letter-spacing: .08em;
	margin: 0 0 10px;
}

.dostgo-book-ride__intro-title {
	font-family: var(--dostgo-font-heading);
	font-size: 1.7rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 14px;
	color: var(--dostgo-black);
}

.dostgo-book-ride__intro-text {
	font-family: var(--dostgo-font-body);
	font-size: .95rem;
	line-height: 1.7;
	color: #6b7280;
	margin: 0 0 26px;
	max-width: 42ch;
}

.dostgo-book-ride__image {
	border-radius: 18px;
	overflow: hidden;
}

.dostgo-book-ride__image img {
	display: block;
	width: 100%;
	height: 420px;
	object-fit: cover;
}

/* Right column: the form card itself */
.dostgo-book-ride__card {
	background: #fff;
	border: 1px solid var(--dostgo-border);
	border-radius: 18px;
	padding: 40px;
	min-width: 0;
	width: 100%;
	box-sizing: border-box;
}

/* Numbered step headers (01 Trip Details / 02 Choose Vehicle / 03 Your Details) */
.dostgo-book-ride__step {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 22px;
}

.dostgo-book-ride__step:not(:first-child) {
	margin-top: 34px;
	padding-top: 30px;
	border-top: 1px solid var(--dostgo-border);
}

.dostgo-book-ride__step-num {
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--dostgo-400), var(--dostgo-600));
	color: #fff;
	font-family: var(--dostgo-font-heading);
	font-weight: 700;
	font-size: .78rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.dostgo-book-ride__step h3 {
	font-family: var(--dostgo-font-heading);
	font-size: 1.15rem;
	font-weight: 700;
	margin: 0;
}

.dostgo-book-ride__summary {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	min-width: 0;
}

/* Fleet selection carousel */
.dostgo-book-ride__fleet-carousel {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	width: 100%;
}

.dostgo-book-ride__fleet-track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding: 4px 2px 8px;
	flex: 1;
	min-width: 0;
	max-width: 100%;
}

.dostgo-book-ride__fleet-track::-webkit-scrollbar { display: none; }

.dostgo-book-ride__fleet-nav {
	flex-shrink: 0;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid var(--dostgo-border);
	background: #fff;
	color: var(--dostgo-black);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.dostgo-book-ride__fleet-nav:hover {
	background: var(--dostgo-primary);
	border-color: var(--dostgo-primary);
	color: #fff;
}

.dostgo-fleet-select-card {
	position: relative;
	flex: 0 0 132px;
	display: block;
	cursor: pointer;
	border: 1px solid var(--dostgo-border);
	border-radius: 12px;
	padding: 12px;
	text-align: center;
	transition: border-color .2s ease, background .2s ease;
}

.dostgo-fleet-select-card input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.dostgo-fleet-select-card:hover {
	border-color: var(--dostgo-primary);
}

.dostgo-fleet-select-card.is-selected {
	border-color: var(--dostgo-primary);
	background: var(--dostgo-light);
}

.dostgo-fleet-select-card__thumb {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 76px;
	margin-bottom: 10px;
}

.dostgo-fleet-select-card__thumb img {
	width: 100%;
	height: 76px;
	object-fit: contain;
}

.dostgo-fleet-select-card__placeholder { font-size: 1.9rem; }

.dostgo-fleet-select-card__check {
	position: absolute;
	top: -6px;
	right: -6px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--dostgo-primary);
	border: 2px solid #fff;
	display: none;
	align-items: center;
	justify-content: center;
}

.dostgo-fleet-select-card.is-selected .dostgo-fleet-select-card__check {
	display: flex;
}

.dostgo-fleet-select-card__name {
	font-family: var(--dostgo-font-body);
	font-weight: 600;
	font-size: .82rem;
	display: block;
}

/* Customer details */
.dostgo-book-ride__details-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

.dostgo-book-ride__details-grid .dostgo-cf7-field label {
	display: block;
	font-family: var(--dostgo-font-heading);
	font-weight: 600;
	font-size: .85rem;
	margin-bottom: 8px;
	color: var(--dostgo-black);
}

.dostgo-book-ride__details-grid .dostgo-cf7-field input {
	width: 100%;
	font-family: var(--dostgo-font-body);
	font-size: .92rem;
	border: 1px solid var(--dostgo-border);
	background: #fff;
	border-radius: 10px;
	padding: 12px 14px;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.dostgo-book-ride__details-grid .dostgo-cf7-field input:focus {
	outline: none;
	border-color: var(--dostgo-primary);
	box-shadow: 0 0 0 3px rgba(29, 146, 140, .10);
}

.dostgo-book-ride__response {
	border-radius: 10px;
	padding: 12px 16px;
	font-size: .9rem;
	margin-top: 28px;
}

.dostgo-book-ride__response.success { background: #e6f7ec; color: #106a33; }
.dostgo-book-ride__response.error { background: #fdeaea; color: #9d1c1c; }

.dostgo-book-ride__submit {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--dostgo-font-body);
	font-weight: 700;
	font-size: 1.02rem;
	color: #fff;
	background: linear-gradient(135deg, var(--dostgo-400), var(--dostgo-600));
	border: none;
	border-radius: 30px;
	padding: 16px;
	cursor: pointer;
	margin-top: 32px;
	transition: opacity .2s ease, transform .15s ease;
}

.dostgo-book-ride__submit:hover { opacity: .9; }
.dostgo-book-ride__submit:active { transform: scale(.99); }
.dostgo-book-ride__submit:disabled { opacity: .6; cursor: not-allowed; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
	.dostgo-book-ride__layout { grid-template-columns: 1fr; gap: 30px; }
	.dostgo-book-ride__intro { position: static; }
	.dostgo-book-ride__image img { height: 260px; }
}

@media (max-width: 768px) {
	.dostgo-book-ride__summary { grid-template-columns: 1fr; }
	.dostgo-book-ride__details-grid { grid-template-columns: 1fr; }
	.dostgo-book-ride__card { padding: 26px; }
}

@media (max-width: 560px) {
	.dostgo-book-ride { padding: 40px 0 60px; }
	.dostgo-book-ride__intro-title { font-size: 1.4rem; }
	.dostgo-fleet-select-card { flex-basis: 108px; padding: 10px; }
	.dostgo-fleet-select-card__thumb { min-height: 62px; }
	.dostgo-fleet-select-card__thumb img { height: 62px; }
	.dostgo-book-ride__fleet-nav { width: 32px; height: 32px; }
}