/* TargetWeb CRM — theme-owned Request Information modal */

body.tw-crm-theme-modal-open {
	overflow: hidden;
}

#tw-crm-popup.tw-crm-theme-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100000;
	align-items: center;
	justify-content: center;
	padding: 28px 20px;
	box-sizing: border-box;
}

#tw-crm-popup.tw-crm-theme-modal.is-open {
	display: flex;
}

.tw-crm-theme-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 12, 16, 0.62);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.tw-crm-theme-modal__panel {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 56px);
	overflow: auto;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.06);
	box-sizing: border-box;
	animation: tw-crm-theme-modal-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes tw-crm-theme-modal-in {
	from {
		opacity: 0;
		transform: translateY(18px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.tw-crm-theme-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	cursor: pointer;
	padding: 0;
	z-index: 2;
	transition: background 0.18s ease, transform 0.18s ease;
}

.tw-crm-theme-modal__close:hover,
.tw-crm-theme-modal__close:focus {
	background: #fff;
	color: var(--color-dark, #111);
	outline: none;
	transform: rotate(90deg);
}

.tw-crm-theme-modal__close svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2.2;
	stroke-linecap: round;
}

.tw-crm-theme-modal__header {
	padding: 32px 36px 26px;
	background:
		radial-gradient(circle at 88% 0%, rgba(230, 48, 48, 0.28), transparent 42%),
		linear-gradient(160deg, #16181c 0%, #22262c 100%);
	color: #fff;
}

.tw-crm-theme-modal__icon {
	width: 48px;
	height: 48px;
	margin-bottom: 16px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--color-primary, #e63030);
	box-shadow: 0 10px 22px rgba(230, 48, 48, 0.35);
}

.tw-crm-theme-modal__icon svg {
	width: 22px;
	height: 22px;
	stroke: #fff;
	fill: none;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tw-crm-theme-modal__eyebrow {
	margin: 0 0 8px;
	font-family: var(--font-heading, 'Oswald', sans-serif);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.62);
}

.tw-crm-theme-modal__header h2 {
	margin: 0 0 8px;
	padding-right: 36px;
	font-family: var(--font-heading, 'Oswald', sans-serif);
	font-size: 28px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: none;
	line-height: 1.15;
	color: #fff;
}

.tw-crm-theme-modal__lede {
	margin: 0;
	max-width: 36em;
	font-family: var(--font-body, 'Inter', sans-serif);
	font-size: 14px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.72);
}

.tw-crm-theme-modal__product {
	display: inline-flex;
	align-items: center;
	margin: 16px 0 0;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.12);
	font-family: var(--font-body, 'Inter', sans-serif);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	color: #fff;
}

.tw-crm-theme-modal__product[hidden] {
	display: none;
}

.tw-crm-theme-modal__product::before {
	content: '';
	width: 7px;
	height: 7px;
	margin-right: 8px;
	border-radius: 50%;
	background: var(--color-primary, #e63030);
	box-shadow: 0 0 0 4px rgba(230, 48, 48, 0.22);
}

#tw-crm-popup.tw-crm-theme-modal .tw-crm-form__title,
#tw-crm-popup.tw-crm-theme-modal .tw-crm-popup__close {
	display: none;
}

#tw-crm-popup.tw-crm-theme-modal #leads-form-div {
	padding: 26px 36px 8px;
}

#tw-crm-popup.tw-crm-theme-modal .tw-crm-form__row {
	gap: 14px 16px;
}

#tw-crm-popup.tw-crm-theme-modal .tw-crm-form__field {
	margin-bottom: 14px;
	gap: 7px;
}

#tw-crm-popup.tw-crm-theme-modal .tw-crm-form__field label {
	font-family: var(--font-body, 'Inter', sans-serif);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: none;
	color: #3a3f46;
}

#tw-crm-popup.tw-crm-theme-modal .tw-crm-form__req {
	color: var(--color-primary, #e63030);
}

#tw-crm-popup.tw-crm-theme-modal .tw-crm-form__field input,
#tw-crm-popup.tw-crm-theme-modal .tw-crm-form__field textarea,
#tw-crm-popup.tw-crm-theme-modal .tw-crm-form__field select {
	border: 1px solid #e4e6ea;
	border-radius: 10px;
	padding: 13px 14px;
	background: #f6f7f9;
	font-family: var(--font-body, 'Inter', sans-serif);
	font-size: 15px;
	color: var(--color-dark, #111);
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

#tw-crm-popup.tw-crm-theme-modal .tw-crm-form__field textarea {
	min-height: 92px;
}

#tw-crm-popup.tw-crm-theme-modal .tw-crm-form__field input:hover,
#tw-crm-popup.tw-crm-theme-modal .tw-crm-form__field textarea:hover,
#tw-crm-popup.tw-crm-theme-modal .tw-crm-form__field select:hover {
	border-color: #cfd3d8;
	background: #fff;
}

#tw-crm-popup.tw-crm-theme-modal .tw-crm-form__field input:focus,
#tw-crm-popup.tw-crm-theme-modal .tw-crm-form__field textarea:focus,
#tw-crm-popup.tw-crm-theme-modal .tw-crm-form__field select:focus {
	border-color: var(--color-primary, #e63030);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(230, 48, 48, 0.12);
}

#tw-crm-popup.tw-crm-theme-modal .tw-crm-form__field input.is-invalid,
#tw-crm-popup.tw-crm-theme-modal .tw-crm-form__field textarea.is-invalid {
	border-color: var(--color-primary, #e63030);
	background: #fff7f7;
}

#tw-crm-popup.tw-crm-theme-modal .tw-crm-form__feedback {
	border-radius: 10px;
}

#tw-crm-popup.tw-crm-theme-modal .tw-crm-form__submit {
	margin-top: 4px;
	border-radius: 12px;
	background: var(--color-primary, #e63030);
	text-transform: none;
	letter-spacing: 0.01em;
	font-family: var(--font-heading, 'Oswald', sans-serif);
	font-size: 16px;
	font-weight: 600;
	padding: 15px 18px;
	box-shadow: 0 10px 22px rgba(230, 48, 48, 0.28);
}

#tw-crm-popup.tw-crm-theme-modal .tw-crm-form__submit:hover:not(:disabled) {
	background: #c92222;
	box-shadow: 0 12px 26px rgba(201, 34, 34, 0.32);
}

.tw-crm-theme-modal__note {
	margin: 0;
	padding: 0 36px 28px;
	font-family: var(--font-body, 'Inter', sans-serif);
	font-size: 12px;
	line-height: 1.5;
	color: #7a818a;
	text-align: center;
}

@media (max-width: 600px) {
	#tw-crm-popup.tw-crm-theme-modal {
		padding: 0;
		align-items: flex-end;
	}

	.tw-crm-theme-modal__panel {
		max-width: none;
		max-height: calc(100vh - 12px);
		border-radius: 20px 20px 0 0;
	}

	.tw-crm-theme-modal__header,
	#tw-crm-popup.tw-crm-theme-modal #leads-form-div,
	.tw-crm-theme-modal__note {
		padding-left: 22px;
		padding-right: 22px;
	}

	.tw-crm-theme-modal__header {
		padding-top: 28px;
		padding-bottom: 22px;
	}

	.tw-crm-theme-modal__header h2 {
		font-size: 24px;
	}

	#tw-crm-popup.tw-crm-theme-modal .tw-crm-form__row {
		grid-template-columns: 1fr;
	}
}
