/**
 * Giltech Mizpah — Premium Contact Form Stylesheet
 *
 * Exact implementation of the provided B2B luxury design:
 * - Two-column card container with dark radial gradient intro column
 * - Precision DM Sans / Manrope typography hierarchy
 * - Floating ring ambient overlay on intro section
 * - 2-column input grid with red focus halo
 * - High-conversion CTA button with arrow translate animation
 * - Mobile-responsive breakpoints (820px and 560px)
 * - Status alerts & instant WhatsApp chat dispatch container
 *
 * @package GiltechMizpah
 * @version 1.0.0
 */

:root {
	--gm-red: #FF0000;
	--gm-ink: #151515;
	--gm-muted: #737373;
	--gm-line: #E3E3E3;
	--gm-ease: cubic-bezier(.2, .72, .2, 1);
}

.gm-contact {
	width: 100%;
	padding: 45px clamp(12px, 4vw, 56px);
	background: linear-gradient(180deg, #fafaf8, #f1f1ee);
	font-family: "DM Sans", Manrope, Arial, sans-serif;
	color: var(--gm-ink);
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
}

.gm-contact *,
.gm-contact *::before,
.gm-contact *::after {
	box-sizing: border-box;
}

.gm-wrap {
	max-width: 1180px;
	margin: auto;
	display: grid;
	grid-template-columns: .78fr 1.22fr;
	background: #fff;
	border: 1px solid #dededb;
	border-radius: 21px;
	overflow: hidden;
	box-shadow: 0 22px 55px rgba(0, 0, 0, .07);
}

/* Left Column: Dark Ambient Introduction */
.gm-intro {
	position: relative;
	overflow: hidden;
	padding: 38px 30px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 35px;
	background: radial-gradient(circle at 100% 0, rgba(255, 0, 0, .2), transparent 17rem), linear-gradient(145deg, #1b1b1b, #090909);
	color: #fff;
}

.gm-intro::after {
	content: "";
	position: absolute;
	width: 250px;
	height: 250px;
	right: -100px;
	bottom: -100px;
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 50%;
	box-shadow: 0 0 0 28px rgba(255, 255, 255, .025), 0 0 0 58px rgba(255, 255, 255, .02);
	pointer-events: none;
}

.gm-intro-main,
.gm-note {
	position: relative;
	z-index: 1;
}

.gm-eyebrow {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 15px;
	font-size: 9px;
	text-transform: uppercase;
	letter-spacing: .17em;
	color: rgba(255, 255, 255, .66);
}

.gm-eyebrow::before {
	content: "";
	width: 25px;
	height: 2px;
	background: var(--gm-red);
	display: inline-block;
}

.gm-title {
	margin: 0;
	font-size: clamp(34px, 4vw, 48px);
	line-height: 1.03;
	letter-spacing: -.045em;
	font-weight: 400;
	color: #FFFFFF !important;
}

.gm-desc {
	max-width: 360px;
	margin: 15px 0 0;
	color: #FFFFFF !important;
	font-size: 12px;
	line-height: 1.8;
}

/* Intro paragraph is always white. Higher specificity so theme, Elementor or
   optimiser styles cannot override it. Colour-only, so responsive sizing above still applies. */
.gm-contact .gm-intro .gm-desc {
	color: #FFFFFF !important;
	-webkit-text-fill-color: #FFFFFF;
	opacity: 1;
}

.gm-note {
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, .14);
	color: rgba(255, 255, 255, .52);
	font-size: 9px;
	line-height: 1.7;
}

.gm-note strong {
	display: block;
	margin-bottom: 4px;
	color: #fff;
	font-size: 11px;
	font-weight: 500;
}

/* Right Column: Form Area */
.gm-form-area {
	padding: 32px clamp(20px, 4vw, 42px) 28px;
	background: #FFFFFF;
}

.gm-form-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	padding-bottom: 17px;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--gm-line);
}

.gm-form-head h3 {
	margin: 0;
	font-size: 20px;
	letter-spacing: -.025em;
	font-weight: 400;
	color: var(--gm-ink);
}

.gm-form-head p {
	margin: 5px 0 0;
	font-size: 10px;
	line-height: 1.6;
	color: var(--gm-muted);
}

.gm-required {
	color: #888;
	font-size: 8px;
	white-space: nowrap;
}

.gm-required span {
	color: var(--gm-red);
}

.gm-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 13px;
}

.gm-field {
	display: flex;
	flex-direction: column;
	gap: 7px;
	min-width: 0;
}

.gm-full {
	grid-column: 1 / -1;
}

.gm-field label {
	font-size: 10px;
	font-weight: 500;
	color: #353535;
	display: block;
}

.gm-field label span {
	color: var(--gm-red);
	margin-left: 3px;
}

