/**
 * TVS Privacy Requests — frontend styles
 * Brand: #F1C349 gold
 *
 * Specificity is intentionally hardened (`#tvspr-wrap`) so theme styles
 * (Astra h2 serif, etc.) don't bleed into the form.
 */

/* ============ ROOT WRAPPER ============ */
#tvspr-wrap {
	max-width: 760px;
	margin: 0 auto;
	padding: 0 4px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	color: #1f2937;
	line-height: 1.55;
	box-sizing: border-box;
	width: 100%;
	overflow-x: hidden;
}

#tvspr-wrap *,
#tvspr-wrap *::before,
#tvspr-wrap *::after {
	box-sizing: border-box;
	max-width: 100%;
}

/* ============ INTRO ============ */
#tvspr-wrap .tvspr-intro {
	margin-bottom: 28px;
}

#tvspr-wrap .tvspr-title,
#tvspr-wrap h2.tvspr-title {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif !important;
	font-size: 24px;
	line-height: 1.25;
	margin: 0 0 14px;
	color: #111827;
	font-weight: 700;
	letter-spacing: -0.01em;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

#tvspr-wrap .tvspr-lede {
	font-size: 14px;
	color: #4b5563;
	margin: 0 0 12px;
	line-height: 1.6;
}

/* ============ SECTIONS ============ */
#tvspr-wrap .tvspr-section {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 18px 16px 8px;
	margin: 0 0 18px;
	background: #ffffff;
	min-width: 0;
}

#tvspr-wrap .tvspr-section legend {
	padding: 0 8px;
	font-weight: 600;
	font-size: 15px;
	color: #111827;
	background: #ffffff;
	font-family: inherit;
}

/* ============ ROWS ============ */
#tvspr-wrap .tvspr-row {
	margin-bottom: 14px;
	min-width: 0;
}

#tvspr-wrap .tvspr-row--two {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	min-width: 0;
}

@media (max-width: 600px) {
	#tvspr-wrap .tvspr-row--two {
		grid-template-columns: 1fr;
	}
}

#tvspr-wrap .tvspr-col {
	min-width: 0;
}

#tvspr-wrap .tvspr-label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	color: #1f2937;
	font-size: 14px;
	line-height: 1.4;
}

#tvspr-wrap .tvspr-req {
	color: #dc2626;
	margin-left: 4px;
}

#tvspr-wrap .tvspr-help {
	font-size: 12px;
	color: #6b7280;
	margin: 6px 0 0;
	line-height: 1.5;
}

#tvspr-wrap .tvspr-help--warn {
	color: #92400e;
	background: #fef3c7;
	padding: 8px 12px;
	border-radius: 4px;
	border-left: 3px solid #F1C349;
	font-size: 12px;
}

/* ============ INPUTS ============ */
#tvspr-wrap .tvspr-form input[type="text"],
#tvspr-wrap .tvspr-form input[type="email"],
#tvspr-wrap .tvspr-form input[type="tel"],
#tvspr-wrap .tvspr-form select,
#tvspr-wrap .tvspr-form textarea {
	width: 100%;
	max-width: 100%;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	padding: 10px 12px;
	font-size: 16px; /* 16px prevents iOS auto-zoom on focus */
	font-family: inherit;
	color: #111827;
	background: #ffffff;
	transition: border-color 0.15s, box-shadow 0.15s;
	box-sizing: border-box;
	display: block;
	-webkit-appearance: none;
	appearance: none;
	min-width: 0;
}

/* Native select chevron */
#tvspr-wrap .tvspr-form select {
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3e%3cpath fill='%236b7280' d='M6 8L0 0h12z'/%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
}

#tvspr-wrap .tvspr-form input:focus,
#tvspr-wrap .tvspr-form select:focus,
#tvspr-wrap .tvspr-form textarea:focus {
	outline: none;
	border-color: #F1C349;
	box-shadow: 0 0 0 3px rgba(241, 195, 73, 0.25);
}

#tvspr-wrap .tvspr-form textarea {
	resize: vertical;
	min-height: 96px;
	font-family: inherit;
}

/* ============ RADIO + CHECKBOX ============ */
#tvspr-wrap .tvspr-radio,
#tvspr-wrap .tvspr-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	margin-bottom: 10px;
	cursor: pointer;
	color: #1f2937;
	line-height: 1.5;
	min-width: 0;
}

