/* ---------- Front-end form ---------- */
.ccl-form-wrapper {
	max-width: 100%;
	box-sizing: border-box;
}

.ccl-form-wrapper * {
	box-sizing: border-box;
}

.ccl-form-title {
	margin: 0 0 4px;
}

.ccl-form-subtitle {
	margin: 0 0 16px;
	opacity: 0.8;
}

.ccl-form-message {
	padding: 12px 16px;
	border-radius: 4px;
	margin-bottom: 16px;
	font-size: 14px;
	line-height: 1.5;
}

.ccl-form-message.ccl-message-success {
	background: #e7f6ec;
	color: #1a7f37;
	border: 1px solid #b7ebc6;
}

.ccl-form-message.ccl-message-error {
	background: #fdecea;
	color: #b32d2e;
	border: 1px solid #f5c2c0;
}

.ccl-hp-field {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ccl-field-row {
	margin-bottom: 15px;
}

.ccl-label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 14px;
}

.ccl-required {
	color: #b32d2e;
}

.ccl-input,
.ccl-textarea {
	width: 100%;
	padding: 12px 14px;
	font-size: 16px;
	line-height: 19px;
	border: 1px solid #d0d5db;
	border-radius: 3px;
	background: #fff;
	color: #222;
	transition: border-color 0.15s ease;
}

.ccl-input:focus,
.ccl-textarea:focus {
	outline: none;
	border-color: #2271b1;
}

.ccl-textarea {
	resize: vertical;
	min-height: 120px;
}

.ccl-field-row.ccl-has-error .ccl-input,
.ccl-field-row.ccl-has-error .ccl-textarea {
	border-color: #b32d2e;
	background: #fef7f7;
}

.ccl-field-error {
	display: block;
	color: #b32d2e;
	font-size: 13px;
	margin-top: 5px;
}

.ccl-submit-row {
	margin-top: 6px;
}

.ccl-submit-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 26px;
	font-size: 17px;
	font-weight: 600;
	border: none;
	border-radius: 3px;
	background: #2271b1;
	color: #fff;
	cursor: pointer;
	transition: background 0.15s ease, opacity 0.15s ease;
}

.ccl-submit-btn:hover {
	background: #195a8c;
}

.ccl-submit-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.ccl-btn-spinner {
	display: none;
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-top-color: #fff;
	border-radius: 50%;
	animation: ccl-spin 0.7s linear infinite;
}

.ccl-form.ccl-submitting .ccl-btn-spinner {
	display: inline-block;
}

@keyframes ccl-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ---------- Admin screens ---------- */
.ccl-status-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #2271b1;
}

.ccl-delete-link {
	color: #b32d2e;
}

.ccl-shortcode-input {
	width: 200px;
	font-family: Consolas, Monaco, monospace;
	font-size: 12px;
}

.ccl-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
}

.ccl-badge-success {
	background: #e7f6ec;
	color: #1a7f37;
}

.ccl-badge-error {
	background: #fdecea;
	color: #b32d2e;
}

.ccl-badge-muted {
	background: #f0f0f1;
	color: #646970;
}

.ccl-filter-row {
	margin: 10px 0;
}

.ccl-fields-builder {
	margin-top: 10px;
}

.ccl-fields-builder th,
.ccl-fields-builder td {
	padding: 10px;
	vertical-align: middle;
}

.ccl-remove-field-btn {
	color: #b32d2e;
	font-size: 16px;
	text-decoration: none;
	cursor: pointer;
}

.ccl-detail-table th {
	width: 200px;
	text-align: left;
	vertical-align: top;
}

#ccl-test-email-result {
	margin-top: 10px;
}

#ccl-test-email-result .notice {
	padding: 8px 12px;
	margin: 0;
}

template {
	display: none;
}
