/* ════════════════════════════════════════════════════════════════════════
   GIZMOTT MODALS — Contact + Demo
   ════════════════════════════════════════════════════════════════════════
   Used by: inc/modals.php
   Triggered: any element with class .gz-open-contact OR .gz-open-demo
   Brand alignment: black/cyan/pink palette, Bebas Neue display heading,
                    Inter body, matches micro-drama and home page hero.
   ════════════════════════════════════════════════════════════════════════ */

.gz-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: flex-start;
	justify-content: center;
	padding: 40px 20px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
.gz-modal.is-open {
	display: flex;
}

/* Backdrop ─────────────────────────────────────────────────────────── */
.gz-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(5, 6, 10, 0.78);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	cursor: pointer;
	animation: gzFade 0.2s ease-out;
}

/* Shell ────────────────────────────────────────────────────────────── */
.gz-modal-shell {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 480px;
	background: #0A0C12;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	padding: 36px 32px 28px;
	margin: auto 0;
	animation: gzSlideUp 0.28s cubic-bezier(0.2, 0.7, 0.3, 1);
	color: #F5F5F8;
	font-family: 'Inter', -apple-system, sans-serif;
}
.gz-modal-shell-wide {
	max-width: 720px;
}

/* Close button ─────────────────────────────────────────────────────── */
.gz-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 4px;
	color: rgba(245, 245, 248, 0.6);
	cursor: pointer;
	transition: all 0.15s ease;
}
.gz-modal-close:hover {
	color: #F5F5F8;
	border-color: rgba(255, 255, 255, 0.25);
	background: rgba(255, 255, 255, 0.04);
}

/* Header ───────────────────────────────────────────────────────────── */
.gz-modal-head {
	margin-bottom: 24px;
}
.gz-modal-eyebrow {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #FF5BD1;
	margin-bottom: 10px;
}
.gz-modal-demo .gz-modal-eyebrow {
	color: #26D6FF;
}
.gz-modal-h {
	font-family: 'Bebas Neue', 'Oswald', sans-serif;
	font-weight: 400;
	font-size: clamp(28px, 4vw, 40px);
	letter-spacing: 1.5px;
	line-height: 0.92;
	color: #F5F5F8;
	margin: 0 0 12px;
}
.gz-modal-h .pk { color: #FF5BD1; }
.gz-modal-h .cy { color: #26D6FF; }
.gz-modal-sub {
	font-size: 13px;
	font-weight: 300;
	color: rgba(245, 245, 248, 0.55);
	line-height: 1.6;
	margin: 0;
}

/* Form fields ──────────────────────────────────────────────────────── */
.gz-modal-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.gz-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.gz-field label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(245, 245, 248, 0.55);
}
.gz-field label .gz-optional {
	font-weight: 400;
	letter-spacing: 0.04em;
	text-transform: none;
	color: rgba(245, 245, 248, 0.35);
	margin-left: 4px;
}
.gz-field input,
.gz-field select,
.gz-field textarea {
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	color: #F5F5F8;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 4px;
	padding: 11px 14px;
	width: 100%;
	box-sizing: border-box;
	transition: border-color 0.15s ease, background 0.15s ease;
	outline: none;
}
.gz-field input:focus,
.gz-field select:focus,
.gz-field textarea:focus {
	border-color: #26D6FF;
	background: rgba(38, 214, 255, 0.04);
}
.gz-field input::placeholder,
.gz-field textarea::placeholder {
	color: rgba(245, 245, 248, 0.3);
}
.gz-field textarea {
	resize: vertical;
	min-height: 90px;
	font-family: inherit;
}
.gz-field select {
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%23F5F5F8' stroke-width='1.3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 14px;
	padding-right: 36px;
}

/* Honeypot — invisible to humans, present in DOM for bots ──────────── */
.gz-honeypot {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

/* Footer / Submit ──────────────────────────────────────────────────── */
.gz-modal-footer {
	margin-top: 8px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.gz-modal-submit {
	position: relative;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #05060A;
	background: #FF5BD1;
	border: none;
	border-radius: 3px;
	padding: 13px 28px;
	cursor: pointer;
	transition: opacity 0.15s ease, transform 0.1s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 46px;
}
.gz-modal-submit:hover:not(:disabled) {
	opacity: 0.88;
}
.gz-modal-submit:active:not(:disabled) {
	transform: translateY(1px);
}
.gz-modal-submit:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
.gz-btn-spin {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(5, 6, 10, 0.2);
	border-top-color: #05060A;
	border-radius: 50%;
	animation: gzSpin 0.7s linear infinite;
}
.gz-modal-submit.is-loading .gz-btn-label,
.gz-modal-submit.is-loading .gz-btn-arr {
	display: none;
}
.gz-modal-submit.is-loading .gz-btn-spin {
	display: inline-block;
}
.gz-modal-note {
	font-size: 11px;
	font-weight: 300;
	color: rgba(245, 245, 248, 0.4);
	text-align: center;
	line-height: 1.5;
}

/* Status line (success/error) ──────────────────────────────────────── */
.gz-modal-status {
	margin-top: 14px;
	padding: 12px 14px;
	border-radius: 4px;
	font-size: 13px;
	line-height: 1.5;
	display: none;
}
.gz-modal-status.is-success {
	display: block;
	background: rgba(38, 214, 255, 0.08);
	border-left: 3px solid #26D6FF;
	color: rgba(245, 245, 248, 0.85);
}
.gz-modal-status.is-error {
	display: block;
	background: rgba(255, 91, 209, 0.08);
	border-left: 3px solid #FF5BD1;
	color: rgba(245, 245, 248, 0.85);
}

/* Calendly mount ───────────────────────────────────────────────────── */
.gz-calendly-mount {
	width: 100%;
	min-height: 640px;
	background: rgba(255, 255, 255, 0.02);
	border-radius: 4px;
}
.gz-calendly-mount iframe {
	width: 100%;
	min-height: 640px;
	border: 0;
	border-radius: 4px;
}

/* Mobile ───────────────────────────────────────────────────────────── */
@media (max-width: 540px) {
	.gz-modal {
		padding: 0;
	}
	.gz-modal-shell {
		max-width: none;
		border-radius: 0;
		min-height: 100vh;
		min-height: 100dvh;
		padding: 60px 20px 24px;
	}
	.gz-modal-shell-wide {
		max-width: none;
	}
	.gz-modal-close {
		top: 16px;
		right: 16px;
	}
	.gz-modal-h {
		font-size: 28px;
	}
	.gz-calendly-mount,
	.gz-calendly-mount iframe {
		min-height: 80vh;
	}
}

/* Animations ───────────────────────────────────────────────────────── */
@keyframes gzFade {
	from { opacity: 0; }
	to   { opacity: 1; }
}
@keyframes gzSlideUp {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: translateY(0); }
}
@keyframes gzSpin {
	to { transform: rotate(360deg); }
}

/* Body lock when modal is open ─────────────────────────────────────── */
body.gz-modal-open {
	overflow: hidden;
}

/* reCAPTCHA badge — keep visible but reposition (Google ToS allows this) */
.grecaptcha-badge {
	z-index: 999998 !important;
}
