.whatsapp-form-container {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 999999;
}

.whatsapp-form-button {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: #25D366;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	transition: transform 0.2s ease;
}

.whatsapp-form-button:hover {
	transform: scale(1.1);
}

.whatsapp-form-button svg {
	width: 32px;
	height: 32px;
	color: white;
}

/* Overlay para modal */
.whatsapp-form-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0,0,0,0.4);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
	z-index: 999998;
}

.whatsapp-form-overlay.active {
	opacity: 1;
	pointer-events: auto;
}

/* Popup */
.whatsapp-form-popup {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 350px;
	max-width: calc(100vw - 40px);
	background: white;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	display: none;
	flex-direction: column;
	overflow: hidden;
	transition: opacity 0.3s ease, transform 0.3s ease;
	opacity: 0;
	transform: translateY(10px);
	z-index: 999999;
}

.whatsapp-form-popup.active {
	display: flex;
	opacity: 1;
	transform: translateY(0);
}

.whatsapp-form-header {
	background-color: #075E54;
	padding: 12px 16px;
	display: flex;
	align-items: center;
	gap: 12px;
	color: white;
}

.whatsapp-form-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: contain;
	background: white;
	padding: .15em;
}

.whatsapp-form-info {
	flex: 1;
	display: flex;
	flex-flow: column;
}

.whatsapp-form-name {
	margin: 0;
	font-size: 16px;
	font-weight: 500;
}

.whatsapp-form-status {
	font-size: 13px;
	opacity: 0.8;
}

.whatsapp-form-close {
	background: none;
	border: none;
	color: white;
	cursor: pointer;
	padding: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.8;
	transition: opacity 0.2s ease;
}

.whatsapp-form-close:hover {
	opacity: 1;
}

.whatsapp-form-close svg {
	width: 24px;
	height: 24px;
}

.whatsapp-form-content {
	padding: 12px;
	max-height: 70vh;
	overflow-y: auto;
}

/* Form normalization */
.whatsapp-form-content form {
	margin: 0 !important;
	padding: 0 !important;
}

/* Common form elements */
#wpforms-710 input[type="text"],
#wpforms-710 input[type="email"],
#wpforms-710 input[type="tel"],
#wpforms-710 input[type="number"],
#wpforms-710 input[type="password"],
#wpforms-710 textarea,
#wpforms-710 select {
	width: 100% !important;
	padding: 12px;
	margin-bottom: 12px !important;
	border: 1px solid #ddd !important;
	border-radius: 8px !important;
	font-size: 14px !important;
	line-height: 1.5 !important;
	color: #333 !important;
	background-color: #fff !important;
	transition: border-color 0.2s ease !important;
	box-sizing: border-box !important;
}

/* Focus styles */
#wpforms-710 input[type="text"]:focus,
#wpforms-710 input[type="email"]:focus,
#wpforms-710 input[type="tel"]:focus,
#wpforms-710 input[type="number"]:focus,
#wpforms-710 input[type="password"]:focus,
#wpforms-710 textarea:focus,
#wpforms-710 select:focus,
#wpforms-710 .wpforms-field input:focus,
#wpforms-710 .wpforms-field textarea:focus,
#wpforms-710 .wpforms-field select:focus,
#wpforms-710 .wpcf7-form-control:focus {
	border-color: #25D366 !important;
	outline: none !important;
	box-shadow: 0 0 0 1px #25D366 !important;
}

/* Labels */
#wpforms-710 label,
#wpforms-710 .wpforms-field-label {
	display: block !important;
	margin-bottom: 8px !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	color: #333 !important;
}

/* Submit buttons */
#wpforms-710 input[type="submit"],
#wpforms-710 button[type="submit"],
.whatsapp-form-content .wpforms-submit,
.whatsapp-form-content .wpcf7-submit {
	width: 100% !important;
	padding: 12px 24px !important;
	background-color: #25D366 !important;
	color: white !important;
	border: none !important;
	border-radius: 8px !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	cursor: pointer !important;
	text-align: center !important;
	transition: background-color 0.2s ease !important;
	margin: 0 !important;
}

