.mgh-ap,
.mgh-quick,
.mgh-inquiry {
	--mgh-accent: var(--ast-global-color-0, #b3953f);
	--mgh-ink: #1f2329;
	--mgh-muted: #6b7280;
	--mgh-line: #e7e4dd;
	--mgh-field: #bababa;
	--mgh-soft: #f7f5f0;
	--mgh-radius: 12px;
	color: var(--mgh-ink);
}

.mgh-ap *,
.mgh-quick *,
.mgh-inquiry * {
	box-sizing: border-box;
}

.mgh-ap__sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

/* Airports list */

.mgh-ap__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.mgh-ap__total {
	margin: 0;
	color: var(--mgh-muted);
}

.mgh-ap__total strong {
	color: var(--mgh-ink);
}

.mgh-ap__search {
	position: relative;
	flex: 0 1 420px;
	margin: 0;
}

.mgh-ap__search svg {
	position: absolute;
	left: 16px;
	top: 50%;
	width: 18px;
	height: 18px;
	transform: translateY(-50%);
	fill: none;
	stroke: var(--mgh-muted);
	stroke-width: 2;
	stroke-linecap: round;
	pointer-events: none;
}

body .mgh-ap__search input {
	width: 100%;
	height: 50px;
	margin: 0;
	padding: 0 18px 0 46px;
	border: 1px solid var(--mgh-field);
	border-radius: 999px;
	background: #fff;
	font: inherit;
	color: var(--mgh-ink);
}

body .mgh-ap__search input:focus {
	outline: none;
	border-style: solid;
	border-color: var(--mgh-accent);
	box-shadow: none;
}

.mgh-ap__chips {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 6px;
	margin-bottom: 8px;
	scrollbar-width: thin;
}

.mgh-ap__chip {
	flex: none;
	margin: 0;
	padding: 8px 16px;
	border: 1px solid var(--mgh-line);
	border-radius: 999px;
	background: #fff;
	color: var(--mgh-ink);
	font: inherit;
	font-size: 0.875rem;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mgh-ap__chip span {
	color: var(--mgh-muted);
}

.mgh-ap__chip:hover {
	border-color: var(--mgh-accent);
	background: #fff;
	color: var(--mgh-ink);
}

.mgh-ap__chip.is-active {
	border-color: var(--mgh-ink);
	background: var(--mgh-ink);
	color: #fff;
}

.mgh-ap__chip.is-active span {
	color: rgba(255, 255, 255, 0.7);
}

.mgh-ap__region {
	margin-top: 44px;
}

.mgh-ap__region-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 24px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--mgh-line);
}

.mgh-ap__region-head h2 {
	margin: 0;
	font-size: clamp(1.5rem, 3vw, 2rem);
	line-height: 1.2;
	color: var(--mgh-accent);
}

.mgh-ap__region-head span {
	flex: none;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--mgh-muted);
}

.mgh-ap__region-head strong {
	color: var(--mgh-ink);
}

.mgh-ap__grid {
	columns: 3 280px;
	column-gap: 40px;
}

.mgh-ap__country {
	break-inside: avoid;
	margin-bottom: 30px;
}

.mgh-ap__country-name {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 6px;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--mgh-ink);
}

.mgh-ap__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mgh-ap__list li {
	margin: 0;
	padding: 0;
}

.mgh-ap__list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 11px 10px;
	border-bottom: 1px solid var(--mgh-line);
	border-radius: 6px 6px 0 0;
	color: var(--mgh-ink);
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.mgh-ap__list a:hover,
.mgh-ap__list a:focus-visible {
	background: color-mix(in srgb, var(--mgh-accent) 12%, #fff);
	color: var(--mgh-accent);
	outline: none;
}

.mgh-ap__name {
	min-width: 0;
	line-height: 1.35;
}

.mgh-ap__name small {
	display: block;
	margin-top: 2px;
	font-size: 0.8rem;
	color: var(--mgh-muted);
}

.mgh-ap__code {
	flex: none;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--mgh-muted);
}

