/* Analysis Core — minimal front-end styling.
 * Kept deliberately simple/unopinionated so it layers cleanly under the
 * Analysis Theme's own styles; class names are namespaced with
 * "analysis-core-" to avoid collisions.
 */

.analysis-core-form {
	max-width: 480px;
	margin: 1em 0;
}

.analysis-core-field {
	margin-bottom: 1em;
}

.analysis-core-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.25em;
}

.analysis-core-field input[type="text"],
.analysis-core-field input[type="email"],
.analysis-core-field input[type="tel"],
.analysis-core-field select,
.analysis-core-field textarea {
	width: 100%;
	padding: 0.5em;
	box-sizing: border-box;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.analysis-core-field .required {
	color: #b32d2e;
}

.analysis-core-submit button {
	cursor: pointer;
	padding: 0.6em 1.4em;
	border: 0;
	border-radius: 4px;
	background: #1e3a5f;
	color: #fff;
	font-weight: 600;
}

.analysis-core-submit button:hover {
	background: #16304d;
}

.analysis-core-notice {
	padding: 0.75em 1em;
	border-radius: 4px;
	margin-bottom: 1em;
}

.analysis-core-notice-success {
	background: #e6f4ea;
	color: #1e4620;
	border: 1px solid #b7dfc0;
}

.analysis-core-notice-error {
	background: #fbe7e7;
	color: #611a1a;
	border: 1px solid #f1b8b8;
}

/* Honeypot fields are hidden inline via style attribute in markup;
 * this rule is a belt-and-suspenders backup in case inline styles are
 * stripped by an aggressive cache/minifier. */
.analysis-core-hp {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
}

.analysis-core-ad-zone {
	margin: 1em 0;
}

.analysis-core-ad-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 90px;
	border: 1px dashed #999;
	border-radius: 4px;
	background: #f5f5f5;
	color: #666;
	font-size: 0.85em;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.analysis-core-ticker {
	width: 100%;
	min-height: 40px;
	overflow: hidden;
}

.analysis-core-ticker-prompt {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75em;
	min-height: 40px;
	padding: 8px 16px;
	font-size: 0.85em;
	flex-wrap: wrap;
	text-align: center;
}

/* --- Cookie consent banner / modal / gates --------------------------- */

.analysis-consent-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	background: #14181d;
	color: #eceef1;
	border-top: 1px solid #333c46;
	padding: 16px;
}

.analysis-consent-banner-inner {
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.analysis-consent-text {
	margin: 0;
	font-size: 0.9em;
	flex: 1 1 320px;
}

.analysis-consent-text a {
	color: #e08a6c;
	text-decoration: underline;
}

.analysis-consent-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.analysis-consent-btn {
	cursor: pointer;
	padding: 0.55em 1.1em;
	border-radius: 4px;
	font-size: 0.88em;
	font-weight: 600;
	border: 1px solid #444e5a;
	background: transparent;
	color: #eceef1;
}

.analysis-consent-btn-accept {
	background: #a3452e;
	border-color: #a3452e;
	color: #fff;
}

.analysis-consent-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	background: rgba(10, 13, 16, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.analysis-consent-modal-panel {
	background: #fff;
	color: #14181d;
	border-radius: 8px;
	padding: 24px;
	max-width: 520px;
	width: 100%;
	max-height: 85vh;
	overflow-y: auto;
}

.analysis-consent-modal-panel h2 {
	margin-top: 0;
}

.analysis-consent-category {
	border-top: 1px solid #e2e2e2;
	padding: 12px 0;
}

.analysis-consent-category-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 6px;
}

.analysis-consent-category p {
	margin: 0;
	font-size: 0.85em;
	color: #555;
}

.analysis-consent-modal-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 16px;
}

.analysis-consent-modal-actions .analysis-consent-btn {
	border-color: #ccc;
	color: #14181d;
}

.analysis-consent-modal-actions .analysis-consent-btn-accept {
	background: #a3452e;
	border-color: #a3452e;
	color: #fff;
}

.analysis-consent-floating-btn {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 9998;
	background: #14181d;
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 0.5em 1em;
	font-size: 0.75em;
	cursor: pointer;
	opacity: 0.85;
}

.analysis-consent-floating-btn:hover {
	opacity: 1;
}

.analysis-consent-reopen-link {
	background: none;
	border: 1px solid currentColor;
	border-radius: 4px;
	padding: 0.4em 0.8em;
	cursor: pointer;
	font-size: 0.85em;
}

.analysis-consent-gate {
	position: relative;
}

.analysis-consent-gate-overlay {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 90px;
	border: 1px dashed #999;
	border-radius: 4px;
	background: #f5f5f5;
	padding: 12px;
	text-align: center;
	font-size: 0.85em;
}

.analysis-consent-gate.is-unlocked .analysis-consent-gate-overlay {
	display: none;
}

.analysis-consent-gate-overlay button {
	cursor: pointer;
	border-radius: 4px;
	border: 1px solid #999;
	background: #fff;
	padding: 0.3em 0.7em;
	font-size: 0.9em;
}
