/**
 * Testing Information Template Styles
 *
 * Tabs nav, search form (gray bar), and result tables.
 * Matches specifications-page patterns (Filter by, dropdowns, Search button).
 *
 * @package Plastpro
 * @since 1.0.0
 */

/* Tabs – CHOOSE TESTING RESULTS header, vertical bars, active orange underline */
.testing-information-tabs-wrapper {
	margin-top: 1.5rem;
	margin-bottom: 1.5rem;
}

/* Pages without search tool: more space between tabs and first content block */
.page-template-template-testing-information .page-content-wrapper-custom .testing-information-tabs-wrapper + .wp-block-paragraph,
.page-template-template-testing-information .page-content-wrapper-custom .testing-information-tabs-wrapper + .wp-block-list,
.page-template-template-testing-information .page-content-wrapper-custom .testing-information-tabs-wrapper + .wp-block-heading,
.page-template-template-testing-information .page-content-wrapper-custom .testing-information-tabs-wrapper + .entry-content,
.page-template-template-testing-information .page-content-wrapper-custom .testing-information-tabs-wrapper + .wp-block-post-content,
.page-template-template-testing-information .page-content-wrapper-custom .testing-information-tabs-wrapper + p,
.page-template-template-testing-information .page-content-wrapper-custom .testing-information-tabs-wrapper + ol,
.page-template-template-testing-information .page-content-wrapper-custom .testing-information-tabs-wrapper + ul,
.page-template-template-testing-information .page-content-wrapper-custom .testing-information-tabs-wrapper + h1,
.page-template-template-testing-information .page-content-wrapper-custom .testing-information-tabs-wrapper + h2,
.page-template-template-testing-information .page-content-wrapper-custom .testing-information-tabs-wrapper + h3 {
	margin-top: 5rem;
}

.testing-information-tabs-heading,
.testing-information-search-tool-heading {
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
	font-size: 1.5rem;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: #1D252D;
	margin: 0 0 0.75rem;
}

.testing-information-tabs-nav {
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.testing-information-tabs-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

.testing-information-tab-item {
	margin: 0;
}

.testing-information-tab-item.has-separator {
	position: relative;
}

.testing-information-tab-item.has-separator::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 1px;
	height: 1em;
	background: #ccc;
}

.testing-information-tab-link {
	display: block;
	padding: 0.75rem 1.25rem;
	text-decoration: none;
	color: inherit;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	transition: border-color 0.2s ease, color 0.2s ease;
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
	font-size: var(--font-size-small);
	font-weight: 600;
	text-transform: uppercase;
}

.testing-information-tab-link:hover {
	opacity: 0.85;
}

.testing-information-tab-link.active {
	border-bottom-color: #E87722;
	color: #E87722;
	font-weight: 700;
}

/* Search section – white box (Figma) */
.testing-information-search-tool-wrapper {
	margin-top: 1.5rem;
	margin-bottom: 3.5rem;
	background: #fff;
}

.testing-information-search-tool-box {
	width: 100%;
	background: #fff;
	padding: 2rem 2rem 2.5rem;
}


.testing-information-search-tool-intro {
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
	font-size: var(--font-size-small);
	font-weight: 400;
	line-height: 1.5;
	color: #1D252D;
	margin: 0 0 1.5rem;
	max-width: 60em;
}

/* Vertical form layout – one dropdown per row, label above */
.testing-information-form-fields-vertical {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	max-width: 520px;
}

.testing-information-field-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.testing-information-field-label {
	display: block;
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
	font-size: var(--font-size-xs);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: #1D252D;
}

.testing-information-field-label-disabled {
	color: #999;
}

.testing-information-select:disabled {
	background: #f5f5f5;
	color: #999;
	border-color: #e0e0e0;
	cursor: not-allowed;
}

.testing-information-select-wrap {
	width: 100%;
	max-width: 100%;
	min-width: 280px;
}

.testing-information-field-row.testing-information-field-actions {
	margin-top: 0.5rem;
}

/* Legacy filter wrapper (if used elsewhere) */
.testing-information-filters-wrapper {
	width: 100%;
	background: var(--plastpro-gray-6, #F5F5F5);
	margin-top: 0;
	margin-bottom: 2rem;
	position: relative;
}

.testing-information-filters-wrapper .site-container {
	padding-top: 2rem;
	padding-bottom: 2rem;
}

.testing-information-filter-label {
	display: block;
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
	font-size: var(--font-size-h6);
	font-weight: 700;
	line-height: 20px;
	color: #000;
	margin-bottom: 1rem;
}

.testing-information-filter-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
	align-items: flex-end;
}

