/* =====================================================
   ITINERARY FORM — [onwardsky_itinerary]
   Matches the Onward Sky "Choose your itinerary" card
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800&display=swap');

.osky-itinerary-wrap {
	font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	max-width: 520px;
	margin: 0 auto;
	box-sizing: border-box;
	display: block !important; /* Overrides inline display: none; once CSS is parsed */
}
.osky-itinerary-wrap *, .osky-itinerary-wrap *::before, .osky-itinerary-wrap *::after {
	box-sizing: border-box;
}

/* Card */
.osky-card {
	background-image: url(https://onwardsky.com/wp-content/uploads/2026/07/BookingForm.png) !important;
	background-position: center;
	border-radius: 18px;
	padding: 32px;
	box-shadow: 0 8px 40px rgba(0,0,0,0.10);
	position: relative;
	background-size: contain;
	background-repeat: no-repeat;
}
.osky-card-title {
	font-size: 26px;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 22px;
	line-height: 1.2;
}

/* ---- Trip type toggle ---- */
.osky-trip-toggle {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-bottom: 24px;
}
.osky-trip-toggle label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 500;
	color: #374151;
	user-select: none;
}
.osky-trip-toggle input[type="radio"] {
	-webkit-appearance: none;
	appearance: none;
	width: 22px;
	height: 22px;
	border: 2px solid #c9cdd3;
	border-radius: 50%;
	margin: 0;
	cursor: pointer;
	position: relative;
	transition: border-color .2s;
	flex-shrink: 0;
}
.osky-trip-toggle input[type="radio"]:checked {
	border-color: #1e3a5f;
	background: #1e3a5f;
}
.osky-trip-toggle input[type="radio"]:checked::after {
	content: "";
	width: 8px;
	height: 8px;
	background: #fff;
	border-radius: 50%;
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%,-50%);
}

/* ---- Field group ---- */
.osky-field-group {
	margin-bottom: 18px;
	position: relative;
}
.osky-field-label {
	font-size: 14px;
	font-weight: 600;
	color: #1f2937;
	margin-bottom: 6px;
	display: block;
}

/* Input row with icon */
.osky-input-row {
	display: flex;
	align-items: center;
	border: 1.5px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
	padding: 0 14px;
	transition: border-color .2s, box-shadow .2s;
	height: 50px;
}
.osky-input-row:focus-within {
	border-color: #156970;
	box-shadow: 0 0 0 3px rgba(21,105,112,0.15);
}
.osky-input-icon {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	color: #1e3a5f;
	margin-right: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.osky-input-row input,
.osky-input-row select {
	border: none;
	outline: none;
	background: transparent;
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	color: #1f2937;
	flex: 1;
	height: 100%;
	padding: 0;
	min-width: 0;
}
.osky-input-row input::placeholder {
	color: #9ca3af;
	font-weight: 400;
}
.osky-input-row select {
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.osky-select-caret {
	flex-shrink: 0;
	color: #6b7280;
	margin-left: 6px;
	pointer-events: none; /* Make caret click-through */
}

/* Hide native browser date picker calendar icon and make entire input clickable */
.osky-input-row input[type="date"] {
	position: relative;
	cursor: pointer;
}
.osky-input-row input[type="date"]::-webkit-calendar-picker-indicator {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	opacity: 0 !important;
	cursor: pointer !important;
}

/* ---- Swap button row ---- */
.osky-swap-row {
	display: flex;
	align-items: flex-end;
	gap: 12px;
}
.osky-swap-row .osky-field-group {
	flex: 1;
	margin-bottom: 0;
}
.osky-swap-btn {
	width: 50px;
	height: 50px;
	border-radius: 12px;
	border: none;
	background: #156970;
	color: #ffffff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background .2s, transform .2s, box-shadow .2s;
}
.osky-swap-btn:hover {
	background: #c5f467;
	color: #1f2937;
	transform: scale(1.05);
	box-shadow: 0 4px 12px rgba(197,244,103,0.3);
}

/* ---- Date fields (stacked vertically) ---- */
.osky-date-row {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin-bottom: 18px;
}
.osky-date-row .osky-field-group {
	width: 100%;
	margin-bottom: 0;
}
.osky-date-row .osky-field-group.osky-hidden {
	display: none;
}

/* ---- Passengers note ---- */
.osky-pax-note {
	font-size: 12px;
	color: #9ca3af;
	margin-top: 4px;
}

/* ---- Submit button ---- */
.osky-submit-row {
	display: flex;
	justify-content: center;
	margin-top: 26px;
}
/* Conversion CTA. Colour only: every geometry value (radius, padding, font
   size, weight, letter-spacing, transition) is unchanged from the previous
   lime treatment, so the widget layout is identical. #D14600 on #fff is
   4.58:1, which clears WCAG AA for normal text; the hover shade is darker,
   so it clears it too. */
.osky-submit-btn {
	background: #D14600;
	color: #fff;
	border: none;
	border-radius: 30px;
	padding: 14px 48px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background .2s, transform .15s, box-shadow .2s;
	letter-spacing: 0.02em;
}
.osky-submit-btn:hover {
	background: #B33D00;
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(209,70,0,0.35);
}
.osky-submit-btn:active {
	transform: translateY(0);
}

/* ---- Airport autocomplete dropdown ---- */
.osky-ac-drop {
	position: absolute;
	z-index: 99999;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	box-shadow: 0 8px 30px rgba(0,0,0,0.12);
	overflow-y: auto;
	max-height: 280px;
	width: 100%;
	left: 0;
	top: calc(100% + 4px);
	display: none;
}
.osky-ac-drop.is-open {
	display: block;
}
.osky-ac-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px;
	cursor: pointer;
	transition: background .1s;
}
.osky-ac-item:hover {
	background: #f0f4ff;
}
.osky-ac-flag {
	font-size: 22px;
	flex-shrink: 0;
	line-height: 1;
}
.osky-ac-info {
	flex: 1;
	min-width: 0;
}
.osky-ac-city {
	font-size: 15px;
	font-weight: 600;
	color: #1f2937;
}
.osky-ac-country {
	font-size: 12px;
	color: #9ca3af;
	margin-top: 1px;
}
.osky-ac-code {
	font-size: 14px;
	font-weight: 700;
	color: #4b5563;
	flex-shrink: 0;
	letter-spacing: 0.04em;
}
.osky-ac-empty {
	padding: 14px 16px;
	font-size: 13px;
	color: #9ca3af;
}
.osky-ac-hint {
	padding: 14px 16px;
	font-size: 13px;
	color: #9ca3af;
	text-align: center;
}

/* ---- Validation error ---- */
.osky-input-row.osky-error {
	border-color: #ef4444;
	box-shadow: 0 0 0 3px rgba(239,68,68,0.10);
}
.osky-error-msg {
	font-size: 12px;
	color: #ef4444;
	margin-top: 4px;
	display: none;
}
.osky-field-group.has-error .osky-error-msg {
	display: block;
}

/* ---- Responsive ---- */
@media (max-width: 540px) {
	.osky-card {
		padding: 24px 18px 22px;
		border-radius: 14px;
	}
	.osky-card-title {
		font-size: 22px;
	}
}
