﻿.cgm-opt-in-form-wrap {
	max-width: 520px;
	margin: 1.5em auto;
	padding: 1.5em;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
	font-family: inherit;
	box-sizing: border-box;
}

.cgm-opt-in-form-wrap * {
	box-sizing: border-box;
}

.cgm-opt-in-title {
	margin-top: 0;
	margin-bottom: 0.5em;
	font-size: 1.35em;
	font-weight: 700;
	color: #1e293b;
}

.cgm-opt-in-desc {
	margin-top: 0;
	margin-bottom: 1.25em;
	font-size: 0.95em;
	color: #64748b;
}

.cgm-form-group {
	margin-bottom: 1em;
}

.cgm-form-group label {
	display: block;
	margin-bottom: 0.35em;
	font-weight: 600;
	font-size: 0.9em;
	color: #334155;
}

.cgm-form-row {
	display: flex;
	gap: 12px;
}

.cgm-form-row .cgm-form-group {
	flex: 1;
}

.cgm-input-text {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-size: 0.95em;
	color: #1e293b;
	background-color: #fff;
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.cgm-input-text:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.cgm-checkbox-group {
	margin-top: 1.25em;
	margin-bottom: 1.25em;
	padding: 12px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
}

.cgm-checkbox-group legend {
	font-weight: 600;
	font-size: 0.9em;
	color: #334155;
	padding: 0 4px;
	margin-bottom: 0.35em;
}

.cgm-checkbox-label {
	display: flex !important;
	align-items: center;
	margin-bottom: 0.5em;
	font-size: 0.9em;
	color: #475569;
	cursor: pointer;
	font-weight: normal !important;
}

.cgm-checkbox-label:last-child {
	margin-bottom: 0;
}

.cgm-checkbox-label input[type="checkbox"] {
	margin: 0 8px 0 0;
	cursor: pointer;
	width: 16px;
	height: 16px;
}

.cgm-submit-btn {
	display: inline-block;
	width: 100%;
	padding: 12px 18px;
	background-color: #2563eb;
	color: #ffffff;
	border: none;
	border-radius: 6px;
	font-size: 1em;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
	transition: background-color 0.2s ease;
}

.cgm-submit-btn:hover {
	background-color: #1d4ed8;
}

.cgm-submit-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.cgm-alert {
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 1.25em;
	font-size: 0.95em;
}

.cgm-alert-success {
	background-color: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #166534;
}

.cgm-alert-error {
	background-color: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

.cgm-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

.cgm-privacy-disclaimer {
	margin: 1.25em 0;
	padding: 12px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	font-size: 0.88em;
	color: #475569;
	line-height: 1.45;
}

.cgm-privacy-disclaimer a {
	color: #2563eb;
	text-decoration: underline;
}

.cgm-privacy-disclaimer a:hover {
	color: #1d4ed8;
}

.cgm-consent-label {
	display: flex !important;
	align-items: flex-start !important;
	font-weight: 500 !important;
	margin-bottom: 6px !important;
	cursor: pointer;
}

.cgm-consent-label input[type="checkbox"] {
	margin-top: 3px !important;
	margin-right: 8px !important;
	flex-shrink: 0;
}

.cgm-disclaimer-note {
	margin: 6px 0 0 24px;
	font-size: 0.82em;
	color: #64748b;
	line-height: 1.35;
}
