/**
 * Shared layout for WordPress-native form pages (header.php + footer.php).
 * Footer rules are ported from static index.html — header.php does not include them inline.
 */

.footer {
	padding: 48px 0 32px;
	border-top: 1px solid var(--border);
	background: var(--bg);
	color: var(--text);
}

.footer-top {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 32px 24px;
	padding-bottom: 40px;
}

@media (max-width: 980px) {
	.footer-top {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.footer-top {
		grid-template-columns: 1fr;
	}
}

.footer-col h3 {
	margin: 0 0 16px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--text);
}

.footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-col li {
	margin-bottom: 10px;
}

.footer-col a {
	color: var(--muted);
	font-size: 14px;
	text-decoration: none;
}

.footer-col a:hover {
	color: var(--text);
}

.footer-divider {
	height: 1px;
	background: var(--border);
	margin: 0 0 32px;
}

.footer-mid {
	text-align: center;
	margin-bottom: 32px;
}

.footer-social {
	display: flex;
	justify-content: center;
	gap: 24px;
	margin-bottom: 24px;
}

.footer-social a {
	color: var(--muted);
	font-size: 14px;
	text-decoration: none;
}

.footer-social a:hover {
	color: var(--text);
}

.footer-mid .footer-logo {
	display: inline-block;
}

.footer-mid .footer-logo img {
	height: 32px;
	width: auto;
	opacity: 0.9;
}

.footer-bottom {
	text-align: center;
	padding-top: 24px;
	border-top: 1px solid var(--border);
}

.footer-copy {
	margin: 0 0 12px;
	font-size: 13px;
	color: var(--muted);
}

.footer-legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 4px;
	font-size: 13px;
}

.footer-legal a {
	color: var(--muted);
	text-decoration: none;
}

.footer-legal a:hover {
	color: var(--text);
}

.footer-legal .sep {
	color: var(--border);
	pointer-events: none;
}

/* Form pages use <main>; keep width consistent with static site */
main {
	max-width: 100%;
	overflow-x: hidden;
}

/**
 * WPForms: make <select> clearly distinct from text inputs (chevron, height, cursor).
 * Targets the wrappers used on Book a demo / Register interest / Contact us templates.
 */
.book-demo-form-theme .wpforms-container select,
.register-interest-form-theme .wpforms-container select,
.contact-us-form-theme .wpforms-container select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	width: 100%;
	max-width: 100%;
	min-height: 42px;
	padding: 10px 44px 10px 14px;
	border: 1px solid rgba(249, 115, 22, 0.4);
	border-radius: 12px;
	background-color: #fff;
	/* Orange chevron — reads as “dropdown” on all browsers */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23EA580C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 18px 18px;
	color: var(--text);
	font-size: 15px;
	line-height: 1.35;
	cursor: pointer;
	box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.book-demo-form-theme .wpforms-container select:hover,
.register-interest-form-theme .wpforms-container select:hover,
.contact-us-form-theme .wpforms-container select:hover {
	border-color: rgba(249, 115, 22, 0.65);
}

.book-demo-form-theme .wpforms-container select:focus,
.register-interest-form-theme .wpforms-container select:focus,
.contact-us-form-theme .wpforms-container select:focus {
	border-color: var(--brand);
	box-shadow:
		0 0 0 3px rgba(249, 115, 22, 0.18),
		inset 0 1px 2px rgba(15, 23, 42, 0.04);
	outline: none;
	background-color: #fff;
}

/* Multi-select lists: no chevron, no “single line” dropdown */
.book-demo-form-theme .wpforms-container select[multiple],
.register-interest-form-theme .wpforms-container select[multiple],
.contact-us-form-theme .wpforms-container select[multiple] {
	background-image: none;
	padding: 10px 14px;
	min-height: 8rem;
	cursor: default;
}
