/* TargetWeb CRM — Request Information modal + form */

#tw-crm-popup,
.tw-crm-popup {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100000;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
}

#tw-crm-popup.is-open,
.tw-crm-popup.is-open {
	display: flex;
}

.tw-crm-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.5);
}

.tw-crm-popup__panel {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 48px);
	overflow: auto;
	background: #fff;
	border-radius: 6px;
	padding: 36px 40px 32px;
	box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
	font-family: inherit;
	color: #111;
	box-sizing: border-box;
}

.tw-crm-popup__close {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: transparent;
	color: #6b7280;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	border-radius: 4px;
	transition: color 0.15s ease, background 0.15s ease;
}

.tw-crm-popup__close:hover,
.tw-crm-popup__close:focus {
	color: #111;
	background: #f3f4f6;
	outline: none;
}

.tw-crm-form__title {
	margin: 0 0 24px;
	padding-right: 28px;
	font-size: 1.3rem;
	font-weight: 600;
	line-height: 1.3;
	color: #111;
}

.tw-crm-form {
	margin: 0;
}

.tw-crm-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 20px;
}

.tw-crm-form__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 16px;
	min-width: 0;
}

/* Author-level display:flex beats the UA [hidden] rule — restore hide. */
.tw-crm-form__field[hidden] {
	display: none;
}

.tw-crm-form__field label {
	font-size: 0.875rem;
	font-weight: 500;
	color: #111;
}

.tw-crm-form__req {
	color: #dc2626;
	margin-left: 1px;
}

.tw-crm-form__field input,
.tw-crm-form__field textarea,
.tw-crm-form__field select {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	padding: 10px 12px;
	font-size: 0.95rem;
	font-family: inherit;
	color: #111;
	background: #fff;
	line-height: 1.4;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tw-crm-form__field select {
	appearance: auto;
	cursor: pointer;
}

.tw-crm-form__field textarea {
	resize: vertical;
	min-height: 100px;
}

.tw-crm-form__field input:focus,
.tw-crm-form__field textarea:focus,
.tw-crm-form__field select:focus {
	outline: none;
	border-color: #9ca3af;
	box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.06);
}

.tw-crm-form__field input.is-invalid,
.tw-crm-form__field textarea.is-invalid {
	border-color: #dc2626;
}

.tw-crm-form__feedback {
	margin: 0 0 14px;
	padding: 10px 12px;
	border-radius: 4px;
	font-size: 0.875rem;
	line-height: 1.4;
}

.tw-crm-form__feedback.is-success {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.tw-crm-form__feedback.is-error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.tw-crm-form__submit {
	display: block;
	width: 100%;
	border: 0;
	border-radius: 4px;
	background: #111;
	color: #fff;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	padding: 14px 16px;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.15s ease, opacity 0.15s ease;
}

.tw-crm-form__submit:hover:not(:disabled) {
	background: #000;
}

.tw-crm-form__submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

body.tw-crm-popup-open {
	overflow: hidden;
}

@media (max-width: 560px) {
	.tw-crm-popup__panel {
		padding: 28px 20px 24px;
	}

	.tw-crm-form__row {
		grid-template-columns: 1fr;
	}
}
