/* DLM Mailchimp unlock form — structural layout only; colors inherited from the active theme. */

.dlm-mailchimp-form-wrap {
	max-width: 480px;
	margin: 1.5em 0;
	position: relative;
}

.dlm-mailchimp-form-title {
	margin-top: 0;
}

.dlm-mc-notice-error {
	border-left: 4px solid var(--dlm-mc-error-color, #d63638);
	background-color: var(--dlm-mc-error-bg, rgba(214, 54, 56, 0.07));
	padding: 0.75em 1em;
	margin: 0 0 1em;
}

.dlm-mailchimp-form .dlm-mc-field {
	display: flex;
	flex-direction: column;
	gap: 0.375em;
	margin: 0 0 1em;
}

.dlm-mailchimp-form .dlm-mc-field label {
	display: block;
	font-weight: 600;
}

.dlm-mailchimp-form .dlm-mc-field input[type="email"],
.dlm-mailchimp-form .dlm-mc-field input[type="text"] {
	display: block;
	width: 100%;
	box-sizing: border-box;
}

.dlm-mc-submit-wrap {
	margin-top: 0.5em;
}

/* Overlay (spinner + complete state) */
.dlm-mc-overlay {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.88);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	border-radius: inherit;
}

.dlm-mc-spinner {
	display: inline-block;
	width: 24px;
	height: 24px;
	border: 3px solid rgba(0, 0, 0, 0.1);
	border-top-color: #1d2327;
	border-radius: 50%;
	animation: dlm-mc-spin 0.7s linear infinite;
}

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

/* Complete state */
.dlm-mc-dl-complete {
	padding: 28px 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	text-align: center;
}

.dlm-mc-dl-complete p {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
}

.dlm-mc-check-icon {
	display: inline-block;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #00a32a;
	position: relative;
	animation: dlm-mc-check-pop 0.35s ease-out forwards;
}

.dlm-mc-check-icon::after {
	content: '';
	position: absolute;
	top: 44%;
	left: 50%;
	transform: translate(-50%, -50%) rotate(45deg);
	width: 9px;
	height: 15px;
	border-right: 3px solid #fff;
	border-bottom: 3px solid #fff;
}

@keyframes dlm-mc-check-pop {
	0%   { transform: scale(0); opacity: 0; }
	70%  { transform: scale(1.15); opacity: 1; }
	100% { transform: scale(1); opacity: 1; }
}