#tvspr-wrap .tvspr-radio input,
#tvspr-wrap .tvspr-check input {
	margin-top: 3px;
	flex-shrink: 0;
	cursor: pointer;
	width: 16px;
	height: 16px;
}

#tvspr-wrap .tvspr-radio span,
#tvspr-wrap .tvspr-check span {
	flex: 1;
	min-width: 0;
}

/* ============ RIGHTS CARDS ============ */
#tvspr-wrap .tvspr-rights {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

#tvspr-wrap .tvspr-rights .tvspr-check {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	padding: 12px 14px;
	margin: 0;
	transition: background 0.15s, border-color 0.15s;
}

#tvspr-wrap .tvspr-rights .tvspr-check:hover {
	background: #fef9eb;
	border-color: #F1C349;
}

#tvspr-wrap .tvspr-rights .tvspr-check:has(input:checked) {
	background: #fef9eb;
	border-color: #F1C349;
}

#tvspr-wrap .tvspr-rights strong {
	display: block;
	font-size: 14px;
	margin-bottom: 4px;
	color: #111827;
}

#tvspr-wrap .tvspr-rdesc {
	display: block;
	font-size: 13px;
	color: #6b7280;
	font-weight: normal;
	line-height: 1.5;
}

#tvspr-wrap .tvspr-attest {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	padding: 12px 14px;
	margin-bottom: 10px;
	font-size: 13px;
	line-height: 1.5;
}

/* ============ HONEYPOT ============ */
#tvspr-wrap .tvspr-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

/* ============ SUBMIT BUTTON ============ */
#tvspr-wrap .tvspr-actions {
	text-align: center;
	margin: 18px 0 6px;
}

#tvspr-wrap .tvspr-submit {
	background: #F1C349;
	color: #1f2937;
	font-weight: 700;
	font-size: 15px;
	padding: 14px 28px;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.15s, transform 0.05s;
	font-family: inherit;
	letter-spacing: 0.02em;
	width: 100%;
	max-width: 400px;
}

#tvspr-wrap .tvspr-submit:hover {
	background: #e0b03d;
}

#tvspr-wrap .tvspr-submit:active {
	transform: translateY(1px);
}

#tvspr-wrap .tvspr-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ============ STATUS / SUCCESS ============ */
#tvspr-wrap .tvspr-status {
	margin-top: 14px;
	font-size: 14px;
	min-height: 22px;
	line-height: 1.5;
	word-wrap: break-word;
}

#tvspr-wrap .tvspr-status--err {
	color: #991b1b;
	background: #fee2e2;
	border-left: 3px solid #dc2626;
	padding: 10px 14px;
	border-radius: 4px;
}

#tvspr-wrap .tvspr-success {
	background: #ecfdf5;
	border: 1px solid #10b981;
	border-radius: 8px;
	padding: 22px 18px;
	color: #064e3b;
}

#tvspr-wrap .tvspr-success h3 {
	margin: 0 0 12px;
	color: #065f46;
	font-size: 20px;
	font-family: inherit !important;
	font-weight: 700;
}

#tvspr-wrap .tvspr-success p {
	margin: 0 0 12px;
	font-size: 15px;
	line-height: 1.6;
}

/* ============ FOOTER ============ */
#tvspr-wrap .tvspr-footer-note {
	margin-top: 24px;
	font-size: 12px;
	color: #6b7280;
	text-align: center;
	border-top: 1px solid #e5e7eb;
	padding-top: 16px;
	line-height: 1.6;
}

/* ============ AGENT FIELDS ============ */
#tvspr-wrap .tvspr-agent-fields {
	border-left: 3px solid #F1C349;
	padding-left: 14px;
	margin-top: 12px;
}

/* ============ MOBILE TIGHTENING ============ */
@media (max-width: 480px) {
	#tvspr-wrap {
		padding: 0;
	}
	#tvspr-wrap .tvspr-section {
		padding: 16px 12px 6px;
	}
	#tvspr-wrap .tvspr-title,
	#tvspr-wrap h2.tvspr-title {
		font-size: 22px;
	}
	#tvspr-wrap .tvspr-rights .tvspr-check,
	#tvspr-wrap .tvspr-attest {
		padding: 12px;
	}
	#tvspr-wrap .tvspr-submit {
		padding: 14px 18px;
		font-size: 14px;
	}
}
