/* ==========================================================================
   Clarke Lead Form Widget — "Faça uma análise gratuita!"
   ========================================================================== */

/* ── Widget Container ── */
.clf-widget {
	background: #f7f7f7 !important;
	border: 1px solid #e0e0e0 !important;
	border-radius: 16px !important;
	padding: 28px 24px 24px !important;
}

/* ── Header ── */
.clf-widget__title {
	font-size: 22px !important;
	font-weight: 800 !important;
	line-height: 1.25 !important;
	color: #00BF6F !important;
	margin: 0 0 10px !important;
}

.clf-widget__desc {
	font-size: 14px !important;
	line-height: 1.55 !important;
	color: #4b5563 !important;
	margin: 0 0 24px !important;
}

/* ── Form ── */
.clf-widget__form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

/* ── Field ── */
.clf-field__label {
	display: block;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #4e5159 !important;
	margin-bottom: 6px !important;
}

.clf-field__req {
	color: #ef4444;
	margin-left: 2px;
}

.clf-field__input {
	display: block !important;
	width: 100% !important;
	padding: 7px 12px !important;
	font-size: 14px !important;
	line-height: 1.5 !important;
	color: #1f2937 !important;
	background: #fff !important;
	border: 1px solid #d1d5db !important;
	border-radius: 10px !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
	box-sizing: border-box !important;
  	appearance: none !important;
  	-webkit-appearance: none !important;
}

.clf-field__input::placeholder {
	color: #9ca3af;
}

.clf-field__input:hover {
	border-color: #9ca3af !important;
}

.clf-field__input:focus {
	outline: none !important;
	border-color: #00BF6F !important;
	box-shadow: 0 0 0 3px rgba(0, 191, 111, 0.12) !important;
}

.clf-field__input.clf-field--error {
	border-color: #ef4444 !important;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Phone field with flag */
.clf-field__phone-wrap {
	display: flex !important;
	align-items: center !important;
	background: #fff !important;
	border: 1px solid #d1d5db !important;
	border-radius: 10px !important;
	overflow: hidden !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.clf-field__phone-wrap:hover {
	border-color: #9ca3af !important;
}

.clf-field__phone-wrap:focus-within {
	border-color: #00BF6F !important;
	box-shadow: 0 0 0 3px rgba(0, 191, 111, 0.12) !important;
}

.clf-field__phone-wrap.clf-field--error {
	border-color: #ef4444 !important;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.clf-field__phone-flag {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 0 8px 0 14px;
	flex-shrink: 0;
	cursor: default;
	user-select: none;
}

.clf-field__phone-flag::after {
	content: '▾';
	font-size: 10px;
	color: #9ca3af;
}

.clf-field__input--phone {
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding-left: 4px;
}

.clf-field__input--phone:focus {
	box-shadow: none !important;
}

/* Currency field */
.clf-field__currency-wrap {
	display: flex !important;
	align-items: center !important;
	background: #fff !important;
	border: 1px solid #d1d5db !important;
	border-radius: 10px !important;
	overflow: hidden !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.clf-field__currency-wrap:hover {
	border-color: #9ca3af !important;
}

.clf-field__currency-wrap:focus-within {
	border-color: #00BF6F !important;
	box-shadow: 0 0 0 3px rgba(0, 191, 111, 0.12) !important;
}

.clf-field__currency-wrap.clf-field--error {
	border-color: #ef4444 !important;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.clf-field__currency-prefix {
	padding: 0 4px 0 14px;
	font-size: 14px;
	font-weight: 500;
	color: #6b7280;
	flex-shrink: 0;
	user-select: none;
}

.clf-field__input--currency {
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding-left: 4px;
}

.clf-field__input--currency:focus {
	box-shadow: none !important;
}

/* ── Submit Button ── */
.clf-widget__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	align-self: flex-start;
	padding: 13px 28px;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1;
	color: #fff !important;
	background: #00BF6F !important;
	border: none;
	border-radius: 50px;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.1s ease;
	margin-top: 6px;
}

.clf-widget__submit:hover {
	background: #00a85f !important;
}

.clf-widget__submit:active {
	transform: scale(0.97);
}

.clf-widget__submit:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

/* Loading state */
.clf-widget__submit.is-loading {
	pointer-events: none;
	position: relative;
	color: transparent !important;
}

.clf-widget__submit.is-loading::after {
	content: '';
	position: absolute;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: clf-spin 0.6s linear infinite;
}

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

/* ── Status Messages ── */
.clf-widget__status {
	font-size: 13px;
	line-height: 1.4;
	min-height: 0;
	transition: min-height 0.2s;
}

.clf-widget__status:empty {
	display: none;
}

.clf-widget__status--error {
	color: #ef4444;
}

/* ── Success State ── */
.clf-widget__success {
	text-align: center;
	padding: 20px 0;
}

.clf-widget__success-icon {
	margin-bottom: 14px;
}

.clf-widget__success-title {
	font-size: 18px !important;
	font-weight: 700 !important;
	color: #1f2937 !important;
	margin: 0 0 8px !important;
}

.clf-widget__success-desc {
	font-size: 14px !important;
	color: #6b7280 !important;
	margin: 0 !important;
}

/* ── Sidebar modifier (when inside blog sidebar) ── */
.cb-single__sidebar .clf-widget {
	margin-top: 24px;
}