.gm-field input,
.gm-field textarea {
	width: 100% !important;
	border: 1px solid #dedede !important;
	border-radius: 9px !important;
	background: #fbfbfa !important;
	color: var(--gm-ink) !important;
	font: 12px/1.5 "DM Sans", Arial, sans-serif !important;
	padding: 12px 13px !important;
	outline: 0 !important;
	box-shadow: none !important;
	transition: border-color .2s, box-shadow .2s, background .2s !important;
}

.gm-field input {
	height: 44px !important;
}

.gm-field textarea {
	min-height: 120px !important;
	resize: vertical !important;
}

.gm-field input::placeholder,
.gm-field textarea::placeholder {
	color: #a1a1a1 !important;
	opacity: 1;
}

.gm-field input:focus,
.gm-field textarea:focus {
	background: #fff !important;
	border-color: var(--gm-red) !important;
	box-shadow: 0 0 0 3px rgba(255, 0, 0, .07) !important;
}

.gm-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: 19px;
}

.gm-privacy {
	max-width: 220px;
	margin: 0;
	color: #929292;
	font-size: 8px;
	line-height: 1.6;
}

.gm-submit {
	height: 44px;
	padding: 0 17px;
	border: 1px solid var(--gm-red) !important;
	border-radius: 9px;
	background: var(--gm-red) !important;
	color: #fff !important;
	font: 500 9px "DM Sans", Arial, sans-serif !important;
	text-transform: uppercase;
	letter-spacing: .09em;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	cursor: pointer;
	transition: transform .22s var(--gm-ease), background .22s, box-shadow .22s;
}

.gm-submit .gm-submit-arrow {
	font-size: 15px;
	transition: transform .22s var(--gm-ease);
}

.gm-submit:hover:not(:disabled) {
	background: #d90000 !important;
	box-shadow: 0 8px 18px rgba(255, 0, 0, .15);
	transform: translateY(-2px);
}

.gm-submit:hover:not(:disabled) .gm-submit-arrow {
	transform: translateX(3px);
}

.gm-submit:disabled {
	opacity: 0.65;
	cursor: not-allowed;
	transform: none;
}

/* Submission Feedback Status Box */
.gm-status {
	display: none;
	margin-top: 13px;
	padding: 12px 14px;
	border: 1px solid var(--gm-line);
	border-radius: 8px;
	background: #f8f8f6;
	color: #555;
	font-size: 11px;
	line-height: 1.6;
}

.gm-status.visible {
	display: block;
	animation: gmStatusFadeIn 0.22s var(--gm-ease);
}

.gm-status--success {
	background: #F0FDF4;
	border-color: #BBF7D0;
	color: #166534;
}

.gm-status--error {
	background: #FEF2F2;
	border-color: #FECACA;
	color: #991B1B;
}

.gm-status--loading {
	background: #F8FAFC;
	border-color: #E2E8F0;
	color: #475569;
}

/* WhatsApp Immediate Action Button */
.gm-whatsapp-action {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid rgba(22, 101, 52, 0.2);
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
}

.gm-whatsapp-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	background: #25D366;
	color: #FFFFFF !important;
	font-weight: 600;
	font-size: 11px;
	border-radius: 6px;
	text-decoration: none !important;
	box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25);
	transition: background 0.2s ease, transform 0.2s ease;
}

.gm-whatsapp-btn:hover {
	background: #128C7E;
	color: #FFFFFF !important;
	transform: translateY(-1px);
}

.gm-whatsapp-icon {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

@keyframes gmStatusFadeIn {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ==========================================================================
   Responsive Breakpoints (Desktop & Mobile Friendly)
   ========================================================================== */

@media (max-width: 820px) {
	.gm-wrap {
		grid-template-columns: 1fr;
	}

	.gm-intro {
		padding: 29px 24px;
		gap: 28px;
	}

	.gm-title {
		font-size: 39px;
	}

	.gm-desc {
		max-width: 620px;
	}
}

@media (max-width: 560px) {
	.gm-contact {
		padding: 25px 10px;
	}

	.gm-wrap {
		border-radius: 15px;
	}

	.gm-intro {
		padding: 24px 19px;
	}

	.gm-title {
		font-size: 34px;
	}

	.gm-desc {
		font-size: 11px;
	}

	.gm-form-area {
		padding: 23px 16px 18px;
	}

	.gm-form-head {
		display: block;
	}

	.gm-required {
		display: block;
		margin-top: 7px;
	}

	.gm-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.gm-full {
		grid-column: auto;
	}

	.gm-field textarea {
		min-height: 110px;
	}

	.gm-bottom {
		display: flex;
		flex-direction: column;
		align-items: stretch;
	}

	.gm-privacy {
		max-width: none;
		order: 2;
	}

	.gm-submit {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		transition: none !important;
	}
}
