/* Infinity Rise — "Let's Talk" enquiry popup. Site-wide, fully responsive.
   Opened by the header "Enquire Now" CTA (assets/js/enquiry-modal.js). Fields
   reuse the Contact form backend (ir_contact AJAX). Self-contained: does not
   depend on contact.css (which only loads on the Contact page). */

.ir-enq {
	position: fixed;
	inset: 0;
	z-index: 1300;
	display: flex;
	/* flex-start (not the default stretch) so the dialog sizes to its content and
	   its background covers every field. With stretch, a content-taller-than-
	   viewport dialog gets clamped to the viewport height and the overflowing
	   fields render outside the painted background. margin:auto still centres it. */
	align-items: flex-start;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 24px;
}
.ir-enq[hidden] { display: none; }

.ir-enq__overlay {
	position: fixed;
	inset: 0;
	background: rgba(9, 26, 18, .78);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.ir-enq__dialog {
	position: relative;
	margin: auto;
	width: 100%;
	max-width: 1040px;
	background:
		radial-gradient(115% 80% at 100% 0%, rgba(226, 197, 141, .12), rgba(226, 197, 141, 0) 55%),
		linear-gradient(158deg, #0A5236 0%, #06402A 62%);
	color: var(--color-white, #fff);
	border: 1px solid rgba(226, 197, 141, .18);
	border-radius: 0;
	padding: 44px 48px;
	box-shadow: 0 40px 90px rgba(0, 0, 0, .5);
}

.ir-enq__close {
	position: absolute;
	top: 22px;
	right: 22px;
	width: 46px;
	height: 46px;
	border: 0;
	border-radius: 50%;
	background: var(--color-ancient, #E2C58D);
	color: var(--color-black, #1a1a1a);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color .2s ease, color .2s ease;
}
.ir-enq__close:hover,
.ir-enq__close:focus-visible {
	background: var(--color-secondary, #A97F2D);
	color: var(--color-white, #fff);
	outline: none;
}

.ir-enq__head { margin: 0 56px 26px 0; }
.ir-enq__title {
	color: var(--color-white, #fff);
	font-size: 38px;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -.01em;
	margin: 0;
}
.ir-enq__lead {
	margin: 12px 0 0;
	max-width: 560px;
	color: rgba(255, 255, 255, .72);
	font-size: 15px;
	line-height: 1.55;
}

.ir-enq__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
/* Partner-only row is hidden on the general enquiry — the [hidden] attribute
   needs to beat the .ir-enq__row display:grid above. */
.ir-enq__partner[hidden] { display: none; }

.ir-enq__field { display: flex; flex-direction: column; margin: 0 0 18px; }
.ir-enq__field label { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .9); letter-spacing: .01em; margin: 0 0 8px; }
.ir-enq__field label span { color: var(--color-ancient, #E2C58D); margin-left: 2px; }

.ir-enq__field input,
.ir-enq__field select,
.ir-enq__field textarea,
.ir-enq-select__btn {
	width: 100%;
	background: var(--color-white, #fff);
	color: var(--color-black, #1a1a1a);
	border: 1px solid rgba(0, 0, 0, .08);
	border-radius: 0;
	padding: 16px 18px;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.4;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
	transition: border-color .18s ease, box-shadow .18s ease;
}
.ir-enq__field textarea { resize: vertical; min-height: 120px; }
.ir-enq__field select,
.ir-enq-select__btn {
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2306402A' d='M1 1l5 5 5-5' stroke='%2306402A' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 42px;
}
.ir-enq__field input::placeholder,
.ir-enq__field textarea::placeholder { color: #9a958c; font-size: 15px; }
.ir-enq__field input:focus,
.ir-enq__field select:focus,
.ir-enq__field textarea:focus,
.ir-enq-select__btn:focus-visible,
.ir-enq-select__btn[aria-expanded="true"] {
	outline: none;
	border-color: var(--color-ancient, #E2C58D);
	box-shadow: 0 0 0 3px rgba(226, 197, 141, .35);
}

/* Invalid required field (empty / bad email on submit) — red highlight.
   Placed after :focus so it stays red even while the field is focused. */
.ir-enq__field input.is-invalid,
.ir-enq__field select.is-invalid,
.ir-enq__field textarea.is-invalid,
.ir-enq-select__btn.is-invalid { border-color: #e5533d; box-shadow: 0 0 0 3px rgba(229, 83, 61, .3); }

/* Per-field validation message shown directly under the input. Empty by default
   (collapsed so it takes no space until populated by the submit validation). */
.ir-enq__error { margin: 7px 0 0; font-size: 13px; line-height: 1.35; font-weight: 500; color: #ffb4a2; }
.ir-enq__error:empty { display: none; }

/* intl-tel-input phone field: fill the column, keep our input look, and make
   the flag/country dropdown sit above the fields below it. */
.ir-enq__field .iti { display: block; width: 100%; }
.ir-enq__field .iti__dropdown-content { z-index: 60; }
/* Separate dial code (e.g. +971) shown next to the flag — force dark text so
   it's visible against the white input (the modal's default text is white), and
   match the input's font size (the library defaults it to 20px, larger). */
.ir-enq__field .iti__selected-dial-code { color: var(--color-black, #1a1a1a); font-size: 15px; font-weight: 400; }
/* Smaller country-picker dropdown text (names, dial codes, search). */
.ir-enq .iti__dropdown-content,
.ir-enq .iti__country,
.ir-enq .iti__country-name,
.ir-enq .iti__dial-code,
.ir-enq .iti__search-input { font-size: 13px; }
.ir-enq .iti__country { padding: 8px 10px; }
/* Taller country-search box on mobile for easier tapping. */
@media (max-width: 600px) { .ir-enq .iti__search-input { padding: 12px 12px; font-size: 15px; } }
/* The modal text is white; force the (white-bg) dropdown back to dark text so
   country names are visible, and keep the search input readable. */
.ir-enq__field .iti__dropdown-content,
.ir-enq__field .iti__country,
.ir-enq__field .iti__country-name { color: var(--color-black, #1a1a1a); }
.ir-enq__field .iti__search-input { color: var(--color-black, #1a1a1a); }

/* Custom country dropdown — always opens BELOW the field (native <select> would
   flip upward near the viewport bottom). Backed by a hidden input[name=country]. */
.ir-enq-select { position: relative; }
.ir-enq-select__btn { text-align: left; display: flex; align-items: center; }
.ir-enq-select__value { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ir-enq-select__value--placeholder { color: #9a958c; }

.ir-enq-select__panel {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	z-index: 40;
	display: flex;
	flex-direction: column;
	max-height: 300px;
	background: var(--color-white, #fff);
	border: 1px solid rgba(0, 0, 0, .12);
	box-shadow: 0 16px 36px rgba(0, 0, 0, .22);
}
.ir-enq-select__panel[hidden] { display: none; }

.ir-enq-select__search-wrap { flex: 0 0 auto; padding: 6px; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.ir-enq-select__search {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid rgba(0, 0, 0, .15);
	border-radius: 0;
	padding: 6px 10px 6px 30px;
	font-family: inherit;
	font-size: 13px;
	line-height: 1.3;
	color: var(--color-black, #1a1a1a);
	background: var(--color-white, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239a958c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat left 10px center;
	background-size: 13px 13px;
}
.ir-enq-select__search::placeholder { color: #9a958c; }
.ir-enq-select__search:focus { outline: none; border-color: var(--color-ancient, #E2C58D); box-shadow: 0 0 0 2px rgba(226, 197, 141, .35); }

.ir-enq-select__list {
	flex: 1 1 auto;
	margin: 0;
	padding: 6px 0;
	list-style: none;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
.ir-enq-select__opt {
	padding: 11px 18px;
	font-size: 15px;
	line-height: 1.3;
	color: var(--color-black, #1a1a1a);
	cursor: pointer;
	transition: background-color .12s ease;
}
.ir-enq-select__opt[hidden] { display: none; }
.ir-enq-select__opt:hover,
.ir-enq-select__opt.is-active { background: var(--color-bg-1, #E5DFD3); }
.ir-enq-select__opt[aria-selected="true"] { font-weight: 600; background: var(--color-bg-2, #F6F2EF); }
.ir-enq-select__empty { padding: 14px 18px; font-size: 14px; color: #9a958c; }
.ir-enq-select__empty[hidden] { display: none; }
.ir-enq-select__flag { display: inline-block; vertical-align: middle; margin-right: 9px; position: relative; top: -1px; }

.ir-enq__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ir-enq__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 12px; }
.ir-enq__submit {
	background: var(--color-ancient, #E2C58D);
	color: var(--color-black, #1a1a1a);
	border: 0;
	border-radius: 0;
	padding: 15px 48px;
	font-family: inherit;
	font-weight: 600;
	font-size: 15px;
	letter-spacing: .01em;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(226, 197, 141, .22);
	transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.ir-enq__submit:hover,
.ir-enq__submit:focus {
	background: var(--color-secondary, #A97F2D);
	color: var(--color-white, #fff);
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgba(169, 127, 45, .35);
	outline: none;
}
.ir-enq__submit:disabled { opacity: .7; cursor: default; transform: none; box-shadow: none; }

.ir-enq__status { margin: 0; font-size: 15px; }
.ir-enq__status.is-ok { color: #bfe6cf; font-weight: 500; }
.ir-enq__status.is-error { color: #ff9b88; font-weight: 600; }

/* Prevent the page behind the popup from scrolling while it is open. */
body.ir-enq-open { overflow: hidden; }

/* Desktop / tablet (two-column, 681px and up — covers 1024, 1280, 1536, 1920,
   including 1280 monitors at 125% scaling which render at ~1024 CSS px):
   tighten vertical spacing so the whole form fits the viewport height with no
   inner scrollbar on the popup. */
@media (min-width: 681px) {
	.ir-enq { padding: 16px; }
	.ir-enq__dialog { padding: 40px 56px; }
	.ir-enq__head { margin: 0 56px 22px 0; }
	.ir-enq__title { font-size: 32px; }
	.ir-enq__lead { margin-top: 8px; font-size: 15px; }
	.ir-enq__field { margin-bottom: 14px; }
	.ir-enq__field label { font-size: 14px; margin-bottom: 7px; }
	.ir-enq__field input,
	.ir-enq__field select,
	.ir-enq-select__btn { padding: 15px 18px; }
	.ir-enq__field select,
	.ir-enq-select__btn { padding-right: 42px; }
	.ir-enq__field textarea { min-height: 90px; padding: 15px 18px; }
	.ir-enq__row { gap: 22px; }
	.ir-enq__actions { margin-top: 8px; }
	.ir-enq__submit { padding: 15px 46px; }
}

/* --- Phone: full-screen sheet, single column --- */
@media (max-width: 680px) {
	.ir-enq { padding: 0; }
	.ir-enq__overlay { -webkit-backdrop-filter: none; backdrop-filter: none; }
	.ir-enq__dialog {
		max-width: none;
		min-height: 100%;
		margin: 0;
		border: 0;
		border-radius: 0;
		padding: 68px 20px 32px;
	}
	.ir-enq__row { grid-template-columns: 1fr; gap: 0; }
	.ir-enq__head { margin: 0 44px 22px 0; }
	.ir-enq__title { font-size: 30px; }
	.ir-enq__close { top: 16px; right: 14px; }
	.ir-enq__submit { width: 100%; }
	.ir-enq__actions { gap: 14px; }
}

/* --- Small phone --- */
@media (max-width: 380px) {
	.ir-enq__dialog { padding: 62px 16px 28px; }
	.ir-enq__title { font-size: 25px; }
	.ir-enq__lead { font-size: 14px; }
	.ir-enq__field input,
	.ir-enq__field select,
	.ir-enq-select__btn,
	.ir-enq__field textarea { padding: 13px 14px; }
	.ir-enq-select__btn { padding-right: 40px; }
}
