/* Urban Innovate — gated download modal.
   Self-contained; uses the theme's CSS variables when present with fallbacks. */

.uic-modal[hidden] { display: none; }
.uic-modal {
	position: fixed; inset: 0; z-index: 1000;
	display: flex; align-items: center; justify-content: center;
	padding: 20px;
}
.uic-modal__backdrop {
	position: absolute; inset: 0;
	background: rgba(12, 29, 43, .62);
	backdrop-filter: blur(3px);
}
.uic-modal__panel {
	position: relative; z-index: 1;
	width: 100%; max-width: 440px;
	background: #fff; border-radius: 16px;
	padding: 34px 32px 30px;
	box-shadow: 0 40px 90px -30px rgba(16, 34, 52, .5);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	animation: uic-pop .25s cubic-bezier(.2, .7, .2, 1);
}
@keyframes uic-pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .uic-modal__panel { animation: none; } }

.uic-modal__close {
	position: absolute; top: 12px; right: 14px;
	background: none; border: 0; font-size: 28px; line-height: 1;
	color: var(--ink3, #7088a0); cursor: pointer; padding: 4px 8px; border-radius: 8px;
}
.uic-modal__close:hover { background: var(--bg2, #f5f8fa); color: var(--ink, #102234); }
.uic-modal__title {
	font-family: 'Sora', sans-serif; font-size: 22px; font-weight: 700;
	color: var(--ink, #102234); margin: 0 0 6px; letter-spacing: -.02em;
}
.uic-modal__intro { font-size: 14px; color: var(--ink2, #3c5267); margin: 0 0 20px; line-height: 1.55; }

.uic-field { display: block; margin-bottom: 16px; }
.uic-field > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink, #102234); margin-bottom: 7px; }
.uic-field input,
.uic-field textarea {
	width: 100%; background: var(--bg2, #f5f8fa);
	border: 1.5px solid var(--border2, #d4e1ea); border-radius: 9px;
	padding: 12px 14px; font-size: 14px; color: var(--ink, #102234);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	transition: border-color .2s, box-shadow .2s;
}
.uic-field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.uic-field input:focus,
.uic-field textarea:focus {
	outline: none; border-color: var(--teal, #1a7fa8); background: #fff;
	box-shadow: 0 0 0 3px rgba(26, 127, 168, .12);
}
.uic-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink2, #3c5267); margin-bottom: 14px; line-height: 1.45; cursor: pointer; }
.uic-check input { margin-top: 2px; flex-shrink: 0; }
.uic-consent { font-size: 12px; color: var(--ink3, #7088a0); margin: 0 0 18px; line-height: 1.5; }
.uic-consent a { color: var(--teal, #1a7fa8); text-decoration: underline; }

.uic-modal__submit {
	width: 100%; background: var(--teal, #1a7fa8); color: #fff;
	border: 0; border-radius: 8px; padding: 13px 20px;
	font-size: 15px; font-weight: 600; font-family: inherit; cursor: pointer;
	transition: background .2s, transform .2s;
}
.uic-modal__submit:hover:not(:disabled) { background: var(--teal-bright, #2ba0ce); transform: translateY(-1px); }
.uic-modal__submit:disabled { opacity: .65; cursor: progress; }

.uic-modal__msg { font-size: 13px; margin: 12px 0 0; min-height: 18px; text-align: center; }
.uic-modal__msg.is-error { color: #c0392b; }
.uic-modal__msg.is-success { color: var(--green-dark, #5e9a1a); }

/* Honeypot — visually + programmatically hidden but still submitted. */
.uic-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

body.uic-modal-open { overflow: hidden; }

.uic-modal__panel :focus-visible { outline: 3px solid var(--teal-bright, #2ba0ce); outline-offset: 2px; }

/* Hide the reCAPTCHA v3 badge. Google permits this only when the required
   attribution text is shown instead — the plugin prints .uic-recaptcha-note. */
.grecaptcha-badge { visibility: hidden !important; }
.uic-recaptcha-note {
	margin: 0; padding: 18px 32px 22px;
	background: var(--dark, #0c1d2b); color: rgba(255, 255, 255, .45);
	font-size: 11px; line-height: 1.5;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; text-align: center;
}
.uic-recaptcha-note a { color: rgba(255, 255, 255, .7); text-decoration: underline; }
.uic-recaptcha-note a:hover { color: #fff; }
@media (max-width: 560px) { .uic-recaptcha-note { padding: 14px 20px 18px; } }