.mgh-ap__list a:hover .mgh-ap__code {
	color: var(--mgh-accent);
}

.mgh-ap__empty {
	margin-top: 40px;
	padding: 32px;
	border: 1px dashed var(--mgh-line);
	border-radius: var(--mgh-radius);
	text-align: center;
	color: var(--mgh-muted);
}

.mgh-ap__empty p {
	margin: 0 0 6px;
}

.mgh-ap__empty a {
	color: var(--mgh-accent);
	font-weight: 600;
}

/* Shared form controls */

.mgh-quick label,
.mgh-inquiry label {
	display: block;
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mgh-ink);
}

.mgh-inquiry label small {
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: var(--mgh-muted);
}

.mgh-inquiry label span {
	color: #c0392b;
}

body .mgh-quick input,
body .mgh-quick select,
body .mgh-inquiry input,
body .mgh-inquiry select {
	width: 100%;
	height: 50px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--mgh-field);
	border-radius: 10px;
	background-color: #fff;
	font: inherit;
	font-size: 16px;
	color: var(--mgh-ink);
	box-shadow: none;
}

body .mgh-quick select,
body .mgh-inquiry select {
	padding-right: 36px;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-position: right 12px center;
	background-repeat: no-repeat;
	background-size: 16px;
}

body .mgh-quick input:focus,
body .mgh-quick select:focus,
body .mgh-inquiry input:focus,
body .mgh-inquiry select:focus {
	outline: none;
	border-style: solid;
	border-width: 1px;
	border-color: var(--mgh-accent);
	box-shadow: none;
}

.mgh-btn {
	height: 50px;
	margin: 0;
	padding: 0 28px;
	border: 0;
	border-radius: 10px;
	background: var(--mgh-ink);
	color: #fff;
	font: inherit;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.mgh-btn:hover,
.mgh-btn:focus-visible {
	background: var(--mgh-accent);
	color: #fff;
	outline: none;
}

/* Searchable dropdown */

.mgh-combo {
	position: relative;
}

.mgh-combo__icon {
	position: absolute;
	left: 14px;
	top: 50%;
	width: 18px;
	height: 18px;
	transform: translateY(-50%) rotate(45deg);
	fill: var(--mgh-accent);
	pointer-events: none;
}

body .mgh-combo .mgh-combo__input {
	padding-left: 42px;
	text-overflow: ellipsis;
}

.mgh-combo__list {
	position: absolute;
	z-index: 50;
	top: calc(100% + 6px);
	left: 0;
	width: 100%;
	min-width: 320px;
	max-height: 340px;
	overflow-y: auto;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--mgh-line);
	border-radius: var(--mgh-radius);
	box-shadow: 0 18px 40px rgba(31, 35, 41, 0.14);
	text-align: left;
}

.mgh-combo__group {
	margin: 0;
	padding: 10px 10px 6px;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--mgh-muted);
}

.mgh-combo__option {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 9px 10px;
	border-radius: 8px;
	cursor: pointer;
	line-height: 1.3;
}