#wpforms-710 input[type="submit"]:hover,
#wpforms-710 button[type="submit"]:hover,
.whatsapp-form-content .wpforms-submit:hover,
.whatsapp-form-content .wpcf7-submit:hover {
	background-color: #128C7E !important;
}

/* WPForms specific */
#wpforms-710 .wpforms-field {
	margin-bottom: 12px !important;
	padding: 0 !important;
}

.iti__selected-country {
  transform: translateY(-5px) !important;;
}

#wpforms-710{
	background: #f1f1f1;
}


#wpforms-710 .wpforms-field-medium {
	max-width: 100% !important;
}

#wpforms-710 .wpforms-submit-container {
	margin: 0 !important;
	padding: 0 !important;
}

/* CF7 specific */
.whatsapp-form-content .wpcf7 p {
	margin: 0 0 12px 0 !important;
}

.whatsapp-form-content .wpcf7 p:last-child {
	margin-bottom: 0 !important;
}

.whatsapp-form-content .wpcf7 label {
	display: block !important;
	margin-bottom: 8px !important;
}

.whatsapp-form-content .wpcf7 label br {
	display: none !important;
}

.whatsapp-form-content .wpcf7-form-control-wrap {
	display: block !important;
	margin-top: 8px !important;
}

.whatsapp-form-content .wpcf7-form-control {
	width: 100% !important;
	max-width: 100% !important;
}

.whatsapp-form-content .wpcf7-spinner {
	display: none !important;
}

/* Error messages */
.whatsapp-form-content .wpcf7-not-valid-tip,
#wpforms-710 .wpforms-error {
	color: #dc3232 !important;
	font-size: 12px !important;
	margin-top: -8px !important;
	margin-bottom: 8px !important;
}

/* Error states */
.whatsapp-form-content .wpcf7-form.invalid .wpcf7-response-output,
.whatsapp-form-content .wpcf7-form.failed .wpcf7-response-output,
.whatsapp-form-content .wpcf7-form.sent .wpcf7-response-output {
	color: #dc3232 !important;
	border: 1px solid #dc3232 !important;
	background-color: #f8f8f8 !important;
	padding: 12px !important;
	margin: 12px 0 !important;
	border-radius: 8px !important;
	font-size: 13px !important;
	text-align: center !important;
}

.whatsapp-form-content .wpcf7-form.sent .wpcf7-response-output {
	color: #46b450 !important;
	border-color: #46b450 !important;
}

.whatsapp-form-content .wpcf7-not-valid {
	border-color: #dc3232 !important;
}

.whatsapp-form-content .wpcf7-not-valid:focus {
	border-color: #dc3232 !important;
	box-shadow: 0 0 0 1px #dc3232 !important;
}

#wpforms-710 .screen-reader-response {
	display: none !important;
}

#wpforms-710 .screen-reader-response {
	min-width: 326px;
}

/* Success messages */
#wpforms-710 .wpforms-confirmation-container-full {
	background-color: #f8f8f8 !important;
	border: 1px solid #46b450 !important;
	border-radius: 8px !important;
	margin: 12px 0 !important;
}

#wpforms-710 .wpforms-confirmation-container-full p {
	color: #46b450 !important;
	font-size: 13px !important;
	text-align: center !important;
	margin: 0 !important;
	padding: 12px !important;
}

#wpforms-710 .wpcf7-form.sent .wpcf7-response-output {
	color: #46b450 !important;
	border: 1px solid #46b450 !important;
	background-color: #f8f8f8 !important;
	padding: 12px !important;
	margin: 12px 0 !important;
	border-radius: 8px !important;
	font-size: 13px !important;
	text-align: center !important;
}

/* Responsive adjustments */
@media (max-width: 480px) {
	.whatsapp-form-popup {
		width: calc(100vw - 40px);
	}
} 