/**
 * Pyrotech Enquiry Now Modal Styles
 * Refined for wide, open, premium layout with generous width and breathing room.
 */

/* Force clean, legible typography and smooth font rendering */
.pyrotech-enquiry-modal,
.pyrotech-enquiry-modal * {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	box-sizing: border-box;
}

.pyrotech-enquiry-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.24s ease, visibility 0.24s ease;
}

.pyrotech-enquiry-modal.is-open {
	opacity: 1;
	visibility: visible;
}

/* Dark semi-transparent backdrop */
.pyrotech-enquiry-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.65);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	cursor: pointer;
}

/* Main Modal Card — Increased width for luxurious, open desktop view */
.pyrotech-enquiry-modal__dialog {
	position: relative;
	z-index: 2;
	display: flex;
	width: 100%;
	max-width: 1140px;
	max-height: 92vh;
	background: #ffffff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow:
		0 30px 70px -15px rgba(0, 0, 0, 0.45),
		0 0 0 1px rgba(0, 0, 0, 0.06);
	transform: scale(0.96) translateY(6px);
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	box-sizing: border-box;
}

.pyrotech-enquiry-modal.is-open .pyrotech-enquiry-modal__dialog {
	transform: scale(1) translateY(0);
}

/* -------------------------------------------------------------
   LEFT COLUMN: Architectural Skyscraper + Contact Info
------------------------------------------------------------- */
.pyrotech-enquiry-modal__aside {
	position: relative;
	width: 36%;
	min-width: 340px;
	background-color: #0f172a;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 60px 42px;
	box-sizing: border-box;
	color: #ffffff;
}

.pyrotech-enquiry-modal__aside-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(15, 23, 42, 0.68) 0%,
		rgba(15, 23, 42, 0.86) 100%
	);
	z-index: 1;
}

.pyrotech-enquiry-modal__aside-content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 46px;
}

.pyrotech-enquiry-modal__info-item {
	display: flex;
	align-items: flex-start;
	gap: 18px;
}