.testing-information-filter-group {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.testing-information-filter-field-label {
	display: block;
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
	font-size: var(--font-size-xs);
	font-weight: 600;
	text-transform: uppercase;
	color: #1D252D;
	margin-bottom: 6px;
}

.testing-information-select {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 36px 10px 16px;
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
	font-size: var(--font-size-small);
	font-weight: 400;
	line-height: 20px;
	color: #1D252D;
	background: #fff;
	border: 1px solid #E0E0E0;
	border-radius: 4px;
	min-width: 0;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%23E87722' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	cursor: pointer;
}

.testing-information-select:focus {
	outline: none;
	border-color: var(--plastpro-orange, #E87722);
}

.testing-information-filter-actions {
	align-self: flex-end;
}

/* Orange Search button – Figma */
.testing-information-search-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 50%;
	max-width: 260px;
	padding: 12px 28px;
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
	font-size: var(--font-size-small);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: #fff;
	background: #E87722;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: opacity 0.2s ease, background-color 0.2s ease;
}

.testing-information-search-btn:hover {
	background: #d66a1c;
	opacity: 1;
}

.testing-information-search-btn svg {
	flex-shrink: 0;
}

/* Results – inside white search box */
.testing-information-results-inner {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid #E8E8E8;
}

.testing-information-results-inner .testing-information-results {
	margin-bottom: 0;
}

.testing-information-results-wrapper {
	margin-bottom: 3rem;
}

.testing-information-results-list {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.testing-information-result-table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
	font-size: var(--font-size-small);
	line-height: 20px;
	background: #fff;
	border: 1px solid #E0E0E0;
	border-radius: 4px;
	overflow: hidden;
}

.testing-information-result-table tbody tr {
	border-bottom: 1px solid #F5F5F5;
}

.testing-information-result-table tbody tr:last-child {
	border-bottom: none;
}

.testing-information-result-label {
	padding: 12px 16px;
	width: 40%;
	font-weight: 400;
	color: #1D252D;
	vertical-align: top;
}

.testing-information-result-label-bold {
	font-weight: 700;
}

.testing-information-result-value {
	padding: 12px 16px;
	font-weight: 400;
	color: #1D252D;
}

.testing-information-result-value-bold {
	font-weight: 700;
}

.testing-information-result-value a {
	color: var(--plastpro-orange, #E87722);
	text-decoration: underline;
}

.testing-information-result-value a:hover {
	text-decoration: none;
}

.testing-information-no-results {
	font-family: var(--plastpro-font-family, 'Montserrat', sans-serif);
	font-size: var(--font-size-h6);
	color: #666;
	margin: 2rem 0;
}

/* Rest of template: transparent (no white) so page/hero background shows; padding before footer */
.page-template-template-testing-information .page-content-wrapper-custom {
	background: transparent;
	padding-left: 6rem;
	padding-right: 6rem;
	padding-bottom: 4rem;
}

@media (min-width: 768px) {
	.page-template-template-testing-information .page-content-wrapper-custom {
		padding-left: 10rem;
		padding-right: 10rem;
	}
}

@media (min-width: 1200px) {
	.page-template-template-testing-information .page-content-wrapper-custom {
		padding-left: 16rem;
		padding-right: 16rem;
	}
}

.page-template-template-testing-information .page-content-wrapper-custom .entry-content,
.page-template-template-testing-information .page-content-wrapper-custom .wp-block-post-content {
	margin-top: 3.5rem;
	background: transparent;
}

/* Paragraphs and main content use same font size as blog single */
.page-template-template-testing-information .page-content-wrapper-custom .entry-content,
.page-template-template-testing-information .page-content-wrapper-custom .wp-block-post-content,
.page-template-template-testing-information .page-content-wrapper-custom p {
	font-size: var(--font-size-body);
	line-height: 1.7;
}

/* Lists align with paragraphs (same left edge; markers inside so they don’t stick out) */
.page-template-template-testing-information .page-content-wrapper-custom .entry-content ol,
.page-template-template-testing-information .page-content-wrapper-custom .wp-block-post-content ol,
.page-template-template-testing-information .page-content-wrapper-custom .entry-content ul,
.page-template-template-testing-information .page-content-wrapper-custom .wp-block-post-content ul,
.page-template-template-testing-information .page-content-wrapper-custom > ol,
.page-template-template-testing-information .page-content-wrapper-custom > ul,
.page-template-template-testing-information .page-content-wrapper-custom > ol.wp-block-list,
.page-template-template-testing-information .page-content-wrapper-custom > ul.wp-block-list {
	margin: 0 0 1rem;
	padding-left: 0;
	list-style-position: inside;
}

.page-template-template-testing-information .page-content-wrapper-custom .entry-content li,
.page-template-template-testing-information .page-content-wrapper-custom .wp-block-post-content li,
.page-template-template-testing-information .page-content-wrapper-custom > ol li,
.page-template-template-testing-information .page-content-wrapper-custom > ul li {
	margin-bottom: 0.5rem;
	font-size: var(--font-size-body);
	line-height: 1.7;
}
