/* ==========================================================================
   MailChimp — widget Elementor "Newsletter (MailChimp)".
   Formulário com nome, email, checkbox de aceite, link de privacidade
   e botão cadastrar. Feedback visual de loading, sucesso e erro.
   ========================================================================== */

.sm-mailchimp {
	background-color: #FDC500;
	border-radius: 16px;
	padding: 40px;
	box-sizing: border-box;
}

.sm-mailchimp__form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

/* Inputs ---------------------------------------------------------------- */
.sm-mailchimp__input {
	display: block;
	width: 100%;
	padding: 14px 18px;
	font-family: 'Roboto', sans-serif;
	font-size: 16px;
	color: #1F2937;
	background-color: #ffffff;
	border: none;
	border-radius: 8px;
	box-sizing: border-box;
	outline: none;
	transition: box-shadow 0.2s ease;
}

.sm-mailchimp__input::placeholder {
	color: #9CA3AF;
	opacity: 1;
}

.sm-mailchimp__input:focus {
	box-shadow: 0 0 0 3px rgba(2, 118, 53, 0.25);
}

.sm-mailchimp__input:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Checkbox -------------------------------------------------------------- */
.sm-mailchimp__consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
}

.sm-mailchimp__checkbox {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	accent-color: #027635;
	cursor: pointer;
}

.sm-mailchimp__consent-text {
	font-family: 'Roboto', sans-serif;
	font-size: 14px;
	line-height: 1.45;
	color: #1F2937;
}

.sm-mailchimp__privacy-link {
	color: #027635;
	font-weight: 600;
	text-decoration: underline;
	margin-left: 2px;
	transition: color 0.2s ease;
}

.sm-mailchimp__privacy-link:hover {
	color: #015C29;
}

/* Botão ----------------------------------------------------------------- */
.sm-mailchimp__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 14px 32px;
	font-family: 'Nunito', 'Roboto', sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: #FFFFFF;
	background-color: #027635;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.25s ease;
}

.sm-mailchimp__submit:hover {
	background-color: #015C29;
}

.sm-mailchimp__submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.sm-mailchimp__submit-spinner {
	display: flex;
	align-items: center;
	color: #ffffff;
}

/* Mensagens ------------------------------------------------------------- */
.sm-mailchimp__message {
	display: none;
	font-family: 'Roboto', sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	padding: 10px 16px;
	border-radius: 8px;
	margin-top: 4px;
}

.sm-mailchimp__message--success {
	color: #027635;
	background-color: rgba(2, 118, 53, 0.1);
}

.sm-mailchimp__message--error {
	color: #E63946;
	background-color: rgba(230, 57, 70, 0.1);
}

/* Mobile ----------------------------------------------------------------- */
@media (max-width: 767px) {
	.sm-mailchimp {
		padding: 24px 20px;
	}

	.sm-mailchimp__input {
		font-size: 15px;
		padding: 12px 16px;
	}

	.sm-mailchimp__submit {
		font-size: 15px;
		padding: 12px 24px;
	}

	.sm-mailchimp__consent-text {
		font-size: 13px;
	}
}