.pyrotech-enquiry-modal__info-icon {
	flex-shrink: 0;
	color: #94a3b8;
	margin-top: 2px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pyrotech-enquiry-modal__info-text {
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.pyrotech-enquiry-modal__info-label {
	font-size: 15px;
	font-weight: 600;
	color: #ffffff;
	letter-spacing: 0.02em;
	word-spacing: 0.1em;
	line-height: 1.25;
}

.pyrotech-enquiry-modal__info-val {
	font-size: 14px;
	line-height: 1.7;
	color: #e2e8f0;
	margin: 0 !important;
	word-break: break-word;
	font-weight: 400;
	word-spacing: 0.12em;
}

.pyrotech-enquiry-modal__info-link {
	color: #e2e8f0;
	text-decoration: none;
	transition: color 0.18s ease;
}

.pyrotech-enquiry-modal__info-link:hover {
	color: #ffffff;
	text-decoration: underline;
}

/* -------------------------------------------------------------
   RIGHT COLUMN: "Send Us A Message" Form
------------------------------------------------------------- */
.pyrotech-enquiry-modal__main {
	position: relative;
	width: 64%;
	padding: 48px 52px;
	box-sizing: border-box;
	background: #ffffff;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
}

/* Close button 'X' */
.pyrotech-enquiry-modal__close-btn {
	position: absolute;
	top: 22px;
	right: 26px;
	background: transparent;
	border: none;
	font-size: 28px;
	line-height: 1;
	color: #94a3b8;
	cursor: pointer;
	padding: 6px;
	border-radius: 4px;
	transition: color 0.18s ease, transform 0.18s ease;
}

.pyrotech-enquiry-modal__close-btn:hover {
	color: #0f172a;
	transform: scale(1.1);
}

/* Header Title */
.pyrotech-enquiry-modal__title {
	font-size: 26px;
	font-weight: 700;
	color: #1e293b;
	margin: 0 0 28px 0 !important;
	padding-right: 40px;
	line-height: 1.3;
	letter-spacing: -0.015em;
	word-spacing: 0.14em;
}

/* Form Structure */
.pyrotech-enquiry-modal__form {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 0;
}

.pyrotech-enquiry-modal__row {
	display: flex;
	gap: 22px;
	width: 100%;
}

.pyrotech-enquiry-modal__field {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.pyrotech-enquiry-modal__field--full {
	width: 100%;
}

/* Name Row dedicated spacing */
.pyrotech-enquiry-modal__field--name {
	margin-bottom: 2px;
}

.pyrotech-enquiry-modal__field--name .pyrotech-enquiry-modal__input {
	padding: 12px 16px;
	font-size: 14.5px;
	line-height: 1.5;
	word-spacing: 0.2em;
	letter-spacing: 0.015em;
	height: 46px;
}

/* Labels */
.pyrotech-enquiry-modal__label {
	font-size: 13.5px;
	font-weight: 600;
	color: #334155;
	line-height: 1.4;
	margin: 0 !important;
	display: inline-flex;
	align-items: center;
	word-spacing: 0.16em;
	letter-spacing: 0.01em;
}

.pyrotech-enquiry-modal__req {
	color: #ef4444 !important;
	font-weight: 700;
	font-size: 14px;
	margin: 0 0 0 4px !important;
	display: inline-block;
}

/* Inputs, Select, Textarea */
.pyrotech-enquiry-modal__input,
.pyrotech-enquiry-modal__select,
.pyrotech-enquiry-modal__textarea {
	width: 100%;
	font-size: 14px;
	line-height: 1.5;
	color: #0f172a;
	background-color: #ffffff;
	border: 1px solid #d1d5db;
	border-radius: 5px;
	padding: 11px 15px;
	box-sizing: border-box;
	word-spacing: 0.18em;
	letter-spacing: 0.01em;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.pyrotech-enquiry-modal__input::placeholder,
.pyrotech-enquiry-modal__textarea::placeholder {
	color: #94a3b8;
	font-size: 13.5px;
	word-spacing: 0.18em;
	letter-spacing: 0.01em;
	opacity: 1;
}

.pyrotech-enquiry-modal__input::-webkit-input-placeholder,
.pyrotech-enquiry-modal__textarea::-webkit-input-placeholder {
	color: #94a3b8;
	opacity: 1;
}

.pyrotech-enquiry-modal__input::-moz-placeholder,
.pyrotech-enquiry-modal__textarea::-moz-placeholder {
	color: #94a3b8;
	opacity: 1;
}

.pyrotech-enquiry-modal__input:-ms-input-placeholder,
.pyrotech-enquiry-modal__textarea:-ms-input-placeholder {
	color: #94a3b8;
	opacity: 1;
}

.pyrotech-enquiry-modal__input:focus,
.pyrotech-enquiry-modal__select:focus,
.pyrotech-enquiry-modal__textarea:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.pyrotech-enquiry-modal__textarea {
	height: 78px;
	resize: vertical;
	line-height: 1.5;
}

/* Custom Select Dropdown with Chevron */
.pyrotech-enquiry-modal__select-wrap {
	position: relative;
	width: 100%;
}

.pyrotech-enquiry-modal__select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding-right: 36px;
	cursor: pointer;
}

.pyrotech-enquiry-modal__select-wrap::after {
	content: "";
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-70%) rotate(45deg);
	width: 7px;
	height: 7px;
	border-right: 2px solid #6b7280;
	border-bottom: 2px solid #6b7280;
	pointer-events: none;
}

/* Submit Action Button (Clean blue outline matching brand) */
.pyrotech-enquiry-modal__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 6px;
}

.pyrotech-enquiry-modal__submit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	color: #2563eb;
	border: 1.5px solid #2563eb;
	border-radius: 4px;
	padding: 10px 32px;
	font-size: 14.5px;
	font-weight: 500;
	cursor: pointer;
	line-height: 1.4;
	word-spacing: 0.16em;
	letter-spacing: 0.01em;
	transition:
		background-color 0.2s ease,
		color 0.2s ease,
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

.pyrotech-enquiry-modal__submit-btn:hover {
	background-color: #2563eb;
	color: #ffffff;
	border-color: #2563eb;
	box-shadow: 0 3px 12px rgba(37, 99, 235, 0.28);
}

.pyrotech-enquiry-modal__submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Loading spinner */
.pyrotech-enquiry-modal__btn-spinner {
	display: none;
	width: 13px;
	height: 13px;
	margin-left: 8px;
	border: 2px solid rgba(37, 99, 235, 0.3);
	border-radius: 50%;
	border-top-color: #2563eb;
	animation: pyrotech-spin 0.6s linear infinite;
}

.pyrotech-enquiry-modal__submit-btn.is-loading .pyrotech-enquiry-modal__btn-spinner {
	display: inline-block;
}

@keyframes pyrotech-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Feedback alert container */
.pyrotech-enquiry-modal__feedback {
	font-size: 13.5px;
	line-height: 1.45;
	border-radius: 4px;
	transition: all 0.2s ease;
	word-spacing: 0.12em;
}

.pyrotech-enquiry-modal__feedback:empty {
	display: none;
}

.pyrotech-enquiry-modal__feedback.is-success {
	display: block;
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
	padding: 10px 14px;
}

.pyrotech-enquiry-modal__feedback.is-error {
	display: block;
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
	padding: 10px 14px;
}

/* Error highlight on invalid input */
.pyrotech-enquiry-modal__input.has-error {
	border-color: #ef4444;
	background-color: #fffaf0;
}

/* -------------------------------------------------------------
   RESPONSIVE DESIGN (Tablets & Mobile)
------------------------------------------------------------- */
@media (max-width: 992px) {
	.pyrotech-enquiry-modal__dialog {
		max-width: 95%;
	}

	.pyrotech-enquiry-modal__aside {
		width: 40%;
		min-width: 280px;
		padding: 44px 30px;
	}

	.pyrotech-enquiry-modal__main {
		width: 60%;
		padding: 36px 36px;
	}
}

@media (max-width: 768px) {
	.pyrotech-enquiry-modal {
		padding: 12px;
	}

	.pyrotech-enquiry-modal__dialog {
		flex-direction: column;
		max-height: 94vh;
	}

	.pyrotech-enquiry-modal__aside {
		width: 100%;
		min-width: 0;
		padding: 32px 24px;
	}

	.pyrotech-enquiry-modal__aside-content {
		gap: 24px;
	}

	.pyrotech-enquiry-modal__main {
		width: 100%;
		padding: 32px 24px;
	}

	.pyrotech-enquiry-modal__row {
		flex-direction: column;
		gap: 16px;
	}

	.pyrotech-enquiry-modal__textarea {
		height: 64px;
	}
}
