/* Standards Service Request Form — Public Enquiry */

/* ── Standards Table ───────────────────────────────────────── */

.ssrf-pe-wrap {
	overflow-x: auto;
	margin: 20px 0;
}

.ssrf-pe-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	line-height: 1.5;
}

.ssrf-pe-table th {
	background: #003f7d;
	color: #fff;
	padding: 10px 14px;
	text-align: left;
	font-weight: 600;
	white-space: nowrap;
}

.ssrf-pe-table td {
	padding: 10px 14px;
	border-bottom: 1px solid #e0e0e0;
	vertical-align: middle;
}

.ssrf-pe-table tbody tr:hover { background: #f5f9ff; }

.ssrf-pe-empty {
	color: #555;
	font-style: italic;
}

/* ── Submit Comment Button ─────────────────────────────────── */

.ssrf-pe-open-btn {
	display: inline-block;
	background: #003f7d;
	color: #fff;
	border: none;
	padding: 7px 16px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s;
	white-space: nowrap;
}

.ssrf-pe-open-btn:hover,
.ssrf-pe-open-btn:focus {
	background: #00326a;
	outline: 2px solid #003f7d;
	outline-offset: 2px;
}

/* ── Modal Overlay & Box ───────────────────────────────────── */

.ssrf-pe-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ssrf-pe-modal[hidden] { display: none; }

.ssrf-pe-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.55);
	cursor: pointer;
}

.ssrf-pe-modal-box {
	position: relative;
	background: #fff;
	border-radius: 6px;
	width: 90%;
	max-width: 560px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 32px 36px 28px;
	box-shadow: 0 8px 40px rgba(0,0,0,0.22);
}

.ssrf-pe-modal-close {
	position: absolute;
	top: 14px;
	right: 18px;
	background: none;
	border: none;
	font-size: 24px;
	line-height: 1;
	color: #555;
	cursor: pointer;
	padding: 0 4px;
}

.ssrf-pe-modal-close:hover { color: #000; }

.ssrf-pe-modal-box h2 {
	margin: 0 0 20px;
	font-size: 20px;
	color: #003f7d;
	font-weight: 700;
}

/* ── Message box ───────────────────────────────────────────── */

.ssrf-pe-msg {
	padding: 12px 16px;
	border-radius: 4px;
	margin-bottom: 16px;
	font-size: 14px;
}

.ssrf-pe-msg[hidden] { display: none; }

.ssrf-pe-msg--success {
	background: #e6f4ea;
	color: #1e6b2e;
	border: 1px solid #b2d8bc;
}

.ssrf-pe-msg--error {
	background: #fde8e8;
	color: #931414;
	border: 1px solid #f5b8b8;
}

/* ── Form layout ───────────────────────────────────────────── */

.ssrf-pe-form-row { display: flex; gap: 16px; }

.ssrf-pe-form-row--half > .ssrf-pe-field { flex: 1 1 0; min-width: 0; }

.ssrf-pe-field {
	display: flex;
	flex-direction: column;
	margin-bottom: 16px;
}

.ssrf-pe-field label {
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 5px;
	color: #222;
}

.ssrf-pe-req { color: #c0392b; }

.ssrf-pe-field input[type="text"],
.ssrf-pe-field input[type="email"],
.ssrf-pe-field input[type="tel"],
.ssrf-pe-field input[type="number"],
.ssrf-pe-field textarea {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
	box-sizing: border-box;
	transition: border-color 0.15s;
	font-family: inherit;
}

.ssrf-pe-field input:focus,
.ssrf-pe-field textarea:focus {
	outline: none;
	border-color: #003f7d;
	box-shadow: 0 0 0 3px rgba(0,63,125,0.12);
}

.ssrf-pe-field input[readonly] {
	background: #f5f5f5;
	color: #555;
}

/* ── CAPTCHA ───────────────────────────────────────────────── */

.ssrf-pe-captcha-row {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.ssrf-pe-captcha-question {
	background: #f0f4fa;
	border: 1px solid #c8d8f0;
	padding: 8px 16px;
	border-radius: 4px;
	font-size: 18px;
	font-weight: 700;
	color: #003f7d;
	letter-spacing: 2px;
	min-width: 120px;
	text-align: center;
}

.ssrf-pe-captcha-row input[type="number"] {
	width: 90px;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 16px;
	text-align: center;
	box-sizing: border-box;
}

/* ── Submit button ─────────────────────────────────────────── */

.ssrf-pe-actions { margin-top: 8px; }

.ssrf-pe-btn {
	display: inline-block;
	padding: 10px 28px;
	border-radius: 4px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	border: none;
	transition: background 0.15s, opacity 0.15s;
}

.ssrf-pe-btn--primary {
	background: #003f7d;
	color: #fff;
}

.ssrf-pe-btn--primary:hover { background: #00326a; }

.ssrf-pe-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 600px) {
	.ssrf-pe-modal-box { padding: 22px 18px 20px; }
	.ssrf-pe-form-row  { flex-direction: column; gap: 0; }
}