.mgh-combo__option.is-active {
	background: color-mix(in srgb, var(--mgh-accent) 14%, #fff);
}

.mgh-combo__main {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.mgh-combo__main b {
	font-weight: 700;
}

.mgh-combo__main span {
	margin-left: 6px;
	color: var(--mgh-muted);
}

.mgh-combo__code {
	flex: none;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: var(--mgh-muted);
}

.mgh-combo__none {
	padding: 14px 10px;
	color: var(--mgh-muted);
}

.mgh-phone {
	display: flex;
	gap: 8px;
}

.mgh-combo--dial {
	flex: 0 0 116px;
}

body .mgh-combo--dial .mgh-combo__input {
	padding-left: 42px;
	padding-right: 8px;
}

.mgh-combo__flag {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
}

.mgh-phone > input {
	flex: 1;
	min-width: 0;
}

/* Quick form */

.mgh-quick {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr auto;
	align-items: end;
	gap: 14px;
	padding: 22px;
	background: #fff;
	border: 1px solid var(--mgh-line);
	border-radius: 18px;
	box-shadow: 0 16px 40px rgba(31, 35, 41, 0.08);
}

.mgh-quick__field {
	min-width: 0;
}

/* Inquiry form */

.mgh-inquiry fieldset {
	margin: 0 0 30px;
	padding: 0;
	border: 0;
}

.mgh-inquiry legend {
	width: 100%;
	margin-bottom: 20px;
	padding: 0 0 12px;
	border-bottom: 1px solid var(--mgh-line);
	font-size: 1.2rem;
	font-weight: 700;
}

.mgh-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.mgh-field--wide {
	grid-column: span 3;
}

.mgh-inquiry__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-top: 22px;
	border-top: 1px solid var(--mgh-line);
}

.mgh-inquiry__footer p {
	margin: 0;
	max-width: 52ch;
	font-size: 0.875rem;
	color: var(--mgh-muted);
}

.mgh-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 900px) {
	.mgh-quick {
		grid-template-columns: 1fr 1fr;
	}

	.mgh-quick__field--airport {
		grid-column: span 2;
	}

	.mgh-quick .mgh-btn {
		grid-column: span 2;
	}

	.mgh-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mgh-field--wide {
		grid-column: span 2;
	}
}

@media (max-width: 600px) {
	.mgh-quick label,
	.mgh-inquiry label {
		font-size: 11px;
	}

	.mgh-quick {
		grid-template-columns: 1fr;
		padding: 18px;
	}

	.mgh-quick__field--airport,
	.mgh-quick .mgh-btn {
		grid-column: auto;
	}

	.mgh-grid {
		grid-template-columns: 1fr;
	}

	.mgh-field--wide {
		grid-column: auto;
	}

	.mgh-inquiry__footer {
		flex-direction: column;
		align-items: stretch;
	}

	.mgh-combo__list {
		min-width: 0;
	}

	.mgh-combo--dial .mgh-combo__list {
		min-width: calc(100vw - 48px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.mgh-ap *,
	.mgh-quick *,
	.mgh-inquiry * {
		transition: none !important;
	}
}

/* Enquiry states */

.mgh-combo__option--other {
	margin-top: 4px;
	border-top: 1px solid var(--mgh-line);
	border-radius: 0 0 8px 8px;
}

.mgh-combo__plus {
	flex: none;
	width: 20px;
	height: 20px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--mgh-soft);
	color: var(--mgh-accent);
	font-weight: 700;
	line-height: 1;
}

.mgh-other[hidden] {
	display: none;
}

body .mgh-field.has-error input,
body .mgh-field.has-error select {
	border-color: #c0392b;
}

.mgh-field__error {
	margin: 6px 0 0;
	font-size: 0.85rem;
	color: #c0392b;
}

.mgh-inquiry__alert {
	margin-bottom: 24px;
	padding: 14px 16px;
	border: 1px solid #f1c4bd;
	border-radius: 10px;
	background: #fdf0ee;
	color: #9b2c1f;
}

.mgh-btn:disabled {
	opacity: 0.7;
	cursor: wait;
}

.mgh-inquiry--sent {
	padding: 48px 24px;
	text-align: center;
	scroll-margin-top: 120px;
}

.mgh-inquiry__tick {
	width: 64px;
	height: 64px;
	margin: 0 auto 18px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: color-mix(in srgb, var(--mgh-accent) 14%, #fff);
}

.mgh-inquiry__tick svg {
	width: 30px;
	height: 30px;
	fill: none;
	stroke: var(--mgh-accent);
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mgh-inquiry--sent h2 {
	margin: 0 0 8px;
	font-size: clamp(1.4rem, 3vw, 1.8rem);
}

.mgh-inquiry--sent p {
	max-width: 52ch;
	margin: 0 auto;
	color: var(--mgh-muted);
}

#mgh-inquiry {
	scroll-margin-top: 120px;
}
